Token containing information for performing the highlight.
More...
#include <highlighttoken.h>
Collaboration diagram for srchilite::HighlightToken:
Public Member Functions
HighlightToken (const std::string &elem, const std::string &
matched, const std::string &_prefix, const
HighlightRule *_rule=0)
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.
More...
Public Attributes
the possible prefix (part before the matched string)
true if the prefix is empty or contains only spaces
the possible suffix (part after the matched string)
the matched elements information
the size of the whole matched sequence (this is computed automatically when matched elements are set or added)
The matched subexpressions (in case the rule had subexpressions)
the matching rule
Detailed Description
Token containing information for performing the highlight.
Member Function Documentation
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
void srchilite::HighlightToken::copyFrom
(
const
HighlightToken &
token )
inline
Copy from the passed toke.
- Parameters
-
token
The documentation for this struct was generated from the following files:
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/highlighttoken.h
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/highlighttoken.cpp