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

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

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

revision 902 by ph10, Mon Jan 9 17:43:54 2012 UTC revision 903 by ph10, Sat Jan 21 16:37:17 2012 UTC
# Line 11  PCRE - Perl-compatible regular expressio Line 11  PCRE - Perl-compatible regular expressio
11  PCRE provides a feature called "callout", which is a means of temporarily  PCRE provides a feature called "callout", which is a means of temporarily
12  passing control to the caller of PCRE in the middle of pattern matching. The  passing control to the caller of PCRE in the middle of pattern matching. The
13  caller of PCRE provides an external function by putting its entry point in the  caller of PCRE provides an external function by putting its entry point in the
14  global variable \fIpcre_callout\fP (\fIpcre16_callout\fP for the 16-bit  global variable \fIpcre_callout\fP (\fIpcre16_callout\fP for the 16-bit
15  library). By default, this variable contains NULL, which disables all calling  library). By default, this variable contains NULL, which disables all calling
16  out.  out.
17  .P  .P
# Line 85  These structures contains the following Line 85  These structures contains the following
85    int           \fIcallout_number\fP;    int           \fIcallout_number\fP;
86    int          *\fIoffset_vector\fP;    int          *\fIoffset_vector\fP;
87    const char   *\fIsubject\fP;           (8-bit version)    const char   *\fIsubject\fP;           (8-bit version)
88    PCRE_SPTR16   \fIsubject\fP;           (16-bit version)    PCRE_SPTR16   \fIsubject\fP;           (16-bit version)
89    int           \fIsubject_length\fP;    int           \fIsubject_length\fP;
90    int           \fIstart_match\fP;    int           \fIstart_match\fP;
91    int           \fIcurrent_position\fP;    int           \fIcurrent_position\fP;
# Line 107  into the pattern (that is, the number af Line 107  into the pattern (that is, the number af
107  automatically generated callouts).  automatically generated callouts).
108  .P  .P
109  The \fIoffset_vector\fP field is a pointer to the vector of offsets that was  The \fIoffset_vector\fP field is a pointer to the vector of offsets that was
110  passed by the caller to the matching function. When \fBpcre_exec()\fP or  passed by the caller to the matching function. When \fBpcre_exec()\fP or
111  \fBpcre16_exec()\fP is used, the contents can be inspected, in order to extract  \fBpcre16_exec()\fP is used, the contents can be inspected, in order to extract
112  substrings that have been matched so far, in the same way as for extracting  substrings that have been matched so far, in the same way as for extracting
113  substrings after a match has completed. For the DFA matching functions, this  substrings after a match has completed. For the DFA matching functions, this

Legend:
Removed from v.902  
changed lines
  Added in v.903

  ViewVC Help
Powered by ViewVC 1.1.5