/[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 391 by ph10, Tue Mar 17 21:16:01 2009 UTC revision 412 by ph10, Sat Apr 11 10:34:37 2009 UTC
# Line 317  properties is available; otherwise it is Line 317  properties is available; otherwise it is
317  .sp  .sp
318  The output is an integer whose value specifies the default character sequence  The output is an integer whose value specifies the default character sequence
319  that is recognized as meaning "newline". The four values that are supported  that is recognized as meaning "newline". The four values that are supported
320  are: 10 for LF, 13 for CR, 3338 for CRLF, -2 for ANYCRLF, and -1 for ANY.  are: 10 for LF, 13 for CR, 3338 for CRLF, -2 for ANYCRLF, and -1 for ANY.
321  Though they are derived from ASCII, the same values are returned in EBCDIC  Though they are derived from ASCII, the same values are returned in EBCDIC
322  environments. The default should normally correspond to the standard sequence  environments. The default should normally correspond to the standard sequence
323  for your operating system.  for your operating system.
# Line 406  argument, which is an address (see below Line 406  argument, which is an address (see below
406  .P  .P
407  The \fIoptions\fP argument contains various bit settings that affect the  The \fIoptions\fP argument contains various bit settings that affect the
408  compilation. It should be zero if no options are required. The available  compilation. It should be zero if no options are required. The available
409  options are described below. Some of them, in particular, those that are  options are described below. Some of them (in particular, those that are
410  compatible with Perl, can also be set and unset from within the pattern (see  compatible with Perl, but also some others) can also be set and unset from
411  the detailed description in the  within the pattern (see the detailed description in the
412  .\" HREF  .\" HREF
413  \fBpcrepattern\fP  \fBpcrepattern\fP
414  .\"  .\"
415  documentation). For these options, the contents of the \fIoptions\fP argument  documentation). For those options that can be different in different parts of
416  specifies their initial settings at the start of compilation and execution. The  the pattern, the contents of the \fIoptions\fP argument specifies their initial
417  PCRE_ANCHORED and PCRE_NEWLINE_\fIxxx\fP options can be set at the time of  settings at the start of compilation and execution. The PCRE_ANCHORED and
418  matching as well as at compile time.  PCRE_NEWLINE_\fIxxx\fP options can be set at the time of matching as well as at
419    compile time.
420  .P  .P
421  If \fIerrptr\fP is NULL, \fBpcre_compile()\fP returns NULL immediately.  If \fIerrptr\fP is NULL, \fBpcre_compile()\fP returns NULL immediately.
422  Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fP returns  Otherwise, if compilation of a pattern fails, \fBpcre_compile()\fP returns
# Line 1329  code that demonstrates how to do this in Line 1330  code that demonstrates how to do this in
1330  .sp  .sp
1331    PCRE_NO_START_OPTIMIZE    PCRE_NO_START_OPTIMIZE
1332  .sp  .sp
1333  There are a number of optimizations that \fBpcre_exec()\fP uses at the start of  There are a number of optimizations that \fBpcre_exec()\fP uses at the start of
1334  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 a
1335  match must start with a specific character, it searches the subject for that  match must start with a specific character, it searches the subject for that
1336  character, and fails immediately if it cannot find it, without actually running  character, and fails immediately if it cannot find it, without actually running
# Line 1744  appropriate. \fBNOTE:\fP If PCRE_DUPNAME Line 1745  appropriate. \fBNOTE:\fP If PCRE_DUPNAME
1745  the behaviour may not be what you want (see the next section).  the behaviour may not be what you want (see the next section).
1746  .P  .P
1747  \fBWarning:\fP If the pattern uses the "(?|" feature to set up multiple  \fBWarning:\fP If the pattern uses the "(?|" feature to set up multiple
1748  subpatterns with the same number, you cannot use names to distinguish them,  subpatterns with the same number, you cannot use names to distinguish them,
1749  because names are not included in the compiled code. The matching process uses  because names are not included in the compiled code. The matching process uses
1750  only numbers.  only numbers.
1751  .  .
1752  .SH "DUPLICATE SUBPATTERN NAMES"  .SH "DUPLICATE SUBPATTERN NAMES"
# Line 1995  Cambridge CB2 3QH, England. Line 1996  Cambridge CB2 3QH, England.
1996  .rs  .rs
1997  .sp  .sp
1998  .nf  .nf
1999  Last updated: 17 March 2009  Last updated: 11 April 2009
2000  Copyright (c) 1997-2009 University of Cambridge.  Copyright (c) 1997-2009 University of Cambridge.
2001  .fi  .fi

Legend:
Removed from v.391  
changed lines
  Added in v.412

  ViewVC Help
Powered by ViewVC 1.1.5