Logo Search packages:      
Sourcecode: icu version File versions  Download package

RegexPattern Class Reference

#include <regex.h>

Inheritance diagram for RegexPattern:

UObject UMemory

List of all members.


Detailed Description

Class RegexPattern represents a compiled regular expression. It includes factory methods for creating a RegexPattern object from the source (string) form of a regular expression, methods for creating RegexMatchers that allow the pattern to be applied to input text, and a few convenience methods for simple common uses of regular expressions.

Class RegexPattern is not intended to be subclassed.

ICU 2.4

Definition at line 100 of file regex.h.


Public Types

enum  PatternIsUTextFlag { PATTERN_IS_UTEXT }

Public Member Functions

virtual RegexPatternclone () const
virtual uint32_t flags () const
virtual UClassID getDynamicClassID () const
virtual RegexMatchermatcher (UErrorCode &status) const
virtual RegexMatchermatcher (UText *input, PatternIsUTextFlag flag, UErrorCode &status) const
virtual RegexMatchermatcher (const UnicodeString &input, UErrorCode &status) const
UBool operator!= (const RegexPattern &that) const
RegexPatternoperator= (const RegexPattern &source)
UBool operator== (const RegexPattern &that) const
virtual UnicodeString pattern () const
virtual UTextpatternText () const
 RegexPattern (const RegexPattern &source)
 RegexPattern ()
virtual int32_t split (UText *input, UText *dest[], int32_t destCapacity, UErrorCode &status) const
virtual int32_t split (const UnicodeString &input, UnicodeString dest[], int32_t destCapacity, UErrorCode &status) const
virtual ~RegexPattern ()

Static Public Member Functions

static RegexPattern *U_EXPORT2 compile (UText *regex, uint32_t flags, UErrorCode &status)
static RegexPattern *U_EXPORT2 compile (const UnicodeString &regex, uint32_t flags, UErrorCode &status)
static RegexPattern *U_EXPORT2 compile (UText *regex, uint32_t flags, UParseError &pe, UErrorCode &status)
static RegexPattern *U_EXPORT2 compile (const UnicodeString &regex, uint32_t flags, UParseError &pe, UErrorCode &status)
static RegexPattern *U_EXPORT2 compile (UText *regex, UParseError &pe, UErrorCode &status)
static RegexPattern *U_EXPORT2 compile (const UnicodeString &regex, UParseError &pe, UErrorCode &status)
static UClassID U_EXPORT2 getStaticClassID ()
static UBool U_EXPORT2 matches (UText *regex, UText *input, UParseError &pe, UErrorCode &status)
static UBool U_EXPORT2 matches (const UnicodeString &regex, const UnicodeString &input, UParseError &pe, UErrorCode &status)
static void U_EXPORT2 operator delete (void *, void *) U_NO_THROW
static void U_EXPORT2 operator delete (void *p) U_NO_THROW
static void U_EXPORT2 operator delete[] (void *p) U_NO_THROW
static void *U_EXPORT2 operator new (size_t, void *ptr) U_NO_THROW
static void *U_EXPORT2 operator new (size_t size) U_NO_THROW
static void *U_EXPORT2 operator new[] (size_t size) U_NO_THROW

Private Member Functions

void init ()
RegexMatchermatcher (const UChar *input, UErrorCode &status) const
void zap ()

Private Attributes

UVector64fCompiledPat
int32_t fDataSize
UErrorCode fDeferredStatus
uint32_t fFlags
int32_t fFrameSize
UVector32fGroupMap
UChar32 fInitialChar
UnicodeSetfInitialChars
Regex8BitSet * fInitialChars8
int32_t fInitialStringIdx
int32_t fInitialStringLen
UnicodeString fLiteralText
int32_t fMaxCaptureDigits
int32_t fMinMatchLen
UBool fNeedsAltInput
UTextfPattern
UnicodeStringfPatternString
UVectorfSets
Regex8BitSet * fSets8
int32_t fStartType
UnicodeSet ** fStaticSets
Regex8BitSet * fStaticSets8

Friends

class RegexCImpl
class RegexCompile
class RegexMatcher

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

Generated by  Doxygen 1.6.0   Back to index