Inheritance diagram for lfc::RegexpMatch::
Public Methods | |
RegexpMatch () throw () | |
\brief Constructor. More... | |
string | getMatch () const throw () |
\brief Method access to the public match member. More... | |
long | getOffset () const throw () |
RegexpMatch * | getSavedSubmatch (unsigned int index) const |
int | getSavedSubmatchCount () const throw () |
\brief Returns a count of the saved submatches. More... | |
bool | getEOLAnchorMatch () const throw () |
\brief Indicates whether a newline was eaten up by a '$' match. More... | |
Public Attributes | |
string | match |
\brief The string that matched. More... | |
long | offset |
\brief The offset from the original position. More... | |
bool | eolAnchorMatch |
\brief Indicates whether a newline was eaten up by a '$' anchor. More... | |
std::vector< RegexpMatch *> | savedMatches |
\brief Saved submatches of this match. More... |
The members have remained public
|
\brief Constructor.
|
|
\brief Method access to the public match member.
|
|
Gets the offset for this match. The offset value indicates one of two things: If this is a top-level match (i.e., not a saved match), the offset indicates how many characters were eaten up before this match began. If this is a saved match, it indicates how many characters preceded this in the match string of the parent. |
|
Gets the given saved submatch. Only the top-level match (the match returned to the user) will have any saved submatches. The saved submatches are indexed by the order in which the left parens which starts their group appears. That is, the pattern '(out(inner)er)' will have as its first saved submatch the string 'outinnerer' and as its second 'inner'. The reason for this is so that backreferences word correctly, once they are implemented.
|
|
\brief Returns a count of the saved submatches.
|
|
\brief Indicates whether a newline was eaten up by a '$' match.
|
|
\brief The string that matched.
|
|
\brief The offset from the original position.
|
|
\brief Indicates whether a newline was eaten up by a '$' anchor.
|
|
\brief Saved submatches of this match.
|