wibble  1.1
Public Member Functions | Protected Attributes | List of all members
wibble::Regexp Class Reference

#include <regexp.h>

Inheritance diagram for wibble::Regexp:
Inheritance graph
[legend]

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 (
)

Member Function Documentation

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
)

Member Data Documentation

std::string wibble::Regexp::lastMatch
protected
int wibble::Regexp::nmatch
protected
regmatch_t* wibble::Regexp::pmatch
protected
regex_t wibble::Regexp::re
protected

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