Public Types | |
typedef struct NRegex::MatchOffset_t | MatchOffset |
Public Member Functions | |
NRegex (const NString ®, const NString &str) | |
Constructs a NRegex object. | |
bool | match () |
Tests whether the string matches the regex. | |
Static Public Attributes | |
static const nint32 | NO_MATCH = -1 |
static const nint32 | MATCH_COUNT_MAX = 2048 |
Classes | |
struct | MatchOffset_t |
Regex matching offset. More... |
Definition at line 42 of file nregex.h.
Constructs a NRegex object.
reg | The regex to match against | |
str | The string to be matched |
Definition at line 27 of file nregex.cpp.
References NException::BASE, and NString::toChar().
bool match | ( | ) |
Tests whether the string matches the regex.
Definition at line 126 of file nregex.cpp.
References NException::BASE, and NString::toChar().
const nint32 MATCH_COUNT_MAX = 2048 [static] |