Public Types | |
| enum | RStatus { GOOD = 0, EXP_TOO_BIG, OUT_OF_MEM, TOO_MANY_PAR, UNMATCH_PAR, STARPLUS_EMPTY, STARPLUS_NESTED, INDEX_RANGE, INDEX_MATCH, STARPLUS_NOTHING, TRAILING, INT_ERROR, BAD_PARAM, BAD_OPCODE } |
| occurs with this implementation. | |
Public Member Functions | |
| CtelRegexp (const std::string &pattern) | |
| Constructor - compile a regular expression. | |
| ~CtelRegexp () | |
| Destructor. | |
| bool | compile (const std::string &pattern) |
| Compile a new regular expression. | |
| std::string | match (const std::string &str) |
| that is a sub-string matching with the regular expression | |
| bool | match (const std::string &str, size_t *start, size_t *size) |
| another form of matching; returns the indexes of the maching | |
| RStatus | getStatus () |
| Get status. | |
| const std::string & | getStatusMsg () |
| Get status message. | |
| void | clearErrors () |
| Clear all errors. | |
| const std::string & | getRe () |
| Return regular expression pattern. | |
| bool | split (const std::string &str, std::vector< std::string > &all_matches) |
| Split. | |
Private Member Functions | |
| CtelRegexp (const CtelRegexp &) | |
| Private copy constructor. | |
| CtelRegexp & | operator= (const CtelRegexp &) |
| Private assignment operator. | |
Private Attributes | |
| std::string | strPattern |
| STL string to hold pattern. | |
| regexp * | r |
| Pointer to regexp. | |
| RStatus | status |
| Return status, enumerated type. | |
| std::string | statusMsg |
| STL string to hold status message. | |
1.5.1