/[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 182 by ph10, Wed Jun 13 15:09:54 2007 UTC revision 208 by ph10, Mon Aug 6 15:23:29 2007 UTC
# Line 669  out of use. To avoid confusion, they hav Line 669  out of use. To avoid confusion, they hav
669    47  unknown property name after \eP or \ep    47  unknown property name after \eP or \ep
670    48  subpattern name is too long (maximum 32 characters)    48  subpattern name is too long (maximum 32 characters)
671    49  too many named subpatterns (maximum 10,000)    49  too many named subpatterns (maximum 10,000)
672    50  repeated subpattern is too long    50  [this code is not in use]
673    51  octal value is greater than \e377 (not in UTF-8 mode)    51  octal value is greater than \e377 (not in UTF-8 mode)
674    52  internal error: overran compiling workspace    52  internal error: overran compiling workspace
675    53  internal error: previously-checked referenced subpattern not found    53  internal error: previously-checked referenced subpattern not found
# Line 947  matching is used. Line 947  matching is used.
947  Return a copy of the options with which the pattern was compiled. The fourth  Return a copy of the options with which the pattern was compiled. The fourth
948  argument should point to an \fBunsigned long int\fP variable. These option bits  argument should point to an \fBunsigned long int\fP variable. These option bits
949  are those specified in the call to \fBpcre_compile()\fP, modified by any  are those specified in the call to \fBpcre_compile()\fP, modified by any
950  top-level option settings within the pattern itself.  top-level option settings at the start of the pattern itself. In other words,
951    they are the options that will be in force when matching starts. For example,
952    if the pattern /(?im)abc(?-i)d/ is compiled with the PCRE_EXTENDED option, the
953    result is PCRE_CASELESS, PCRE_MULTILINE, and PCRE_EXTENDED.
954  .P  .P
955  A pattern is automatically anchored by PCRE if all of its top-level  A pattern is automatically anchored by PCRE if all of its top-level
956  alternatives begin with one of the following:  alternatives begin with one of the following:
# Line 1463  The internal recursion limit, as specifi Line 1466  The internal recursion limit, as specifi
1466  field in a \fBpcre_extra\fP structure (or defaulted) was reached. See the  field in a \fBpcre_extra\fP structure (or defaulted) was reached. See the
1467  description above.  description above.
1468  .sp  .sp
   PCRE_ERROR_NULLWSLIMIT    (-22)  
 .sp  
 When a group that can match an empty substring is repeated with an unbounded  
 upper limit, the subject position at the start of the group must be remembered,  
 so that a test for an empty string can be made when the end of the group is  
 reached. Some workspace is required for this; if it runs out, this error is  
 given.  
 .sp  
1469    PCRE_ERROR_BADNEWLINE     (-23)    PCRE_ERROR_BADNEWLINE     (-23)
1470  .sp  .sp
1471  An invalid combination of PCRE_NEWLINE_\fIxxx\fP options was given.  An invalid combination of PCRE_NEWLINE_\fIxxx\fP options was given.
1472  .P  .P
1473  Error numbers -16 to -20 are not used by \fBpcre_exec()\fP.  Error numbers -16 to -20 and -22 are not used by \fBpcre_exec()\fP.
1474  .  .
1475  .  .
1476  .SH "EXTRACTING CAPTURED SUBSTRINGS BY NUMBER"  .SH "EXTRACTING CAPTURED SUBSTRINGS BY NUMBER"
# Line 1640  example is shown in the Line 1635  example is shown in the
1635  .\" HREF  .\" HREF
1636  \fBpcrepattern\fP  \fBpcrepattern\fP
1637  .\"  .\"
1638  documentation. When duplicates are present, \fBpcre_copy_named_substring()\fP  documentation.
1639  and \fBpcre_get_named_substring()\fP return the first substring corresponding  .P
1640  to the given name that is set. If none are set, an empty string is returned.  When duplicates are present, \fBpcre_copy_named_substring()\fP and
1641  The \fBpcre_get_stringnumber()\fP function returns one of the numbers that are  \fBpcre_get_named_substring()\fP return the first substring corresponding to
1642  associated with the name, but it is not defined which it is.  the given name that is set. If none are set, PCRE_ERROR_NOSUBSTRING (-7) is
1643  .sp  returned; no data is returned. The \fBpcre_get_stringnumber()\fP function
1644    returns one of the numbers that are associated with the name, but it is not
1645    defined which it is.
1646    .P
1647  If you want to get full details of all captured substrings for a given name,  If you want to get full details of all captured substrings for a given name,
1648  you must use the \fBpcre_get_stringtable_entries()\fP function. The first  you must use the \fBpcre_get_stringtable_entries()\fP function. The first
1649  argument is the compiled pattern, and the second is the name. The third and  argument is the compiled pattern, and the second is the name. The third and
# Line 1870  Cambridge CB2 3QH, England. Line 1868  Cambridge CB2 3QH, England.
1868  .rs  .rs
1869  .sp  .sp
1870  .nf  .nf
1871  Last updated: 13 June 2007  Last updated: 30 July 2007
1872  Copyright (c) 1997-2007 University of Cambridge.  Copyright (c) 1997-2007 University of Cambridge.
1873  .fi  .fi

Legend:
Removed from v.182  
changed lines
  Added in v.208

  ViewVC Help
Powered by ViewVC 1.1.5