Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

Basics::RegExp Class Reference

#include <RegExp.H>

List of all members.

Public Member Functions

 RegExp (const char *re, int cflags=(REG_EXTENDED|REG_ICASE|REG_NOSUB)) throw (RegExp::ParseError)
 RegExp (const Text &re, int cflags=(REG_EXTENDED|REG_ICASE|REG_NOSUB)) throw (RegExp::ParseError)
 ~RegExp ()
bool match (const char *string, size_t nmatch=0, regmatch_t *pmatch=0, int eflags=0)
bool match (const Text &text, size_t nmatch=0, regmatch_t *pmatch=0, int eflags=0)
bool operator() (const char *string, size_t nmatch=0, regmatch_t *pmatch=0, int eflags=0)
bool operator() (const Text &text, size_t nmatch=0, regmatch_t *pmatch=0, int eflags=0)
size_t nsubs (void)

Private Member Functions

 RegExp (const RegExp &)
void operator= (const RegExp &)
void constructor_inner (const char *re, int cflags) throw (RegExp::ParseError)

Private Attributes

regex_t parsed

Classes

struct  ParseError


Constructor & Destructor Documentation

Basics::RegExp::RegExp const char *  re,
int  cflags = (REG_EXTENDED | REG_ICASE | REG_NOSUB)
throw (RegExp::ParseError) [inline]
 

Definition at line 49 of file RegExp.H.

References constructor_inner().

Basics::RegExp::RegExp const Text re,
int  cflags = (REG_EXTENDED | REG_ICASE | REG_NOSUB)
throw (RegExp::ParseError) [inline]
 

Definition at line 59 of file RegExp.H.

References Text::cchars(), and constructor_inner().

Basics::RegExp::~RegExp  )  [inline]
 

Definition at line 66 of file RegExp.H.

Basics::RegExp::RegExp const RegExp  )  [private]
 


Member Function Documentation

void Basics::RegExp::constructor_inner const char *  re,
int  cflags
throw (RegExp::ParseError) [private]
 

Referenced by RegExp().

bool Basics::RegExp::match const Text text,
size_t  nmatch = 0,
regmatch_t *  pmatch = 0,
int  eflags = 0
[inline]
 

Definition at line 84 of file RegExp.H.

References Text::cchars(), and match().

bool Basics::RegExp::match const char *  string,
size_t  nmatch = 0,
regmatch_t *  pmatch = 0,
int  eflags = 0
[inline]
 

Definition at line 71 of file RegExp.H.

Referenced by main(), match(), and operator()().

size_t Basics::RegExp::nsubs void   )  [inline]
 

Definition at line 105 of file RegExp.H.

References parsed.

bool Basics::RegExp::operator() const Text text,
size_t  nmatch = 0,
regmatch_t *  pmatch = 0,
int  eflags = 0
[inline]
 

Definition at line 98 of file RegExp.H.

References Text::cchars(), and match().

bool Basics::RegExp::operator() const char *  string,
size_t  nmatch = 0,
regmatch_t *  pmatch = 0,
int  eflags = 0
[inline]
 

Definition at line 91 of file RegExp.H.

References match().

void Basics::RegExp::operator= const RegExp  )  [private]
 


Member Data Documentation

regex_t Basics::RegExp::parsed [private]
 

Definition at line 37 of file RegExp.H.

Referenced by nsubs().


The documentation for this class was generated from the following file:
Generated on Mon May 8 00:49:18 2006 for Vesta by  doxygen 1.4.2