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

As default there are NO limits on the execution of regular expression in an XPath expression.

This method is essentially a "pass through" to the p6IRegex::setBackTrackLimits(). If the caller wishes to define limits on the regex evaluation, then limits can be set with this call.

Note, that these limits are set at compile time. So for these to be effective this method must be called before the compileExpression() method. This method can be called repeatedly to change the limits of each new compiled XPath expression.

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