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

Diff of /code/trunk/doc/html/pcre_get_named_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 30  SYNOPSIS Line 30  SYNOPSIS
30  <b>int <i>stringcount</i>, PCRE_SPTR16 <i>stringname</i>,</b>  <b>int <i>stringcount</i>, PCRE_SPTR16 <i>stringname</i>,</b>
31  <b>PCRE_SPTR16 *<i>stringptr</i>);</b>  <b>PCRE_SPTR16 *<i>stringptr</i>);</b>
32  </P>  </P>
33    <P>
34    <b>int pcre32_get_named_substring(const pcre32 *<i>code</i>,</b>
35    <b>PCRE_SPTR32 <i>subject</i>, int *<i>ovector</i>,</b>
36    <b>int <i>stringcount</i>, PCRE_SPTR32 <i>stringname</i>,</b>
37    <b>PCRE_SPTR32 *<i>stringptr</i>);</b>
38    </P>
39  <br><b>  <br><b>
40  DESCRIPTION  DESCRIPTION
41  </b><br>  </b><br>
# Line 39  arguments are: Line 45  arguments are:
45  <pre>  <pre>
46    <i>code</i>          Compiled pattern    <i>code</i>          Compiled pattern
47    <i>subject</i>       Subject that has been successfully matched    <i>subject</i>       Subject that has been successfully matched
48    <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
49    <i>stringcount</i>   Value returned by <b>pcre[16]_exec()</b>    <i>stringcount</i>   Value returned by <b>pcre[16|32]_exec()</b>
50    <i>stringname</i>    Name of the required substring    <i>stringname</i>    Name of the required substring
51    <i>stringptr</i>     Where to put the string pointer    <i>stringptr</i>     Where to put the string pointer
52  </pre>  </pre>
53  The memory in which the substring is placed is obtained by calling  The memory in which the substring is placed is obtained by calling
54  <b>pcre[16]_malloc()</b>. The convenience function  <b>pcre[16|32]_malloc()</b>. The convenience function
55  <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
56  needed. The yield of the function is the length of the extracted substring,  needed. The yield of the function is the length of the extracted substring,
57  PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or  PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
58  PCRE_ERROR_NOSUBSTRING if the string name is invalid.  PCRE_ERROR_NOSUBSTRING if the string name is invalid.

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

  ViewVC Help
Powered by ViewVC 1.1.5