diff options
Diffstat (limited to 'doc/html/pcrecpp.html')
-rw-r--r-- | doc/html/pcrecpp.html | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/html/pcrecpp.html b/doc/html/pcrecpp.html index 1d5acb7..8c3216d 100644 --- a/doc/html/pcrecpp.html +++ b/doc/html/pcrecpp.html @@ -188,13 +188,17 @@ which returns true if the modifier is set, and <pre> RE_Options & set_caseless(bool) </pre> -which sets or unsets the modifier. Moreover, PCRE_CONFIG_MATCH_LIMIT can be +which sets or unsets the modifier. Moreover, PCRE_EXTRA_MATCH_LIMIT can be accessed through the <b>set_match_limit()</b> and <b>match_limit()</b> member functions. Setting <i>match_limit</i> to a non-zero value will limit the execution of pcre to keep it from doing bad things like blowing the stack or taking an eternity to return a result. A value of 5000 is good enough to stop stack blowup in a 2MB thread stack. Setting <i>match_limit</i> to zero disables -match limiting. +match limiting. Alternatively, you can call <b>match_limit_recursion()</b> +which uses PCRE_EXTRA_MATCH_LIMIT_RECURSION to limit how much PCRE +recurses. <b>match_limit()</b> limits the number of matches PCRE does; +<b>match_limit_recursion()</b> limits the depth of internal recursion, and +therefore the amount of stack that is used. </P> <P> Normally, to pass one or more modifiers to a RE class, you declare |