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

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

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

revision 371 by ph10, Mon Aug 25 18:28:05 2008 UTC revision 389 by ph10, Sun Mar 15 18:24:05 2009 UTC
# Line 347  documentation. Line 347  documentation.
347  .sp  .sp
348    PCRE_CONFIG_MATCH_LIMIT    PCRE_CONFIG_MATCH_LIMIT
349  .sp  .sp
350  The output is an integer that gives the default limit for the number of  The output is a long integer that gives the default limit for the number of
351  internal matching function calls in a \fBpcre_exec()\fP execution. Further  internal matching function calls in a \fBpcre_exec()\fP execution. Further
352  details are given with \fBpcre_exec()\fP below.  details are given with \fBpcre_exec()\fP below.
353  .sp  .sp
354    PCRE_CONFIG_MATCH_LIMIT_RECURSION    PCRE_CONFIG_MATCH_LIMIT_RECURSION
355  .sp  .sp
356  The output is an integer that gives the default limit for the depth of  The output is a long integer that gives the default limit for the depth of
357  recursion when calling the internal matching function in a \fBpcre_exec()\fP  recursion when calling the internal matching function in a \fBpcre_exec()\fP
358  execution. Further details are given with \fBpcre_exec()\fP below.  execution. Further details are given with \fBpcre_exec()\fP below.
359  .sp  .sp
# Line 1237  documentation for a discussion of saving Line 1237  documentation for a discussion of saving
1237  .sp  .sp
1238  The unused bits of the \fIoptions\fP argument for \fBpcre_exec()\fP must be  The unused bits of the \fIoptions\fP argument for \fBpcre_exec()\fP must be
1239  zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NEWLINE_\fIxxx\fP,  zero. The only bits that may be set are PCRE_ANCHORED, PCRE_NEWLINE_\fIxxx\fP,
1240  PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NO_UTF8_CHECK and PCRE_PARTIAL.  PCRE_NOTBOL, PCRE_NOTEOL, PCRE_NOTEMPTY, PCRE_NO_START_OPTIMIZE,
1241    PCRE_NO_UTF8_CHECK and PCRE_PARTIAL.
1242  .sp  .sp
1243    PCRE_ANCHORED    PCRE_ANCHORED
1244  .sp  .sp
# Line 1324  PCRE_NOTEMPTY and PCRE_ANCHORED, and the Line 1325  PCRE_NOTEMPTY and PCRE_ANCHORED, and the
1325  starting offset (see below) and trying an ordinary match again. There is some  starting offset (see below) and trying an ordinary match again. There is some
1326  code that demonstrates how to do this in the \fIpcredemo.c\fP sample program.  code that demonstrates how to do this in the \fIpcredemo.c\fP sample program.
1327  .sp  .sp
1328      PCRE_NO_START_OPTIMIZE
1329    .sp
1330    There are a number of optimizations that \fBpcre_exec()\fP uses at the start of
1331    a match, in order to speed up the process. For example, if it is known that a
1332    match must start with a specific character, it searches the subject for that
1333    character, and fails immediately if it cannot find it, without actually running
1334    the main matching function. When callouts are in use, these optimizations can
1335    cause them to be skipped. This option disables the "start-up" optimizations,
1336    causing performance to suffer, but ensuring that the callouts do occur.
1337    .sp
1338    PCRE_NO_UTF8_CHECK    PCRE_NO_UTF8_CHECK
1339  .sp  .sp
1340  When PCRE_UTF8 is set at compile time, the validity of the subject as a UTF-8  When PCRE_UTF8 is set at compile time, the validity of the subject as a UTF-8
# Line 1729  These functions call \fBpcre_get_stringn Line 1740  These functions call \fBpcre_get_stringn
1740  then call \fBpcre_copy_substring()\fP or \fBpcre_get_substring()\fP, as  then call \fBpcre_copy_substring()\fP or \fBpcre_get_substring()\fP, as
1741  appropriate. \fBNOTE:\fP If PCRE_DUPNAMES is set and there are duplicate names,  appropriate. \fBNOTE:\fP If PCRE_DUPNAMES is set and there are duplicate names,
1742  the behaviour may not be what you want (see the next section).  the behaviour may not be what you want (see the next section).
1743  .  .P
1744    \fBWarning:\fP If the pattern uses the "(?|" feature to set up multiple
1745    subpatterns with the same number, you cannot use names to distinguish them,
1746    because names are not included in the compiled code. The matching process uses
1747    only numbers.
1748  .  .
1749  .SH "DUPLICATE SUBPATTERN NAMES"  .SH "DUPLICATE SUBPATTERN NAMES"
1750  .rs  .rs
# Line 1978  Cambridge CB2 3QH, England. Line 1993  Cambridge CB2 3QH, England.
1993  .rs  .rs
1994  .sp  .sp
1995  .nf  .nf
1996  Last updated: 24 August 2008  Last updated: 15 March 2009
1997  Copyright (c) 1997-2008 University of Cambridge.  Copyright (c) 1997-2009 University of Cambridge.
1998  .fi  .fi

Legend:
Removed from v.371  
changed lines
  Added in v.389

  ViewVC Help
Powered by ViewVC 1.1.5