/[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 1193 by ph10, Sat Jan 14 11:16:23 2012 UTC revision 1194 by ph10, Wed Oct 31 17:42:29 2012 UTC
# Line 28  SYNOPSIS Line 28  SYNOPSIS
28  <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>  <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>
29  <b>PCRE_SPTR16 *<i>stringptr</i>);</b>  <b>PCRE_SPTR16 *<i>stringptr</i>);</b>
30  </P>  </P>
31    <P>
32    <b>int pcre32_get_substring(PCRE_SPTR32 <i>subject</i>, int *<i>ovector</i>,</b>
33    <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>
34    <b>PCRE_SPTR32 *<i>stringptr</i>);</b>
35    </P>
36  <br><b>  <br><b>
37  DESCRIPTION  DESCRIPTION
38  </b><br>  </b><br>
# Line 36  This is a convenience function for extra Line 41  This is a convenience function for extra
41  arguments are:  arguments are:
42  <pre>  <pre>
43    <i>subject</i>       Subject that has been successfully matched    <i>subject</i>       Subject that has been successfully matched
44    <i>ovector</i>       Offset vector that <b>pcre[16]_exec()</b> used    <i>ovector</i>       Offset vector that <b>pcre[16|32]_exec()</b> used
45    <i>stringcount</i>   Value returned by <b>pcre[16]_exec()</b>    <i>stringcount</i>   Value returned by <b>pcre[16|32]_exec()</b>
46    <i>stringnumber</i>  Number of the required substring    <i>stringnumber</i>  Number of the required substring
47    <i>stringptr</i>     Where to put the string pointer    <i>stringptr</i>     Where to put the string pointer
48  </pre>  </pre>
49  The memory in which the substring is placed is obtained by calling  The memory in which the substring is placed is obtained by calling
50  <b>pcre[16]_malloc()</b>. The convenience function  <b>pcre[16|32]_malloc()</b>. The convenience function
51  <b>pcre[16]_free_substring()</b> can be used to free it when it is no longer  <b>pcre[16|32]_free_substring()</b> can be used to free it when it is no longer
52  needed. The yield of the function is the length of the substring,  needed. The yield of the function is the length of the substring,
53  PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or  PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
54  PCRE_ERROR_NOSUBSTRING if the string number is invalid.  PCRE_ERROR_NOSUBSTRING if the string number is invalid.

Legend:
Removed from v.1193  
changed lines
  Added in v.1194

  ViewVC Help
Powered by ViewVC 1.1.5