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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 75 - (hide annotations) (download) (as text)
Sat Feb 24 21:40:37 2007 UTC (7 years, 9 months ago) by nigel
File MIME type: text/html
File size: 1707 byte(s)
Load pcre-5.0 into code/trunk.

1 nigel 63 <html>
2     <head>
3     <title>pcre_get_substring specification</title>
4     </head>
5     <body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB">
6 nigel 75 <h1>pcre_get_substring man page</h1>
7     <p>
8     Return to the <a href="index.html">PCRE index page</a>.
9     </p>
10     <p>
11     This page is part of the PCRE HTML documentation. It was generated automatically
12     from the original man page. If there is any nonsense in it, please consult the
13     man page, in case the conversion went wrong.
14     <br>
15 nigel 63 <br><b>
16     SYNOPSIS
17     </b><br>
18     <P>
19     <b>#include &#60;pcre.h&#62;</b>
20     </P>
21     <P>
22     <b>int pcre_get_substring(const char *<i>subject</i>, int *<i>ovector</i>,</b>
23     <b>int <i>stringcount</i>, int <i>stringnumber</i>,</b>
24     <b>const char **<i>stringptr</i>);</b>
25     </P>
26     <br><b>
27     DESCRIPTION
28     </b><br>
29     <P>
30     This is a convenience function for extracting a captured substring. The
31     arguments are:
32     <pre>
33     <i>subject</i> Subject that has been successfully matched
34     <i>ovector</i> Offset vector that <b>pcre_exec()</b> used
35     <i>stringcount</i> Value returned by <b>pcre_exec()</b>
36     <i>stringnumber</i> Number of the required substring
37     <i>stringptr</i> Where to put the string pointer
38 nigel 75 </pre>
39     The memory in which the substring is placed is obtained by calling
40     <b>pcre_malloc()</b>. The yield of the function is the length of the substring,
41     PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or
42     PCRE_ERROR_NOSUBSTRING if the string number is invalid.
43 nigel 63 </P>
44     <P>
45 nigel 75 There is a complete description of the PCRE native API in the
46 nigel 63 <a href="pcreapi.html"><b>pcreapi</b></a>
47 nigel 75 page and a description of the POSIX API in the
48     <a href="pcreposix.html"><b>pcreposix</b></a>
49 nigel 63 page.
50 nigel 75 <p>
51     Return to the <a href="index.html">PCRE index page</a>.
52     </p>

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12