#include <regex.h>
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 RegexPattern * | clone () const |
virtual uint32_t | flags () const |
virtual UClassID | getDynamicClassID () const |
virtual RegexMatcher * | matcher (UErrorCode &status) const |
virtual RegexMatcher * | matcher (UText *input, PatternIsUTextFlag flag, UErrorCode &status) const |
virtual RegexMatcher * | matcher (const UnicodeString &input, UErrorCode &status) const |
UBool | operator!= (const RegexPattern &that) const |
RegexPattern & | operator= (const RegexPattern &source) |
UBool | operator== (const RegexPattern &that) const |
virtual UnicodeString | pattern () const |
virtual UText * | patternText () 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 ®ex, 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 ®ex, 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 ®ex, 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 ®ex, 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 () |
RegexMatcher * | matcher (const UChar *input, UErrorCode &status) const |
void | zap () |
Private Attributes | |
UVector64 * | fCompiledPat |
int32_t | fDataSize |
UErrorCode | fDeferredStatus |
uint32_t | fFlags |
int32_t | fFrameSize |
UVector32 * | fGroupMap |
UChar32 | fInitialChar |
UnicodeSet * | fInitialChars |
Regex8BitSet * | fInitialChars8 |
int32_t | fInitialStringIdx |
int32_t | fInitialStringLen |
UnicodeString | fLiteralText |
int32_t | fMaxCaptureDigits |
int32_t | fMinMatchLen |
UBool | fNeedsAltInput |
UText * | fPattern |
UnicodeString * | fPatternString |
UVector * | fSets |
Regex8BitSet * | fSets8 |
int32_t | fStartType |
UnicodeSet ** | fStaticSets |
Regex8BitSet * | fStaticSets8 |
Friends | |
class | RegexCImpl |
class | RegexCompile |
class | RegexMatcher |