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)
 
 ~Regexp () throw ()
 
bool match (const std::string &str, int flags=0)
 
std::string operator[] (int idx)
 
size_t matchStart (int idx)
 
size_t matchEnd (int idx)
 
size_t matchLength (int idx)
 

Protected Attributes

regex_t re
 
regmatch_t * pmatch
 
int nmatch
 
std::string lastMatch
 

Constructor & Destructor Documentation

◆ Regexp()

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

References pmatch, and re.

◆ ~Regexp()

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

References pmatch, and re.

Member Function Documentation

◆ match()

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

◆ matchEnd()

size_t wibble::Regexp::matchEnd ( int  idx)

References nmatch, and pmatch.

◆ matchLength()

size_t wibble::Regexp::matchLength ( int  idx)

◆ matchStart()

size_t wibble::Regexp::matchStart ( int  idx)

◆ operator[]()

string wibble::Regexp::operator[] ( int  idx)

References lastMatch, nmatch, and pmatch.

Member Data Documentation

◆ lastMatch

std::string wibble::Regexp::lastMatch
protected

Referenced by match(), and operator[]().

◆ nmatch

int wibble::Regexp::nmatch
protected

◆ pmatch

regmatch_t* wibble::Regexp::pmatch
protected

◆ re

regex_t wibble::Regexp::re
protected

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