An implementation of Formatter, based on source-highlight TextStyle.
More...
#include <textstyleformatter.h>
Inheritance diagram for srchilite::TextStyleFormatter:
Collaboration diagram for srchilite::TextStyleFormatter:
Public Member Functions
TextStyleFormatter (const std::string &repr="$text", BufferedOutput *o=0)
Protected Member Functions
void
doFormat (const std::string &s, bool preformat=true)
Actually performs formatting (no reference formatting); this is used internally.
More...
Private Attributes
where to output the formatting
the possible pre formatter for text
the possible formatter for ctags (references and anchors)
Detailed Description
Member Function Documentation
void srchilite::TextStyleFormatter::doFormat
(
const std::string &
s,
bool
preformat = true
)
protected
Actually performs formatting (no reference formatting); this is used internally.
- Parameters
-
s the string to format.
preformat whether to perform preformatting
void srchilite::TextStyleFormatter::format
(
const std::string &
s,
)
virtual
Formats the passed string.
- Parameters
-
the string to format
params possible additional parameters for the formatter
Implements srchilite::Formatter.
bool srchilite::TextStyleFormatter::formatReferences
(
const std::string &
s,
)
protected
Performs reference formatting (by relying on the CTagsFormatter)
- Parameters
-
s the string to format.
params additional parameters
- Returns
- true if an anchor or reference was found and formatted
const std::string& srchilite::TextStyleFormatter::toString
(
)
const
inline
- Returns
- a string representation of this formatter
The documentation for this class was generated from the following files:
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/textstyleformatter.h
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/textstyleformatter.cpp