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

Regex Class Reference

List of all members.

Public Member Functions

void clone (Regex &)
int compile (string const &str, int flags)
int compile (const char *pattern, int flags)
int exec (string const &str, size_t nmatch, regmatch_t matchptr[], int eflags)
int exec (const char *string, size_t nmatch, regmatch_t matchptr[], int eflags)
void free ()
int isCompiled ()
 Regex (string const &pattern, int flags)
 Regex (const char *pattern, int flags)
 Regex (Regex &)
 Regex ()
 ~Regex ()

Private Attributes

int compiled
regex_t compiledRegex
int flags
regmatch_t match
string pattern

Detailed Description

This class is used to manage regular expressions in MyServer.


Constructor & Destructor Documentation

Regex::Regex  ) 
 

Constructor for the class.

Regex::Regex Regex r  ) 
 

Construct by copy.

Regex::Regex const char *  pattern,
int  flags
 

Constructor for the class.

Regex::~Regex  ) 
 

Destructor for the class

Regex::Regex string const &  pattern,
int  flags
 


Member Function Documentation

void Regex::clone Regex r  ) 
 

Create a clone.

int Regex::compile string const &  str,
int  flags
 

int Regex::compile const char *  p,
int  f
 

Compile the regex pattern.

int Regex::exec string const &  str,
size_t  nmatch,
regmatch_t  matchptr[],
int  eflags
 

int Regex::exec const char *  text,
size_t  nmatch,
regmatch_t  matchptr[],
int  eflags
 

Match the pattern against strings.

void Regex::free  ) 
 

Free the used memory.

int Regex::isCompiled  ) 
 

Return a nonzero value if the regex was compiled.


Member Data Documentation

int Regex::compiled [private]
 

regex_t Regex::compiledRegex [private]
 

int Regex::flags [private]
 

regmatch_t Regex::match [private]
 

string Regex::pattern [private]
 


Generated on Thu May 1 12:41:04 2008 for MyServer by  doxygen 1.3.9.1