wibble::Regexp Class Reference

#include <regexp.h>

Inheritance diagram for wibble::Regexp:
[legend]

List of all members.

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


Constructor & Destructor Documentation

wibble::Regexp::Regexp ( const std::string &  expr,
int  match_count = 0,
int  flags = 0 
) throw (wibble::exception::Regexp)

wibble::Regexp::~Regexp (  )  throw ()

References pmatch, and re.


Member Function Documentation

bool wibble::Regexp::match ( const std::string &  str,
int  flags = 0 
) throw (wibble::exception::Regexp)

string wibble::Regexp::operator[] ( int  idx  )  throw (wibble::exception::OutOfRange)

size_t wibble::Regexp::matchStart ( int  idx  )  throw (wibble::exception::OutOfRange)

size_t wibble::Regexp::matchEnd ( int  idx  )  throw (wibble::exception::OutOfRange)

size_t wibble::Regexp::matchLength ( int  idx  )  throw (wibble::exception::OutOfRange)


Member Data Documentation

regex_t wibble::Regexp::re [protected]

regmatch_t* wibble::Regexp::pmatch [protected]

Referenced by ~Regexp().

int wibble::Regexp::nmatch [protected]

std::string wibble::Regexp::lastMatch [protected]


The documentation for this class was generated from the following files:

Generated on Wed Aug 20 11:10:12 2008 for wibble by  doxygen 1.5.6