CRegExp.SetNoMoves

Far Manager

CRegExp.SetNoMoves

Allows/disallows moving inside the target string.

Class method:

bool SetNoMoves(bool Moves);

DLL interface:

BOOL WINAPI reSetNoMoves(PRegExp re, BOOL Moves);

Members

re
a pointer to an object
Moves
If TRUE, the scanning function doesn't move inside the target string. Otherwise an attempt is taken to find the match for every position in the string.

Return value

Returns success/failure of setting a parameter.

Remarks

With movement along the target string enabled in fact there's a scanning function call for every position in the string from the first through the last, and for every position there's an attempt to find a match. If you don't need this feature, don't forget to call SetNoMoves(TRUE);
See also: