| 58 |
are set, PCRE_PARTIAL_HARD takes precedence. |
are set, PCRE_PARTIAL_HARD takes precedence. |
| 59 |
</P> |
</P> |
| 60 |
<P> |
<P> |
| 61 |
Setting a partial matching option disables two of PCRE's optimizations. PCRE |
Setting a partial matching option for <b>pcre_exec()</b> disables the use of any |
| 62 |
remembers the last literal byte in a pattern, and abandons matching immediately |
just-in-time code that was set up by calling <b>pcre_study()</b> with the |
| 63 |
if such a byte is not present in the subject string. This optimization cannot |
PCRE_STUDY_JIT_COMPILE option. It also disables two of PCRE's standard |
| 64 |
be used for a subject string that might match only partially. If the pattern |
optimizations. PCRE remembers the last literal byte in a pattern, and abandons |
| 65 |
was studied, PCRE knows the minimum length of a matching string, and does not |
matching immediately if such a byte is not present in the subject string. This |
| 66 |
bother to run the matching function on shorter strings. This optimization is |
optimization cannot be used for a subject string that might match only |
| 67 |
also disabled for partial matching. |
partially. If the pattern was studied, PCRE knows the minimum length of a |
| 68 |
|
matching string, and does not bother to run the matching function on shorter |
| 69 |
|
strings. This optimization is also disabled for partial matching. |
| 70 |
</P> |
</P> |
| 71 |
<br><a name="SEC2" href="#TOC1">PARTIAL MATCHING USING pcre_exec()</a><br> |
<br><a name="SEC2" href="#TOC1">PARTIAL MATCHING USING pcre_exec()</a><br> |
| 72 |
<P> |
<P> |
| 436 |
</P> |
</P> |
| 437 |
<br><a name="SEC11" href="#TOC1">REVISION</a><br> |
<br><a name="SEC11" href="#TOC1">REVISION</a><br> |
| 438 |
<P> |
<P> |
| 439 |
Last updated: 07 November 2010 |
Last updated: 26 August 2011 |
| 440 |
<br> |
<br> |
| 441 |
Copyright © 1997-2010 University of Cambridge. |
Copyright © 1997-2011 University of Cambridge. |
| 442 |
<br> |
<br> |
| 443 |
<p> |
<p> |
| 444 |
Return to the <a href="index.html">PCRE index page</a>. |
Return to the <a href="index.html">PCRE index page</a>. |