Public Member Functions | Static Public Member Functions | List of all members
Celartem::RegEx Class Referenceabstract

#include <cel_regex.h>

Inheritance diagram for Celartem::RegEx:
Inheritance graph
[legend]

Public Member Functions

virtual AutoPtr< Regionsearch (const UChar1 *str, const UChar1 *rangePtr=NULL, const UChar1 *rangeEnd=NULL, const UChar1 *strEnd=NULL)=0
 
virtual AutoPtr< Regionmatch (const char *str, const char *strAt=NULL, const char *strEnd=NULL)=0
 
- Public Member Functions inherited from Celartem::Referable
 Referable ()
 
void addRef () const
 
void releaseRef () const
 
size_t getReferenceCount () const
 

Static Public Member Functions

static AutoPtr< RegExcreate (const UChar1 *inPattern, size_t length, int inOptionFlags=regex_default)
 
- Static Public Member Functions inherited from Celartem::Referable
static void dumpDbgAllRefCount ()
 

Detailed Description

This class defines the RegEx interface. You should use RegularExpression class instead of creating the instance of this class directly.

Member Function Documentation

static AutoPtr<RegEx> Celartem::RegEx::create ( const UChar1 inPattern,
size_t  length,
int  inOptionFlags = regex_default 
)
static

This method is a factory for RegEx class. You should use RegularExpression instead of RegEx class.

Parameters
inPatternA pattern to search.
lengthThe length of the pattern string.
inOptionFlagsAny combination of RegexOptionFlag enumerations to control the behavior.

Referenced by Celartem::RegularExpression::init().

virtual AutoPtr<Region> Celartem::RegEx::match ( const char *  str,
const char *  strAt = NULL,
const char *  strEnd = NULL 
)
pure virtual

This method tries to match the specified string to the pattern.

Parameters
strA string to do pattern matching on.
strAtPointer to the beginning point of pattern matching.
strEndPointer to the ending point of pattern matching.
Returns
A Pointer to the Region instance.
virtual AutoPtr<Region> Celartem::RegEx::search ( const UChar1 str,
const UChar1 rangePtr = NULL,
const UChar1 rangeEnd = NULL,
const UChar1 strEnd = NULL 
)
pure virtual

This method searchs the matching portion.

Parameters
strA string to do pattern matching on.
rangePtrPointer to the beginning point of pattern matching.
rangeEndPointer to the ending point of pattern matching.
strEndPointer to the string end. If this parameter is explicitly specified, then str don't have to be terminated by '\0'.
Returns
A Pointer to the Region instance.

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

Cuminas DjVu SDK 3.0.33103
This document is made with doxygen 1.8.5 at Sun Dec 15 2013 19:38:06.
Cuminas Logo