| 1 |
.TH PCRE 3 |
.TH PCRE_GET_NAMED_SUBSTRING 3 |
| 2 |
.SH NAME |
.SH NAME |
| 3 |
PCRE - Perl-compatible regular expressions |
PCRE - Perl-compatible regular expressions |
| 4 |
.SH SYNOPSIS |
.SH SYNOPSIS |
| 7 |
.B #include <pcre.h> |
.B #include <pcre.h> |
| 8 |
.PP |
.PP |
| 9 |
.SM |
.SM |
|
.br |
|
| 10 |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
.B int pcre_get_named_substring(const pcre *\fIcode\fP, |
| 11 |
.ti +5n |
.ti +5n |
| 12 |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
.B const char *\fIsubject\fP, int *\fIovector\fP, |
| 29 |
\fIstringptr\fP Where to put the string pointer |
\fIstringptr\fP Where to put the string pointer |
| 30 |
.sp |
.sp |
| 31 |
The memory in which the substring is placed is obtained by calling |
The memory in which the substring is placed is obtained by calling |
| 32 |
\fBpcre_malloc()\fP. The yield of the function is the length of the extracted |
\fBpcre_malloc()\fP. The convenience function \fBpcre_free_substring()\fP can |
| 33 |
substring, PCRE_ERROR_NOMEMORY if sufficient memory could not be obtained, or |
be used to free it when it is no longer needed. The yield of the function is |
| 34 |
PCRE_ERROR_NOSUBSTRING if the string name is invalid. |
the length of the extracted substring, PCRE_ERROR_NOMEMORY if sufficient memory |
| 35 |
|
could not be obtained, or PCRE_ERROR_NOSUBSTRING if the string name is invalid. |
| 36 |
.P |
.P |
| 37 |
There is a complete description of the PCRE native API in the |
There is a complete description of the PCRE native API in the |
| 38 |
.\" HREF |
.\" HREF |