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

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

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

revision 869 by ph10, Sat Jan 14 11:16:23 2012 UTC revision 903 by ph10, Sat Jan 21 16:37:17 2012 UTC
# Line 31  man page, in case the conversion went wr Line 31  man page, in case the conversion went wr
31  PCRE provides a feature called "callout", which is a means of temporarily  PCRE provides a feature called "callout", which is a means of temporarily
32  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
33  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
34  global variable <i>pcre_callout</i> (<i>pcre16_callout</i> for the 16-bit  global variable <i>pcre_callout</i> (<i>pcre16_callout</i> for the 16-bit
35  library). By default, this variable contains NULL, which disables all calling  library). By default, this variable contains NULL, which disables all calling
36  out.  out.
37  </P>  </P>
# Line 105  These structures contains the following Line 105  These structures contains the following
105    int           <i>callout_number</i>;    int           <i>callout_number</i>;
106    int          *<i>offset_vector</i>;    int          *<i>offset_vector</i>;
107    const char   *<i>subject</i>;           (8-bit version)    const char   *<i>subject</i>;           (8-bit version)
108    PCRE_SPTR16   <i>subject</i>;           (16-bit version)    PCRE_SPTR16   <i>subject</i>;           (16-bit version)
109    int           <i>subject_length</i>;    int           <i>subject_length</i>;
110    int           <i>start_match</i>;    int           <i>start_match</i>;
111    int           <i>current_position</i>;    int           <i>current_position</i>;
# Line 129  automatically generated callouts). Line 129  automatically generated callouts).
129  </P>  </P>
130  <P>  <P>
131  The <i>offset_vector</i> field is a pointer to the vector of offsets that was  The <i>offset_vector</i> field is a pointer to the vector of offsets that was
132  passed by the caller to the matching function. When <b>pcre_exec()</b> or  passed by the caller to the matching function. When <b>pcre_exec()</b> or
133  <b>pcre16_exec()</b> is used, the contents can be inspected, in order to extract  <b>pcre16_exec()</b> is used, the contents can be inspected, in order to extract
134  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
135  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.869  
changed lines
  Added in v.903

  ViewVC Help
Powered by ViewVC 1.1.5