PerFormratter to convert tabs to spaces before generation.
More...
#include <srcuntabifier.h>
|
|
const int | nSpacesPerTab_ |
| | the number of spaces corresponding to a tab char
|
| |
|
unsigned int | n_ |
| | the counter of characters
|
| |
|
PreFormatterPtr | decorator |
| | the possible nested preformatter (Decorator pattern)
|
| |
PerFormratter to convert tabs to spaces before generation.
◆ doPreformat()
| 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.
- Parameters
-
| text | the string to be preformatted |
- Returns
- the preformatted string
Reimplemented from srchilite::PreFormatter.
◆ preformat()
| const string srchilite::PreFormatter::preformat |
( |
const std::string & |
text | ) |
|
|
inherited |
Preformats the passed string (public version)
- Parameters
-
| text | the string to be preformatted |
- Returns
- the preformatted string
◆ setPreFormatter()
Sets the nested preformatter.
- Parameters
-
| f | the nested (decorated) preformatter |
The documentation for this class was generated from the following files:
- source-highlight-3.1.9/lib/srchilite/srcuntabifier.h
- source-highlight-3.1.9/lib/srchilite/srcuntabifier.cpp