/[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 461 by ph10, Mon Oct 5 10:59:35 2009 UTC revision 513 by ph10, Mon May 3 11:13:37 2010 UTC
# Line 553  set, any backslash in a pattern that is Line 553  set, any backslash in a pattern that is
553  special meaning causes an error, thus reserving these combinations for future  special meaning causes an error, thus reserving these combinations for future
554  expansion. By default, as in Perl, a backslash followed by a letter with no  expansion. By default, as in Perl, a backslash followed by a letter with no
555  special meaning is treated as a literal. (Perl can, however, be persuaded to  special meaning is treated as a literal. (Perl can, however, be persuaded to
556  give a warning for this.) There are at present no other features controlled by  give an error for this, by running it with the -w option.) There are at present
557  this option. It can also be set by a (?X) option setting within a pattern.  no other features controlled by this option. It can also be set by a (?X)
558    option setting within a pattern.
559  .sp  .sp
560    PCRE_FIRSTLINE    PCRE_FIRSTLINE
561  .sp  .sp
# Line 747  out of use. To avoid confusion, they hav Line 748  out of use. To avoid confusion, they hav
748    57  \eg is not followed by a braced, angle-bracketed, or quoted    57  \eg is not followed by a braced, angle-bracketed, or quoted
749          name/number or by a plain number          name/number or by a plain number
750    58  a numbered reference must not be zero    58  a numbered reference must not be zero
751    59  (*VERB) with an argument is not supported    59  an argument is not allowed for (*ACCEPT), (*FAIL), or (*COMMIT)
752    60  (*VERB) not recognized    60  (*VERB) not recognized
753    61  number is too big    61  number is too big
754    62  subpattern name expected    62  subpattern name expected
755    63  digit expected after (?+    63  digit expected after (?+
756    64  ] is an invalid data character in JavaScript compatibility mode    64  ] is an invalid data character in JavaScript compatibility mode
757      65  different names for subpatterns of the same number are not allowed
758      66  (*MARK) must have an argument
759  .sp  .sp
760  The numbers 32 and 10000 in errors 48 and 49 are defaults; different values may  The numbers 32 and 10000 in errors 48 and 49 are defaults; different values may
761  be used if the limits were changed when PCRE was built.  be used if the limits were changed when PCRE was built.
# Line 1210  fields (not necessarily in this order): Line 1213  fields (not necessarily in this order):
1213    unsigned long int \fImatch_limit_recursion\fP;    unsigned long int \fImatch_limit_recursion\fP;
1214    void *\fIcallout_data\fP;    void *\fIcallout_data\fP;
1215    const unsigned char *\fItables\fP;    const unsigned char *\fItables\fP;
1216      unsigned char **\fImark\fP;
1217  .sp  .sp
1218  The \fIflags\fP field is a bitmap that specifies which of the other fields  The \fIflags\fP field is a bitmap that specifies which of the other fields
1219  are set. The flag bits are:  are set. The flag bits are:
# Line 1219  are set. The flag bits are: Line 1223  are set. The flag bits are:
1223    PCRE_EXTRA_MATCH_LIMIT_RECURSION    PCRE_EXTRA_MATCH_LIMIT_RECURSION
1224    PCRE_EXTRA_CALLOUT_DATA    PCRE_EXTRA_CALLOUT_DATA
1225    PCRE_EXTRA_TABLES    PCRE_EXTRA_TABLES
1226      PCRE_EXTRA_MARK
1227  .sp  .sp
1228  Other flag bits should be set to zero. The \fIstudy_data\fP field is set in the  Other flag bits should be set to zero. The \fIstudy_data\fP field is set in the
1229  \fBpcre_extra\fP block that is returned by \fBpcre_study()\fP, together with  \fBpcre_extra\fP block that is returned by \fBpcre_study()\fP, together with
# Line 1281  called. See the Line 1286  called. See the
1286  \fBpcreprecompile\fP  \fBpcreprecompile\fP
1287  .\"  .\"
1288  documentation for a discussion of saving compiled patterns for later use.  documentation for a discussion of saving compiled patterns for later use.
1289    .P
1290    If PCRE_EXTRA_MARK is set in the \fIflags\fP field, the \fImark\fP field must
1291    be set to point to a \fBchar *\fP variable. If the pattern contains any
1292    backtracking control verbs such as (*MARK:NAME), and the execution ends up with
1293    a name to pass back, a pointer to the name string (zero terminated) is placed
1294    in the variable pointed to by the \fImark\fP field. The names are within the
1295    compiled pattern; if you wish to retain such a name you must copy it before
1296    freeing the memory of a compiled pattern. If there is no name to pass back, the
1297    variable pointed to by the \fImark\fP field set to NULL. For details of the
1298    backtracking control verbs, see the section entitled
1299    .\" HTML <a href="pcrepattern#backtrackcontrol">
1300    .\" </a>
1301    "Backtracking control"
1302    .\"
1303    in the
1304    .\" HREF
1305    \fBpcrepattern\fP
1306    .\"
1307    documentation.
1308    .
1309  .  .
1310  .\" HTML <a name="execoptions"></a>  .\" HTML <a name="execoptions"></a>
1311  .SS "Option bits for \fBpcre_exec()\fP"  .SS "Option bits for \fBpcre_exec()\fP"
# Line 2075  Cambridge CB2 3QH, England. Line 2100  Cambridge CB2 3QH, England.
2100  .rs  .rs
2101  .sp  .sp
2102  .nf  .nf
2103  Last updated: 03 October 2009  Last updated: 03 May 2010
2104  Copyright (c) 1997-2009 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
2105  .fi  .fi

Legend:
Removed from v.461  
changed lines
  Added in v.513

  ViewVC Help
Powered by ViewVC 1.1.5