Colorer regular expressions library cregexp.
Public Member Functions | |
CRegExp () | |
Empty constructor. | |
CRegExp (const String *text) | |
Constructs regular expression and compile it with text pattern. | |
bool | isOk () |
Is compilied RE well-formed. | |
EError | getError () |
Returns information about RE compilation error. | |
bool | setPositionMoves (bool moves) |
Tells RE parser, that it must make moves on tested string while RE matching. | |
int | getBracketNo (const String *brname) |
Returns count of named brackets. | |
String * | getBracketName (int no) |
Returns named bracked name by it's index. | |
bool | setBackRE (CRegExp *bkre) |
bool | setBackTrace (const String *str, SMatches *trace) |
Changes RE object, used for backreferences with named {} {} operators. | |
bool | getBackTrace (const String **str, SMatches **trace) |
Returns current RE object, used for backreferences with operators. | |
bool | setRE (const String *re) |
Compiles specified regular expression and drops all previous structures. | |
bool | parse (const String *str, SMatches *mtch) |
Runs RE parser against input string str . | |
bool | parse (const String *str, int pos, int eol, SMatches *mtch, int soscheme=0, int moves=-1) |
Runs RE parser against input string str . |
|
Empty constructor. No RE tree is builded with this constructor. Use setRE method to change pattern. |