71 static const FXchar *
const errors[];
135 FXRex(
const FXchar* pattern,FXint mode=Normal,Error* error=
nullptr);
138 FXRex(
const FXString& pattern,FXint mode=Normal,Error* error=
nullptr);
154 Error parse(
const FXchar* pattern,FXint mode=Normal);
155 Error parse(
const FXString& pattern,FXint mode=Normal);
163 FXbool amatch(
const FXchar*
string,FXint len,FXint pos=0,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
164 FXbool amatch(
const FXString&
string,FXint pos=0,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
175 FXint search(
const FXchar*
string,FXint len,FXint fm,FXint to,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
176 FXint search(
const FXString&
string,FXint fm,FXint to,FXint mode=Normal,FXint* beg=
nullptr,FXint* end=
nullptr,FXint npar=0)
const;
187 static FXString substitute(
const FXchar*
string,FXint len,FXint* beg,FXint* end,
const FXchar* replace,FXint npar=1);
188 static FXString substitute(
const FXchar*
string,FXint len,FXint* beg,FXint* end,
const FXString& replace,FXint npar=1);
189 static FXString substitute(
const FXString&
string,FXint* beg,FXint* end,
const FXchar* replace,FXint npar=1);
199 FXbool operator==(
const FXRex& rex)
const;
200 FXbool operator!=(
const FXRex& rex)
const;
223 extern FXAPI FXStream& operator<<(FXStream& store,
const FXRex& s);
224 extern FXAPI FXStream& operator>>(FXStream& store,FXRex& s);
Error
Regular expression error codes.
Definition: FXRex.h:100
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:145
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:193
FXString provides essential string manipulation capabilities in FOX.
Definition: FXString.h:42