Public Types |
| enum | {
ERR_BADREPEAT = -2,
ERR_BADBACKREF = -3,
ERR_BADBRACE = -4,
ERR_BADBRACK = -5,
ERR_BADPARENTHESIS = -6,
ERR_BADRANGE = -7,
ERR_BADSUBREG = -8,
ERR_BADCHARCLASS = -9,
ERR_BADESCAPE = -10,
ERR_BADPATTERN = -11,
ERR_TOLARGE = -12,
ERR_NOMEM = -13,
ERR_GENERIC = -14
} |
Public Methods |
| | RegExp () |
| | Default constructor. More...
|
| | RegExp (const std::string &cExpression, bool bNoCase=false, bool bExtended=false) |
| | Constructor. More...
|
| | ~RegExp () |
| | Destructor. More...
|
| status_t | Compile (const std::string &cExpression, bool bNoCase=false, bool bExtended=false) |
| | Compile an regular expression. More...
|
| int | GetSubExprCount () const |
| | Get the number of sub-expressions found in the previously compiled expression. More...
|
| bool | IsValid () const |
| | Check if a valid expression has been compiled. More...
|
| bool | Search (const std::string &cString) |
| | Search for the previously compiled regular expression. More...
|
| bool | Search (const std::string &cString, int nStart, int nLen=-1) |
| | Search for the previously compiled regular expression. More...
|
| bool | Match (const std::string &cString) |
| | Compare the regular expression to a string. More...
|
| bool | Match (const std::string &cString, int nStart, int nLen=-1) |
| | Compare the regular expression to a string. More...
|
| std::string | Expand (const std::string &cPattern) const |
| | Expand a string using substrings from the previous search. More...
|
| int | GetStart () const |
| | Get the position of the first character that matched in the previous search. More...
|
| int | GetEnd () const |
| | Get the position of the first character after the matched region in the previous search. More...
|
| const std::string & | GetSubString (uint nIndex) const |
| | Get the result of a subexpression from the previous search. More...
|
| bool | GetSubString (uint nIndex, int *pnStart, int *pnEnd) const |
| | Get the result of a subexpression from the previous search. More...
|
| const std::vector< std::string > & | GetSubStrList () const |
| | Get a list of substrings from the previous search. More...
|