Public Member Functions | |
| PreFormatter (bool wrap, bool replTabs) | |
| bool | hasMoreLines () |
| void | setLine (const std::string newline) |
| std::string | getNextLine () |
| bool | indentCode () |
| void | setWrappingProperties (unsigned int maxlength=80, bool indentAfterOpenBraces=true) |
| void | setNumberSpaces (unsigned int num) |
| bool | isEnabled () |
| highlight::PreFormatter::PreFormatter | ( | bool | wrap, | |
| bool | replTabs | |||
| ) |
Constructor
| bool highlight::PreFormatter::hasMoreLines | ( | ) |
| void highlight::PreFormatter::setLine | ( | const std::string | newline | ) |
Sets new line to be wrapped
| newline | New line |
| std::string highlight::PreFormatter::getNextLine | ( | ) |
The method will indent function calls and statements
| bool highlight::PreFormatter::indentCode | ( | ) |
| void highlight::PreFormatter::setWrappingProperties | ( | unsigned int | maxlength = 80, |
|
| bool | indentAfterOpenBraces = true | |||
| ) |
| maxlength | max. length of output lines | |
| indentAfterOpenBraces | set true if lines should be indented after braces |
| void highlight::PreFormatter::setNumberSpaces | ( | unsigned int | num | ) |
| num | number of spaces which replace a tab |
| bool highlight::PreFormatter::isEnabled | ( | ) | [inline] |
1.5.2