srchilite::LineNumGenerator Class Reference
Generates line numbers in the output.
More...
#include <linenumgenerator.h>
Collaboration diagram for srchilite::LineNumGenerator:
Public Member Functions
void
setAnchorStyle (const
TextStyle &_anchorStyle)
void setAnchorPrefix (const std::string &_anchorLinePrefix)
void setDigitNum (unsigned int _digitNum)
Generates a string representing the formatting of the passed line number.
More...
Private Attributes
number of digits to represent line number
character to use for padding the line number
for actually formatting the line number
for possible line anchor generation (can be null)
when generating an anchor for a line, use this prefix for the anchor name
Detailed Description
Generates line numbers in the output.
Member Function Documentation
const std::string srchilite::LineNumGenerator::generateLine
(
unsigned int
line )
Generates a string representing the formatting of the passed line number.
- Parameters
-
line
- Returns
- the formatted line
The documentation for this class was generated from the following files:
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/linenumgenerator.h
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/linenumgenerator.cpp