| 168 |
.sp |
.sp |
| 169 |
RE_Options & set_caseless(bool) |
RE_Options & set_caseless(bool) |
| 170 |
.sp |
.sp |
| 171 |
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 |
| 172 |
accessed through the \fBset_match_limit()\fR and \fBmatch_limit()\fR member |
accessed through the \fBset_match_limit()\fR and \fBmatch_limit()\fR member |
| 173 |
functions. Setting \fImatch_limit\fR to a non-zero value will limit the |
functions. Setting \fImatch_limit\fR to a non-zero value will limit the |
| 174 |
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 |
| 175 |
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 |
| 176 |
stack blowup in a 2MB thread stack. Setting \fImatch_limit\fR to zero disables |
stack blowup in a 2MB thread stack. Setting \fImatch_limit\fR to zero disables |
| 177 |
match limiting. |
match limiting. Alternatively, you can call \fBmatch_limit_recursion()\fP |
| 178 |
|
which uses PCRE_EXTRA_MATCH_LIMIT_RECURSION to limit how much PCRE |
| 179 |
|
recurses. \fBmatch_limit()\fP limits the number of matches PCRE does; |
| 180 |
|
\fBmatch_limit_recursion()\fP limits the depth of internal recursion, and |
| 181 |
|
therefore the amount of stack that is used. |
| 182 |
.P |
.P |
| 183 |
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 |
| 184 |
a \fIRE_Options\fR object, set the appropriate options, and pass this |
a \fIRE_Options\fR object, set the appropriate options, and pass this |