NRegex Class Reference

NRegex class implements a POSIX compatible regex matcher/compiler. More...

List of all members.

Public Types

typedef struct
NRegex::MatchOffset_t 
MatchOffset

Public Member Functions

 NRegex (const NString &reg, 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...


Detailed Description

NRegex class implements a POSIX compatible regex matcher/compiler.
Examples:

ex_nregex.cpp.

Definition at line 42 of file nregex.h.


Constructor & Destructor Documentation

NRegex ( const NString reg,
const NString str 
)

Constructs a NRegex object.

Parameters:
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().


Member Function Documentation

bool match (  ) 

Tests whether the string matches the regex.

Returns:
true if matches or false otherwise
Examples:
ex_nregex.cpp.

Definition at line 126 of file nregex.cpp.

References NException::BASE, and NString::toChar().


Member Data Documentation

const nint32 NO_MATCH = -1 [static]

Regex no match

Definition at line 66 of file nregex.h.

const nint32 MATCH_COUNT_MAX = 2048 [static]

Maximum match count

Definition at line 67 of file nregex.h.


The documentation for this class was generated from the following files:
Generated on Wed Mar 5 23:10:37 2008 for NemesisUtilitiesSystem by  doxygen 1.5.4