/[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 567 by ph10, Sat Nov 6 17:10:00 2010 UTC revision 568 by ph10, Sat Nov 6 17:36:26 2010 UTC
# Line 1674  Offset values that correspond to unused Line 1674  Offset values that correspond to unused
1674  expression are also set to -1. For example, if the string "abc" is matched  expression are also set to -1. For example, if the string "abc" is matched
1675  against the pattern (abc)(x(yz)?)? subpatterns 2 and 3 are not matched. The  against the pattern (abc)(x(yz)?)? subpatterns 2 and 3 are not matched. The
1676  return from the function is 2, because the highest used capturing subpattern  return from the function is 2, because the highest used capturing subpattern
1677  number is 1. However, you can refer to the offsets for the second and third  number is 1, and the offsets for for the second and third capturing subpatterns
1678  capturing subpatterns if you wish (assuming the vector is large enough, of  (assuming the vector is large enough, of course) are set to -1.
1679  course).  .P
1680    \fBNote\fP: Elements of \fIovector\fP that do not correspond to capturing
1681    parentheses in the pattern are never changed. That is, if a pattern contains
1682    \fIn\fP capturing parentheses, no more than \fIovector[0]\fP to
1683    \fIovector[2n+1]\fP are set by \fBpcre_exec()\fP. The other elements retain
1684    whatever values they previously had.
1685  .P  .P
1686  Some convenience functions are provided for extracting the captured substrings  Some convenience functions are provided for extracting the captured substrings
1687  as separate strings. These are described below.  as separate strings. These are described below.

Legend:
Removed from v.567  
changed lines
  Added in v.568

  ViewVC Help
Powered by ViewVC 1.1.5