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

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

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

revision 868 by ph10, Thu Mar 8 16:53:09 2007 UTC revision 869 by ph10, Sat Jan 14 11:16:23 2012 UTC
# Line 23  SYNOPSIS Line 23  SYNOPSIS
23  <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>  <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>
24  <b>const char **<i>stringptr</i>);</b>  <b>const char **<i>stringptr</i>);</b>
25  </P>  </P>
26    <P>
27    <b>int pcre16_get_substring(PCRE_SPTR16 <i>subject</i>, int *<i>ovector</i>,</b>
28    <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>
29    <b>PCRE_SPTR16 *<i>stringptr</i>);</b>
30    </P>
31  <br><b>  <br><b>
32  DESCRIPTION  DESCRIPTION
33  </b><br>  </b><br>
# Line 31  This is a convenience function for extra Line 36  This is a convenience function for extra
36  arguments are:  arguments are:
37  <pre>  <pre>
38    <i>subject</i>       Subject that has been successfully matched    <i>subject</i>       Subject that has been successfully matched
39    <i>ovector</i>       Offset vector that <b>pcre_exec()</b> used    <i>ovector</i>       Offset vector that <b>pcre[16]_exec()</b> used
40    <i>stringcount</i>   Value returned by <b>pcre_exec()</b>    <i>stringcount</i>   Value returned by <b>pcre[16]_exec()</b>
41    <i>stringnumber</i>  Number of the required substring    <i>stringnumber</i>  Number of the required substring
42    <i>stringptr</i>     Where to put the string pointer    <i>stringptr</i>     Where to put the string pointer
43  </pre>  </pre>
44  The memory in which the substring is placed is obtained by calling  The memory in which the substring is placed is obtained by calling
45  <b>pcre_malloc()</b>. The convenience function <b>pcre_free_substring()</b> can  <b>pcre[16]_malloc()</b>. The convenience function
46  be used to free it when it is no longer needed. The yield of the function is  <b>pcre[16]_free_substring()</b> can be used to free it when it is no longer
47  the length of the substring, PCRE_ERROR_NOMEMORY if sufficient memory could not  needed. The yield of the function is the length of the substring,
48  be obtained, or PCRE_ERROR_NOSUBSTRING if the string number is invalid.  PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
49    PCRE_ERROR_NOSUBSTRING if the string number is invalid.
50  </P>  </P>
51  <P>  <P>
52  There is a complete description of the PCRE native API in the  There is a complete description of the PCRE native API in the

Legend:
Removed from v.868  
changed lines
  Added in v.869

  ViewVC Help
Powered by ViewVC 1.1.5