Developer Documentation
Centre for Vision, Speech & Signal Processing
USER IN NAMESPACE AMMA TREE ROOT AMMA SEARCH AMMA HOME
 

  PUBLIC
Regex::Regex(const Regex &)
Regex::operator=(const Regex &)
Regex::Regex(const char *,int,int,const char *)
Regex::~Regex(void)
Regex::match(const char *,int,int) const
Regex::search(const char *,int,int &,int) const
Regex::match_info(int &,int &,int) const
Regex::OK(void) const
Regex
 
include "amma/rx.h"
User Level:Default
Library:Mtext
Example:exBiHash.cc
Section:Basic Types.Text
In Scope:std

Variables:

re_pattern_buffer * buf;

re_registers * reg;

Methods:
Regex(const Regex &)
no X(X&)

void operator=(const Regex &)
no assignment

Regex(const char * t,int fast = 0,int bufsize = 40,const char * transtable = 0)

~Regex()
Destructor.

int match(const char * s,int len,int pos = 0) const
Returns the number of charators matched, or -1 if failed.

int search(const char * s,int len,int & matchlen,int startpos = 0) const
Returns the start of matching string, or -1 if failed.

int match_info(int & start,int & length,int nth = 0) const
Get some more info about the last match.

int OK() const
representation invariant


Documentation by CxxDoc: Tue Mar 20 10:49:27 2001