CRegExp

Far Manager

CRegExp

A regular expression object initialization and destruction.

Class methods:

CRegExp();
CRegExp(char *Text);
~CRegExp();

DLL interface:

PRegExp WINAPI reCreate();
PRegExp WINAPI reCreateCompile(char *text);
BOOL WINAPI reDestroy(PRegExp re);

Members

re
Pointer to an object to destroy.
Text
pointer to the string that contains the regular expression to compile.

Return value

The reCreate and reCreateCompile functions return a pointer to the created object, which will be used in every function call, or NULL in case of failure. reDestroy returns the result of regular expression object destruction.

Remarks

Constructor with an initialization parameter compiles the expression. Result is available through isok method or through geterror method.
See also: