188 |
<pre> |
<pre> |
189 |
RE_Options & set_caseless(bool) |
RE_Options & set_caseless(bool) |
190 |
</pre> |
</pre> |
191 |
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 |
192 |
accessed through the <b>set_match_limit()</b> and <b>match_limit()</b> member |
accessed through the <b>set_match_limit()</b> and <b>match_limit()</b> member |
193 |
functions. Setting <i>match_limit</i> to a non-zero value will limit the |
functions. Setting <i>match_limit</i> to a non-zero value will limit the |
194 |
execution of pcre to keep it from doing bad things like blowing the stack or |
execution of pcre to keep it from doing bad things like blowing the stack or |
195 |
taking an eternity to return a result. A value of 5000 is good enough to stop |
taking an eternity to return a result. A value of 5000 is good enough to stop |
196 |
stack blowup in a 2MB thread stack. Setting <i>match_limit</i> to zero disables |
stack blowup in a 2MB thread stack. Setting <i>match_limit</i> to zero disables |
197 |
match limiting. |
match limiting. Alternatively, you can call <b>match_limit_recursion()</b> |
198 |
|
which uses PCRE_EXTRA_MATCH_LIMIT_RECURSION to limit how much PCRE |
199 |
|
recurses. <b>match_limit()</b> limits the number of matches PCRE does; |
200 |
|
<b>match_limit_recursion()</b> limits the depth of internal recursion, and |
201 |
|
therefore the amount of stack that is used. |
202 |
</P> |
</P> |
203 |
<P> |
<P> |
204 |
Normally, to pass one or more modifiers to a RE class, you declare |
Normally, to pass one or more modifiers to a RE class, you declare |