RExp Class Reference

#include <rexp.h>

Inheritance diagram for RExp:

Public Member Functions

 RExp ()
virtual ~RExp ()
void compile (zmm::String pattern, int flags=0)
void compile (zmm::String pattern, const char *flags)
zmm::Ref< Matchermatcher (zmm::String text, int nmatch=DEFAULT_NMATCH)
zmm::Ref< Matchermatch (zmm::String text, int nmatch=DEFAULT_NMATCH)
bool matches (zmm::String text)
zmm::String getPattern ()
void retain ()
void release ()
int getRefCount ()

Static Public Member Functions

static void * operator new (size_t size)
static void operator delete (void *ptr)

Protected Attributes

bool isCompiled
zmm::String pattern
regex_t regex
mt_atomic_t _ref_count
pthread_mutex_t mutex


class Matcher

Detailed Description

Definition at line 43 of file rexp.h.

Constructor & Destructor Documentation

RExp::RExp (  ) 

Definition at line 49 of file

References isCompiled.

RExp::~RExp (  )  [virtual]

Definition at line 53 of file

References isCompiled, and regex.

Member Function Documentation

void RExp::compile ( zmm::String  pattern,
const char *  flags 

Definition at line 75 of file

References _, _Exception, and compile().

void RExp::compile ( zmm::String  pattern,
int  flags = 0 

Definition at line 64 of file

References _Exception, zmm::String::c_str(), error_string(), isCompiled, and regex.

Referenced by compile().

String RExp::getPattern (  ) 

Definition at line 60 of file

References pattern.

int Object::getRefCount (  )  [inherited]

Definition at line 78 of file

References zmm::Object::_ref_count, and atomic_get().

Ref< Matcher > RExp::match ( zmm::String  text,
int  nmatch = DEFAULT_NMATCH 

Definition at line 97 of file

References matcher(), and nil.

Ref< Matcher > RExp::matcher ( zmm::String  text,
int  nmatch = DEFAULT_NMATCH 

Definition at line 93 of file

References Matcher.

Referenced by match(), and matches().

bool RExp::matches ( zmm::String  text  ) 

Definition at line 106 of file

References Matcher, and matcher().

void Object::operator delete ( void *  ptr  )  [static, inherited]

Definition at line 87 of file

References FREE.

void * Object::operator new ( size_t  size  )  [static, inherited]

Definition at line 83 of file

References MALLOC.

void Object::release (  )  [inherited]
void Object::retain (  )  [inherited]

Friends And Related Function Documentation

friend class Matcher [friend]

Definition at line 59 of file rexp.h.

Referenced by matcher(), and matches().

Field Documentation

mt_atomic_t zmm::Object::_ref_count [protected, inherited]
bool RExp::isCompiled [protected]

Definition at line 55 of file rexp.h.

Referenced by compile(), RExp(), and ~RExp().

pthread_mutex_t zmm::Object::mutex [protected, inherited]

Definition at line 56 of file rexp.h.

Referenced by getPattern().

regex_t RExp::regex [protected]

Definition at line 57 of file rexp.h.

Referenced by compile(), and ~RExp().

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

Generated on Fri Mar 26 20:16:57 2010 for MediaTomb by  doxygen 1.6.1