| 1 |
nigel |
63 |
<html> |
| 2 |
|
|
<head> |
| 3 |
|
|
<title>pcre_get_substring_list specification</title> |
| 4 |
|
|
</head> |
| 5 |
|
|
<body bgcolor="#FFFFFF" text="#00005A" link="#0066FF" alink="#3399FF" vlink="#2222BB"> |
| 6 |
nigel |
75 |
<h1>pcre_get_substring_list man page</h1> |
| 7 |
|
|
<p> |
| 8 |
|
|
Return to the <a href="index.html">PCRE index page</a>. |
| 9 |
|
|
</p> |
| 10 |
ph10 |
111 |
<p> |
| 11 |
nigel |
75 |
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 |
ph10 |
111 |
<br> |
| 15 |
nigel |
63 |
<br><b> |
| 16 |
|
|
SYNOPSIS |
| 17 |
|
|
</b><br> |
| 18 |
|
|
<P> |
| 19 |
|
|
<b>#include <pcre.h></b> |
| 20 |
|
|
</P> |
| 21 |
|
|
<P> |
| 22 |
|
|
<b>int pcre_get_substring_list(const char *<i>subject</i>,</b> |
| 23 |
|
|
<b>int *<i>ovector</i>, int <i>stringcount</i>, const char ***<i>listptr</i>);</b> |
| 24 |
|
|
</P> |
| 25 |
ph10 |
869 |
<P> |
| 26 |
|
|
<b>int pcre16_get_substring_list(PCRE_SPTR16 <i>subject</i>,</b> |
| 27 |
|
|
<b>int *<i>ovector</i>, int <i>stringcount</i>, PCRE_SPTR16 **<i>listptr</i>);</b> |
| 28 |
|
|
</P> |
| 29 |
nigel |
63 |
<br><b> |
| 30 |
|
|
DESCRIPTION |
| 31 |
|
|
</b><br> |
| 32 |
|
|
<P> |
| 33 |
|
|
This is a convenience function for extracting a list of all the captured |
| 34 |
|
|
substrings. The arguments are: |
| 35 |
|
|
<pre> |
| 36 |
|
|
<i>subject</i> Subject that has been successfully matched |
| 37 |
ph10 |
869 |
<i>ovector</i> Offset vector that <b>pcre[16]_exec</b> used |
| 38 |
|
|
<i>stringcount</i> Value returned by <b>pcre[16]_exec</b> |
| 39 |
nigel |
63 |
<i>listptr</i> Where to put a pointer to the list |
| 40 |
nigel |
75 |
</pre> |
| 41 |
|
|
The memory in which the substrings and the list are placed is obtained by |
| 42 |
ph10 |
869 |
calling <b>pcre[16]_malloc()</b>. The convenience function |
| 43 |
|
|
<b>pcre[16]_free_substring_list()</b> can be used to free it when it is no |
| 44 |
|
|
longer needed. A pointer to a list of pointers is put in the variable whose |
| 45 |
|
|
address is in <i>listptr</i>. The list is terminated by a NULL pointer. The |
| 46 |
|
|
yield of the function is zero on success or PCRE_ERROR_NOMEMORY if sufficient |
| 47 |
|
|
memory could not be obtained. |
| 48 |
nigel |
63 |
</P> |
| 49 |
|
|
<P> |
| 50 |
nigel |
75 |
There is a complete description of the PCRE native API in the |
| 51 |
nigel |
63 |
<a href="pcreapi.html"><b>pcreapi</b></a> |
| 52 |
nigel |
75 |
page and a description of the POSIX API in the |
| 53 |
|
|
<a href="pcreposix.html"><b>pcreposix</b></a> |
| 54 |
nigel |
63 |
page. |
| 55 |
nigel |
75 |
<p> |
| 56 |
|
|
Return to the <a href="index.html">PCRE index page</a>. |
| 57 |
|
|
</p> |