#include <IniParser.h>
Public Member Functions | |
| const string & | operator[] (size_t i) |
| operator bool () | |
| RegexMatch (const Regex &rx, const string &s, size_t nmatch=20) | |
Public Attributes | |
| vector< string > | matches |
| string | rest |
| RegexMatch::RegexMatch | ( | const Regex & | rx, | |
| const string & | s, | |||
| size_t | nmatch = 20 | |||
| ) | [inline] |
| rx | a compiled regex | |
| s | a string to match | |
| nmatch | how many rm_matches to reserve |
References matches, Regex::regex(), and rest.
| RegexMatch::operator bool | ( | ) | [inline] |
did the string match
References matches.
| const string& RegexMatch::operator[] | ( | size_t | i | ) | [inline] |
| vector<string> RegexMatch::matches |
Matched subexpressions (0 - the whole regex)
Referenced by operator bool(), operator[](), IniParser::parse_helper(), and RegexMatch().
| string RegexMatch::rest |
The unmatched part of the string
Referenced by IniParser::parse_helper(), and RegexMatch().
1.5.9