Source-highlight Library
|
The base abstract class for formatting strings. More...
#include <formatter.h>
Public Member Functions | |
virtual void | format (const std::string &s, const FormatterParams *params=0)=0 |
Formats the passed string. More... | |
The base abstract class for formatting strings.
Derived classes must implement the abstract method notify. Note that only the string to format is passed (and some additional information in a FormatterParams object); everything else (e.g., what kind of elements this formatter handles) must be part of the Formatter itself (i.e., of the subclass).
|
pure virtual |
Formats the passed string.
the | string to format |
params | possible additional parameters for the formatter |
Implemented in srchilite::TextStyleFormatter.