virtual P6R::P6ERR P6R::p6IRuleEngine::setRegexLimits ( P6UINT32  maxBackStack,
P6UINT32  maxBackTracks 
) [pure virtual]

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

These regular expressions can appear in several of the XML elements which define the rule engine language. This method is essentially a "pass through" to the p6IRegex::setBackTrackLimits() method. 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 (i.e, at the time that the modifyRules() method is called). So for these to be effective this method must be called before the modifyRules() method. This method can be called repeatedly to change the limits of each new / modified rule.

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.
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines
Copyright © 2004 - 2010 P6R Inc. - All Rights Reserved.