#include <stringlistlangelem.h>
Inherits srchilite::StateStartLangElem.
Public Member Functions | |
StringListLangElem (const std::string &n, StringDefs *defs, bool nons) | |
virtual const std::string | toString () const |
virtual const std::string | toStringOriginal () const |
StringDefs * | getAlternatives () const |
bool | isCaseSensitive () const |
virtual void | dispatch_build (HighlightStateBuilder *, HighlightState *state) |
void | setExit (unsigned int level=1) |
Sets the "exit" property of this element (i.e., if the element is match then exit one state). | |
void | setExitAll () |
Sets the "exit all" property of this element (i.e., if the element is match then exit all states and get back to the main initial state). | |
bool | exitAll () const |
unsigned int | getExit () const |
StateLangElem * | getStateLangElem () const |
void | setStateLangElem (StateLangElem *s) |
Sets the state for which this element represents the start. | |
const std::string | getName () const |
bool | isRedef () const |
void | setRedef () |
bool | isSubst () const |
void | setSubst () |
const std::string | toStringParserInfo () const |
virtual void | dispatch_collect_const (LangElemsPrinter *) |
void | setParserInfo (const std::string &name, unsigned int l) |
void | setParserInfo (const ParserInfo *p) |
Public Attributes | |
std::string | filename |
unsigned int | line |
Private Attributes | |
StringDefs * | alternatives |
bool | nonsensitive |
srchilite::StringListLangElem::StringListLangElem | ( | const std::string & | n, | |
StringDefs * | defs, | |||
bool | nons | |||
) |
n | the name for this element | |
defs | the alternatives for this element | |
nons | whether the alternatives are to be considered case unsensitive |
bool srchilite::StateStartLangElem::exitAll | ( | ) | const [inline, inherited] |
StringDefs* srchilite::StringListLangElem::getAlternatives | ( | ) | const [inline] |
unsigned int srchilite::StateStartLangElem::getExit | ( | ) | const [inline, inherited] |
StateLangElem* srchilite::StateStartLangElem::getStateLangElem | ( | ) | const [inline, inherited] |
bool srchilite::StringListLangElem::isCaseSensitive | ( | ) | const [inline] |
void srchilite::StateStartLangElem::setExit | ( | unsigned int | level = 1 |
) | [inline, inherited] |
Sets the "exit" property of this element (i.e., if the element is match then exit one state).
level | the exit level (default to 1) |
void srchilite::StateStartLangElem::setStateLangElem | ( | StateLangElem * | s | ) | [inline, inherited] |
Sets the state for which this element represents the start.
s | the state for which this element represents the start |
const std::string srchilite::LangElem::toStringParserInfo | ( | ) | const [inherited] |