Back to index

courier  0.68.2
Public Member Functions | Private Member Functions | Private Attributes
Re Class Reference

#include <re.h>

Collaboration diagram for Re:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Re ()
 ~Re ()
int Compile (const char *, int, int &)
int Match (ReMatch &)
unsigned MatchCount (Re **p=0)
int IsDummy ()
int IsAnchorStart ()

Private Member Functions

RegExpNodeallocnode ()
int curchar ()
void nextchar ()
int CompileS (const char *, int, int &)
void init ()
RegExpNode ** CompileAtom (RegExpNode **)
RegExpNode ** CompileAtomString (RegExpNode **)
RegExpNode ** CompileOrClause (RegExpNode **)
RegExpNode ** CompileElement (RegExpNode **)
void is_sets (RegExpNode *)
int parsechar ()

Private Attributes

Rechainedre
Reprevre
RegExpNodenodes
RegExpNodefirst
RegExpNodefinal
unsigned nextid
const char * expr
const char * origexpr
int matched
off_t matchedpos
ReEvalcurstate
ReEvalnextstate
unsigned final_id
int casesensitive
int matchFull
int isCaret
int isDummy
ReEval state1
ReEval state2
unsigned charsmatched

Detailed Description

Definition at line 44 of file re.h.


Constructor & Destructor Documentation

Re::Re ( )
Re::~Re ( )

Member Function Documentation

RegExpNode* Re::allocnode ( ) [private]
int Re::Compile ( const char *  ,
int  ,
int &   
)
RegExpNode** Re::CompileAtom ( RegExpNode **  ) [private]
int Re::CompileS ( const char *  ,
int  ,
int &   
) [private]
int Re::curchar ( ) [inline, private]

Definition at line 62 of file re.h.

{ return ((int)(unsigned char)*expr); }
void Re::init ( ) [private]
void Re::is_sets ( RegExpNode ) [private]
int Re::IsAnchorStart ( ) [inline]

Definition at line 97 of file re.h.

{ return (isCaret); }
int Re::IsDummy ( ) [inline]

Definition at line 96 of file re.h.

{ return (isDummy); }
int Re::Match ( ReMatch )
unsigned Re::MatchCount ( Re **  p = 0) [inline]

Definition at line 93 of file re.h.

                                      {
                                   if (p) *p=chainedre;
                                   return (charsmatched); }
void Re::nextchar ( ) [inline, private]

Definition at line 63 of file re.h.

{ ++expr; }
int Re::parsechar ( ) [private]

Member Data Documentation

int Re::casesensitive [private]

Definition at line 64 of file re.h.

Re* Re::chainedre [private]

Definition at line 46 of file re.h.

unsigned Re::charsmatched [private]

Definition at line 90 of file re.h.

ReEval* Re::curstate [private]

Definition at line 59 of file re.h.

const char* Re::expr [private]

Definition at line 54 of file re.h.

RegExpNode* Re::final [private]

Definition at line 50 of file re.h.

unsigned Re::final_id [private]

Definition at line 60 of file re.h.

RegExpNode* Re::first [private]

Definition at line 49 of file re.h.

int Re::isCaret [private]

Definition at line 66 of file re.h.

int Re::isDummy [private]

Definition at line 67 of file re.h.

int Re::matched [private]

Definition at line 57 of file re.h.

off_t Re::matchedpos [private]

Definition at line 58 of file re.h.

int Re::matchFull [private]

Definition at line 65 of file re.h.

unsigned Re::nextid [private]

Definition at line 51 of file re.h.

ReEval * Re::nextstate [private]

Definition at line 59 of file re.h.

RegExpNode* Re::nodes [private]

Definition at line 48 of file re.h.

const char * Re::origexpr [private]

Definition at line 54 of file re.h.

Re* Re::prevre [private]

Definition at line 47 of file re.h.

ReEval Re::state1 [private]

Definition at line 89 of file re.h.

ReEval Re::state2 [private]

Definition at line 89 of file re.h.


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