#include <regexp.h>
Public Member Functions | |
Regexp (const std::string &expr, int match_count=0, int flags=0) throw (wibble::exception::Regexp) | |
~Regexp () throw () | |
bool | match (const std::string &str, int flags=0) throw (wibble::exception::Regexp) |
std::string | operator[] (int idx) throw (wibble::exception::OutOfRange) |
size_t | matchStart (int idx) throw (wibble::exception::OutOfRange) |
size_t | matchEnd (int idx) throw (wibble::exception::OutOfRange) |
size_t | matchLength (int idx) throw (wibble::exception::OutOfRange) |
Protected Attributes | |
regex_t | re |
regmatch_t * | pmatch |
int | nmatch |
std::string | lastMatch |
wibble::Regexp::Regexp | ( | const std::string & | expr, | |
int | match_count = 0 , |
|||
int | flags = 0 | |||
) | throw (wibble::exception::Regexp) |
bool wibble::Regexp::match | ( | const std::string & | str, | |
int | flags = 0 | |||
) | throw (wibble::exception::Regexp) |
size_t wibble::Regexp::matchEnd | ( | int | idx | ) | throw (wibble::exception::OutOfRange) |
size_t wibble::Regexp::matchLength | ( | int | idx | ) | throw (wibble::exception::OutOfRange) |
size_t wibble::Regexp::matchStart | ( | int | idx | ) | throw (wibble::exception::OutOfRange) |
string wibble::Regexp::operator[] | ( | int | idx | ) | throw (wibble::exception::OutOfRange) |
std::string wibble::Regexp::lastMatch [protected] |
int wibble::Regexp::nmatch [protected] |
regmatch_t* wibble::Regexp::pmatch [protected] |
Referenced by ~Regexp().
regex_t wibble::Regexp::re [protected] |
Referenced by wibble::Splitter::begin(), wibble::Splitter::end(), and ~Regexp().