#include <BESRegex.h>
Public Member Functions | |
BESRegex (const char *t) | |
BESRegex (const char *t, int dummy) | |
~BESRegex () | |
int | match (const char *s, int len, int pos=0) |
Does the pattern match. | |
int | search (const char *s, int len, int &matchlen, int pos=0) |
How much of the string does the pattern matche. |
BESRegex::BESRegex | ( | const char * | t | ) |
Initialize a POSIX regular expression (using the 'extended' features).
t | The regular expression pattern. |
BESRegex::BESRegex | ( | const char * | t, | |
int | dummy | |||
) |
Compatability ctor.
BESRegex::~BESRegex | ( | ) |
int BESRegex::match | ( | const char * | s, | |
int | len, | |||
int | pos = 0 | |||
) |
Does the pattern match.
Does the regular expression match the string?
s | The string | |
len | The length of string to consider | |
pos | Start looking at this position in the string |
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 |