19 typedef struct real_pcre
pcre;
67 RegEx(
const char * regex,
148 bool Search(
const char * subject,
273 bool Match(
const int i,
412 const char *
Match(
int i = 0 );
435 RegEx& operator=(
const char *);
437 void ClearMatchList(
void);
442 bool allocated_study;
445 const char * subjectStr;
450 const char * * matchlist;
~RegEx()
Definition: UtlRegex.cpp:140
bool Search(const char *subject, int len=-1, int options=0)
Search a string for matches to this regular expression.
Definition: UtlRegex.cpp:165
int Matches()
Get the maximum substring value from the most recent search.
Definition: UtlRegex.cpp:222
int SubStrings(void) const
Count the number of possible substrings returned by this expression.
Definition: UtlRegex.cpp:159
struct real_pcre pcre
Definition: UtlRegex.h:19
bool SearchAt(const char *subject, int offset, int len=-1, int options=0)
Search a string starting at some offset for matches to this regular expression.
Definition: UtlRegex.cpp:178
static const unsigned long int MAX_RECURSION
Default maximum for the recursion depth in searches.
Definition: UtlRegex.h:78
int MatchStart(const int i)
Get the position of a match in the subject.
Definition: UtlRegex.cpp:376
bool MatchString(UtlString *matched, int i=0)
Append a match from the last search operation to a UtlString.
Definition: UtlRegex.cpp:302
bool SearchAgain(int options=0)
Repeat the last search operation, starting immediately after the previous match.
Definition: UtlRegex.cpp:199
Definition: UtlRegex.h:57
Definition: UtlString.h:48
int AfterMatch(int i)
Get the offset of the first character past the matched value.
Definition: UtlRegex.cpp:267
RegEx(const char *regex, int options=0, unsigned long int maxDepth=MAX_RECURSION)
Compile a regular expression to create the matching object.
Definition: UtlRegex.cpp:39
bool AfterMatchString(UtlString *before)
Append string following the most recently matched value to a UtlString.
Definition: UtlRegex.cpp:282
bool BeforeMatchString(UtlString *before)
Append string preceeding the most recently matched value to a UtlString.
Definition: UtlRegex.cpp:246
bool Match(const int i, int &offset, int &length)
Get the position and length of a match in the subject.
Definition: UtlRegex.cpp:341