#include <AP_Regex.h>
Public Member Functions | |
AP_Regex (const AP_String &p) | |
AP_Sint32 | Extract (const AP_String &sFrom, AP_Sint32 group, const AP_String::size_type posStart, AP_String &sTo) const |
AP_Sint32 | Find (const AP_String &sFrom, AP_Sint32 group, const AP_String::size_type posStart) const |
AP_Bool | Grep (const AP_String &s) const |
AP_Bool | Sed (AP_String &s, const AP_String &new_s) const |
~AP_Regex (void) | |
Private Member Functions | |
AP_Bool | _match (const AP_String &s) const |
Private Attributes | |
AP_Sint32 | lasterror |
regmatch_t | match [MAX_GROUP] |
AP_String | pattern |
regex_t | regex |
~AP_Regex | ( | void | ) |
AP_Sint32 Extract | ( | const AP_String & | sFrom, | |
AP_Sint32 | group, | |||
const AP_String::size_type | posStart, | |||
AP_String & | sTo | |||
) | const |
AP_Sint32 Find | ( | const AP_String & | sFrom, | |
AP_Sint32 | group, | |||
const AP_String::size_type | posStart | |||
) | const |
regmatch_t match[MAX_GROUP] [private] |
regex_t regex [private] |