Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
virtual P6R::P6ERR P6R::p6IRegex::setBackTrackLimits ( P6UINT32  maxBackStack,
P6UINT32  maxBackTracks 
)
pure virtual

As default there are NO limits to the number of elements that can be saved on the backtrack stack.

Also there are NO limits on the number of backtracks that are allowed to perform a regex match. However, if the caller wishes to define limits on the regex evaluation, then limits can be set with this call. Note, that the limits are not statically defined in the compile() call, and so can be changed during execution by repeatily calling this function at any time.

Note, that these parameters only work on the backtrack evaluation algorthm. If the 'MODIFIER_FASTGREEDY' modifier is used in a call to search, match, or replace, then these limits will not apply, because that DFA-like algorthm does not use backtracks.

Parameters
maxBackStack[ in ] maximum number of entries on the backtrack stack, a value of zero means no limit.
maxBackTracks[ in ] maximum number of backtrack steps allowed in a regex evaluation, a value of zero means no limit.
Returns
SuccessP6R::eOk 
FailureP6R::eNotInitializedA successful call to initialize was not made before this call.