71 static const FXchar *
const errors[];
133 FXRex(
const FXchar* pattern,FXint mode=Normal,Error* error=
nullptr);
136 FXRex(
const FXString& pattern,FXint mode=Normal,Error* error=
nullptr);
152 Error parse(
const FXchar* pattern,FXint mode=Normal);
153 Error parse(
const FXString& pattern,FXint mode=Normal);
161 FXbool amatch(
const FXchar*
string,FXint len,FXint pos=0,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
162 FXbool amatch(
const FXString&
string,FXint pos=0,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
173 FXint search(
const FXchar*
string,FXint len,FXint fm,FXint to,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
174 FXint search(
const FXString&
string,FXint fm,FXint to,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
185 static FXString substitute(
const FXchar*
string,FXint len,FXint* beg,FXint* end,
const FXchar* replace,FXint npar=1);
186 static FXString substitute(
const FXchar*
string,FXint len,FXint* beg,FXint* end,
const FXString& replace,FXint npar=1);
187 static FXString substitute(
const FXString&
string,FXint* beg,FXint* end,
const FXchar* replace,FXint npar=1);
197 FXbool operator==(
const FXRex& rex)
const;
198 FXbool operator!=(
const FXRex& rex)
const;
221 extern FXAPI FXStream& operator<<(FXStream& store,
const FXRex& s);
222 extern FXAPI FXStream& operator>>(FXStream& store,FXRex& s);
Error
Regular expression error codes.
Definition: FXRex.h:98
FXbool empty() const
See if regular expression is empty; the regular expression will be empty when it is unable to parse a...
Definition: FXRex.h:143
FXRex is a regular expression class implementing a NFA matcher.
Definition: FXRex.h:67
FXbool empty() const
See if string is empty.
Definition: FXString.h:125
A stream is a way to serialize data and objects into a byte stream.
Definition: FXStream.h:81
Definition: FX4Splitter.h:28
static const FXchar * getError(Error err)
Returns error message text for a given error code.
Definition: FXRex.h:191
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42