srchilite::StringDef Class Reference
represent a string for a language definition file's element
More...
#include <stringdef.h>
Collaboration diagram for srchilite::StringDef:
Public Member Functions
StringDef (const std::string &s, const std::string &o)
StringDef (const std::string &s, bool doubleQuotes=false)
constructs a
StringDef and record whether it comes from a double quoted string.
More...
return the string representation (after preprocessing)
More...
return the original representation (without any preprocessing); this is useful for printing errors
More...
whether this comes from a double quoted string
More...
Static Public Member Functions
Private Attributes
the actual content
the original representation (without any preprocessing)
whether the string was specified with double quotes
whether this is contains a back reference to a matched subexpression
Detailed Description
represent a string for a language definition file's element
Constructor & Destructor Documentation
srchilite::StringDef::StringDef
(
const std::string &
s,
const std::string &
o
)
inline
constructs a StringDef and store also the original representation
- Parameters
-
s the actual content
o the original representation
srchilite::StringDef::StringDef
(
const std::string &
s,
bool
doubleQuotes = false
)
inline
constructs a StringDef and record whether it comes from a double quoted string.
- Parameters
-
s the actual content
doubleQuotes
Member Function Documentation
bool srchilite::StringDef::hasBackRef
(
)
const
inline
- Returns
- whether this has a back reference
bool srchilite::StringDef::isDoubleQuoted
(
)
const
inline
whether this comes from a double quoted string
- Returns
- whether this comes from a double quoted string
void srchilite::StringDef::setBackRef
(
bool
b )
inline
const std::string srchilite::StringDef::toString
(
)
const
return the string representation (after preprocessing)
- Returns
- the string representation
const std::string srchilite::StringDef::toStringOriginal
(
)
const
inline
return the original representation (without any preprocessing); this is useful for printing errors
- Returns
- the original representation
The documentation for this class was generated from the following files:
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/stringdef.h
- /home/bettini/work/source-highlight/src-highlite/lib/srchilite/stringdef.cpp