bes
Updated for version 3.20.6
|
#include <BESRegex.h>
Public Member Functions | |
BESRegex (const char *t) | |
BESRegex (const char *t, int dummy) | |
int | match (const char *s, int len, int pos=0) |
Does the pattern match. More... | |
int | search (const char *s, int len, int &matchlen, int pos=0) |
How much of the string does the pattern matche. More... | |
a C++ interface to POSIX regular expression functions.
Definition at line 41 of file BESRegex.h.
BESRegex::BESRegex | ( | const char * | t | ) |
Initialize a POSIX regular expression (using the 'extended' features).
t | The regular expression pattern. |
Definition at line 83 of file BESRegex.cc.
BESRegex::BESRegex | ( | const char * | t, |
int | dummy | ||
) |
Compatability ctor.
Definition at line 90 of file BESRegex.cc.
int BESRegex::match | ( | const char * | s, |
int | len, | ||
int | pos = 0 |
||
) |
Does the pattern match.
Does the regular expression match the string? Warning : this function can be used to match strings of zero length if the regex pattern accepts empty strings. Therefore this function returns -1 if the pattern does not match.
s | The string |
len | The length of string to consider |
pos | Start looking at this position in the string |
Definition at line 105 of file BESRegex.cc.
int BESRegex::search | ( | const char * | s, |
int | len, | ||
int & | matchlen, | ||
int | pos = 0 |
||
) |
How much of the string does the pattern matche.
Does the regular expression match the string?
s | The string |
len | The length of string to consider |
matchlen | Return the length of the matched portion in this value-result parameter. |
pos | Start looking at this position in the string |
Definition at line 135 of file BESRegex.cc.