diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-06-15 08:49:47 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2010-06-15 08:49:47 +0000 |
commit | 0761e6b73e7b93571f116e2307f0c660c898f7ae (patch) | |
tree | 941fbee614824ab9ffee1e4a1ac04198b1aea507 | |
parent | e12e8c165f06d4ef3a1e09ef11eaad571d6f400e (diff) | |
download | pcre-0761e6b73e7b93571f116e2307f0c660c898f7ae.tar.gz |
Improve documentation for PCRE_NO_START_OPTIMIZE.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@542 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rw-r--r-- | doc/pcreapi.3 | 26 |
1 files changed, 16 insertions, 10 deletions
diff --git a/doc/pcreapi.3 b/doc/pcreapi.3 index 4baceeb..487f299 100644 --- a/doc/pcreapi.3 +++ b/doc/pcreapi.3 @@ -1443,12 +1443,17 @@ sample program. PCRE_NO_START_OPTIMIZE .sp There are a number of optimizations that \fBpcre_exec()\fP uses at the start of -a match, in order to speed up the process. For example, if it is known that a -match must start with a specific character, it searches the subject for that -character, and fails immediately if it cannot find it, without actually running -the main matching function. When callouts are in use, these optimizations can -cause them to be skipped. This option disables the "start-up" optimizations, -causing performance to suffer, but ensuring that the callouts do occur. +a match, in order to speed up the process. For example, if it is known that an +unanchored match must start with a specific character, it searches the subject +for that character, and fails immediately if it cannot find it, without +actually running the main matching function. This means that a special item +such as (*COMMIT) at the start of a pattern is not considered until after a +suitable starting point for the match has been found. When callouts are in use, +these "start-up" optimizations can cause them to be skipped if the pattern is +never actually used. The PCRE_NO_START_OPTIMIZE option disables the start-up +optimizations, causing performance to suffer, but ensuring that the callouts do +occur, and that items such as (*COMMIT) are considered at every possible +starting position in the subject string. .sp PCRE_NO_UTF8_CHECK .sp @@ -1995,9 +2000,10 @@ Here is an example of a simple call to \fBpcre_dfa_exec()\fP: The unused bits of the \fIoptions\fP argument for \fBpcre_dfa_exec()\fP must be zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NEWLINE_\fIxxx\fP, PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NOTEMPTY_ATSTART, -PCRE_NO_UTF8_CHECK, PCRE_PARTIAL_HARD, PCRE_PARTIAL_SOFT, PCRE_DFA_SHORTEST, -and PCRE_DFA_RESTART. All but the last four of these are exactly the same as -for \fBpcre_exec()\fP, so their description is not repeated here. +PCRE_NO_UTF8_CHECK, PCRE_BSR_ANYCRLF, PCRE_BSR_UNICODE, PCRE_NO_START_OPTIMIZE, +PCRE_PARTIAL_HARD, PCRE_PARTIAL_SOFT, PCRE_DFA_SHORTEST, and PCRE_DFA_RESTART. +All but the last four of these are exactly the same as for \fBpcre_exec()\fP, +so their description is not repeated here. .sp PCRE_PARTIAL_HARD PCRE_PARTIAL_SOFT @@ -2131,6 +2137,6 @@ Cambridge CB2 3QH, England. .rs .sp .nf -Last updated: 01 June 2010 +Last updated: 15 June 2010 Copyright (c) 1997-2010 University of Cambridge. .fi |