|
Source-highlight Library
|
PerFormratter to convert tabs to spaces before generation. More...
#include <srcuntabifier.h>


Public Member Functions | |
| Untabifier (unsigned int nSpacesPerTab, PreFormatterPtr f=PreFormatterPtr()) | |
| virtual const string | doPreformat (const std::string &text) |
| Preformats the passed string (protected version). | |
| void | setPreFormatter (PreFormatterPtr f) |
| Sets the nested preformatter. | |
| const std::string | preformat (const std::string &text) |
| Preformats the passed string (public version) | |
Private Attributes | |
| const int | nSpacesPerTab_ |
| the number of spaces corresponding to a tab char | |
| unsigned int | n_ |
| the counter of characters | |
PerFormratter to convert tabs to spaces before generation.
| const string srchilite::Untabifier::doPreformat | ( | const std::string & | text | ) | [virtual] |
Preformats the passed string (protected version).
The subclasses must redefine this method to perform the preformatting. The default implementation does not perform any preformatting.
| text | the string to be preformatted |
Reimplemented from srchilite::PreFormatter.
| const string srchilite::PreFormatter::preformat | ( | const std::string & | text | ) | [inherited] |
Preformats the passed string (public version)
| text | the string to be preformatted |
| void srchilite::PreFormatter::setPreFormatter | ( | PreFormatterPtr | f | ) | [inherited] |
Sets the nested preformatter.
| f | the nested (decorated) preformatter |