/[pcre]/code/trunk/doc/html/pcreapi.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcreapi.html

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 544 by ph10, Thu Jun 3 19:18:24 2010 UTC revision 545 by ph10, Wed Jun 16 10:51:15 2010 UTC
# Line 1438  sample program. Line 1438  sample program.
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>
# Line 1987  Option bits for pcre_dfa_exec() Line 1992  Option bits for pcre_dfa_exec()
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
# Line 2115  Cambridge CB2 3QH, England. Line 2121  Cambridge CB2 3QH, England.
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 &copy; 1997-2010 University of Cambridge.  Copyright &copy; 1997-2010 University of Cambridge.
2127  <br>  <br>

Legend:
Removed from v.544  
changed lines
  Added in v.545

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12