#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. |
Definition at line 32 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 74 of file BESRegex.cc.
BESRegex::BESRegex | ( | const char * | t, | |
int | dummy | |||
) |
Compatability ctor.
Definition at line 81 of file BESRegex.cc.
BESRegex::~BESRegex | ( | ) |
Definition at line 64 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?
s | The string | |
len | The length of string to consider | |
pos | Start looking at this position in the string |
Definition at line 93 of file BESRegex.cc.
Referenced by BESScrub::pathname_ok(), and regexT::run().
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 117 of file BESRegex.cc.
References BESScrub::size_ok().
Here is the call graph for this function: