#include <Regex.h>
Inheritance diagram for oasys::Regex:
Definition at line 48 of file Regex.h.
Public Member Functions | |
Regex (const char *regex, int cflags=0) | |
virtual | ~Regex () |
int | match (const char *str, int flags=0) |
bool | valid () |
int | num_matches () |
const regmatch_t & | get_match (size_t i) |
std::string | regerror_str (int err) |
Static Public Member Functions | |
static int | match (const char *regex, const char *str, int cflags=0, int rflags=0) |
Static Public Attributes | |
static const size_t | MATCH_LIMIT = 8 |
Protected Attributes | |
int | compilation_err_ |
regex_t | regex_ |
regmatch_t | matches_ [MATCH_LIMIT] |
oasys::Regex::Regex | ( | const char * | regex, | |
int | cflags = 0 | |||
) |
oasys::Regex::~Regex | ( | ) | [virtual] |
int oasys::Regex::match | ( | const char * | regex, | |
const char * | str, | |||
int | cflags = 0 , |
|||
int | rflags = 0 | |||
) | [static] |
Definition at line 66 of file Regex.cc.
References match().
Referenced by match(), and oasys::Regsub::subst().
int oasys::Regex::match | ( | const char * | str, | |
int | flags = 0 | |||
) |
Definition at line 56 of file Regex.cc.
References compilation_err_, MATCH_LIMIT, matches_, and regex_.
bool oasys::Regex::valid | ( | ) | [inline] |
int oasys::Regex::num_matches | ( | ) |
Definition at line 73 of file Regex.cc.
References MATCH_LIMIT, and matches_.
Referenced by oasys::Regsub::subst().
const regmatch_t & oasys::Regex::get_match | ( | size_t | i | ) |
std::string oasys::Regex::regerror_str | ( | int | err | ) |
const size_t oasys::Regex::MATCH_LIMIT = 8 [static] |
int oasys::Regex::compilation_err_ [protected] |
regex_t oasys::Regex::regex_ [protected] |
regmatch_t oasys::Regex::matches_[MATCH_LIMIT] [protected] |
Definition at line 71 of file Regex.h.
Referenced by get_match(), match(), num_matches(), and oasys::Regsub::subst().