version 1.1.1.2, 2012/02/21 23:50:25
|
version 1.1.1.5, 2014/06/15 19:46:05
|
Line 1
|
Line 1
|
.TH PCRE_COPY_NAMED_SUBSTRING 3 | .TH PCRE_COPY_NAMED_SUBSTRING 3 "24 June 2012" "PCRE 8.30" |
.SH NAME |
.SH NAME |
PCRE - Perl-compatible regular expressions |
PCRE - Perl-compatible regular expressions |
.SH SYNOPSIS |
.SH SYNOPSIS |
Line 6 PCRE - Perl-compatible regular expressions
|
Line 6 PCRE - Perl-compatible regular expressions
|
.sp |
.sp |
.B #include <pcre.h> |
.B #include <pcre.h> |
.PP |
.PP |
.SM | .nf |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
.B int pcre_copy_named_substring(const pcre *\fIcode\fP, |
.ti +5n | .B " const char *\fIsubject\fP, int *\fIovector\fP," |
.B const char *\fIsubject\fP, int *\fIovector\fP, | .B " int \fIstringcount\fP, const char *\fIstringname\fP," |
.ti +5n | .B " char *\fIbuffer\fP, int \fIbuffersize\fP);" |
.B int \fIstringcount\fP, const char *\fIstringname\fP, | .sp |
.ti +5n | |
.B char *\fIbuffer\fP, int \fIbuffersize\fP); | |
.PP | |
.B int pcre16_copy_named_substring(const pcre16 *\fIcode\fP, |
.B int pcre16_copy_named_substring(const pcre16 *\fIcode\fP, |
.ti +5n | .B " PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP," |
.B PCRE_SPTR16 \fIsubject\fP, int *\fIovector\fP, | .B " int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP," |
.ti +5n | .B " PCRE_UCHAR16 *\fIbuffer\fP, int \fIbuffersize\fP);" |
.B int \fIstringcount\fP, PCRE_SPTR16 \fIstringname\fP, | .sp |
.ti +5n | .B int pcre32_copy_named_substring(const pcre32 *\fIcode\fP, |
.B PCRE_UCHAR16 *\fIbuffer\fP, int \fIbuffersize\fP); | . |
| .B " int \fIstringcount\fP, PCRE_SPTR32 \fIstringname\fP," |
| .B " PCRE_UCHAR32 *\fIbuffer\fP, int \fIbuffersize\fP);" |
| .fi |
. |
. |
.SH DESCRIPTION |
.SH DESCRIPTION |
.rs |
.rs |
Line 31 by name, into a given buffer. The arguments are:
|
Line 31 by name, into a given buffer. The arguments are:
|
.sp |
.sp |
\fIcode\fP Pattern that was successfully matched |
\fIcode\fP Pattern that was successfully matched |
\fIsubject\fP Subject that has been successfully matched |
\fIsubject\fP Subject that has been successfully matched |
\fIovector\fP Offset vector that \fBpcre[16]_exec()\fP used | \fIovector\fP Offset vector that \fBpcre[16|32]_exec()\fP used |
\fIstringcount\fP Value returned by \fBpcre[16]_exec()\fP | \fIstringcount\fP Value returned by \fBpcre[16|32]_exec()\fP |
\fIstringname\fP Name of the required substring |
\fIstringname\fP Name of the required substring |
\fIbuffer\fP Buffer to receive the string |
\fIbuffer\fP Buffer to receive the string |
\fIbuffersize\fP Size of buffer |
\fIbuffersize\fP Size of buffer |