| 1438 |
PCRE_NO_START_OPTIMIZE |
PCRE_NO_START_OPTIMIZE |
| 1439 |
</pre> |
</pre> |
| 1440 |
There are a number of optimizations that <b>pcre_exec()</b> uses at the start of |
There are a number of optimizations that <b>pcre_exec()</b> uses at the start of |
| 1441 |
a match, in order to speed up the process. For example, if it is known that a |
a match, in order to speed up the process. For example, if it is known that an |
| 1442 |
match must start with a specific character, it searches the subject for that |
unanchored match must start with a specific character, it searches the subject |
| 1443 |
character, and fails immediately if it cannot find it, without actually running |
for that character, and fails immediately if it cannot find it, without |
| 1444 |
the main matching function. When callouts are in use, these optimizations can |
actually running the main matching function. This means that a special item |
| 1445 |
cause them to be skipped. This option disables the "start-up" optimizations, |
such as (*COMMIT) at the start of a pattern is not considered until after a |
| 1446 |
causing performance to suffer, but ensuring that the callouts do occur. |
suitable starting point for the match has been found. When callouts are in use, |
| 1447 |
|
these "start-up" optimizations can cause them to be skipped if the pattern is |
| 1448 |
|
never actually used. The PCRE_NO_START_OPTIMIZE option disables the start-up |
| 1449 |
|
optimizations, causing performance to suffer, but ensuring that the callouts do |
| 1450 |
|
occur, and that items such as (*COMMIT) are considered at every possible |
| 1451 |
|
starting position in the subject string. |
| 1452 |
<pre> |
<pre> |
| 1453 |
PCRE_NO_UTF8_CHECK |
PCRE_NO_UTF8_CHECK |
| 1454 |
</pre> |
</pre> |
| 1992 |
The unused bits of the <i>options</i> argument for <b>pcre_dfa_exec()</b> must be |
The unused bits of the <i>options</i> argument for <b>pcre_dfa_exec()</b> must be |
| 1993 |
zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NEWLINE_<i>xxx</i>, |
zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NEWLINE_<i>xxx</i>, |
| 1994 |
PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART, |
PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART, |
| 1995 |
PCRE_NO_UTF8_CHECK, PCRE_PARTIAL_HARD, PCRE_PARTIAL_SOFT, PCRE_DFA_SHORTEST, |
PCRE_NO_UTF8_CHECK, PCRE_BSR_ANYCRLF, PCRE_BSR_UNICODE, PCRE_NO_START_OPTIMIZE, |
| 1996 |
and PCRE_DFA_RESTART. All but the last four of these are exactly the same as |
PCRE_PARTIAL_HARD, PCRE_PARTIAL_SOFT, PCRE_DFA_SHORTEST, and PCRE_DFA_RESTART. |
| 1997 |
for <b>pcre_exec()</b>, so their description is not repeated here. |
All but the last four of these are exactly the same as for <b>pcre_exec()</b>, |
| 1998 |
|
so their description is not repeated here. |
| 1999 |
<pre> |
<pre> |
| 2000 |
PCRE_PARTIAL_HARD |
PCRE_PARTIAL_HARD |
| 2001 |
PCRE_PARTIAL_SOFT |
PCRE_PARTIAL_SOFT |
| 2121 |
</P> |
</P> |
| 2122 |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
<br><a name="SEC22" href="#TOC1">REVISION</a><br> |
| 2123 |
<P> |
<P> |
| 2124 |
Last updated: 01 June 2010 |
Last updated: 15 June 2010 |
| 2125 |
<br> |
<br> |
| 2126 |
Copyright © 1997-2010 University of Cambridge. |
Copyright © 1997-2010 University of Cambridge. |
| 2127 |
<br> |
<br> |