Token containing information for performing the highlight.
More...
#include <highlighttoken.h>
|
| HighlightToken (const HighlightRule *_rule=0) |
|
| HighlightToken (const std::string &elem, const std::string &matched, const std::string &_prefix, const HighlightRule *_rule=0) |
|
void | copyFrom (const HighlightToken &token) |
| Copy from the passed toke.
|
|
void | clearMatched () |
| Resets the matched related fields (i.e., matched, matchedSize)
|
|
void | addMatched (const std::string &elem, const std::string &s) |
| Adds information about a matched element.
|
|
|
std::string | prefix |
| the possible prefix (part before the matched string)
|
|
bool | prefixOnlySpaces |
| true if the prefix is empty or contains only spaces
|
|
std::string | suffix |
| the possible suffix (part after the matched string)
|
|
MatchedElements | matched |
| the matched elements information
|
|
unsigned int | matchedSize |
| the size of the whole matched sequence (this is computed automatically when matched elements are set or added)
|
|
MatchedSubExps | matchedSubExps |
| The matched subexpressions (in case the rule had subexpressions)
|
|
const HighlightRule * | rule |
| the matching rule
|
|
Token containing information for performing the highlight.
◆ addMatched()
void srchilite::HighlightToken::addMatched |
( |
const std::string & |
elem, |
|
|
const std::string & |
s |
|
) |
| |
Adds information about a matched element.
- Parameters
-
elem | the element name |
s | the matched string |
◆ copyFrom()
void srchilite::HighlightToken::copyFrom |
( |
const HighlightToken & |
token | ) |
|
|
inline |
Copy from the passed toke.
- Parameters
-
The documentation for this struct was generated from the following files:
- source-highlight-3.1.9/lib/srchilite/highlighttoken.h
- source-highlight-3.1.9/lib/srchilite/highlighttoken.cpp