blob: 84cdc6a58dde55ecae48de4ea19db3384c4ab7bc [file] [log] [blame]
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01001.TH PCRE2_SUBSTRING_LENGTH_BYNAME 3 "21 October 2014" "PCRE2 10.00"
2.SH NAME
3PCRE2 - Perl-compatible regular expressions (revised API)
4.SH SYNOPSIS
5.rs
6.sp
7.B #include <pcre2.h>
8.PP
9.nf
10.B int pcre2_substring_length_byname(pcre2_match_data *\fImatch_data\fP,
11.B " PCRE2_SPTR \fIname\fP, PCRE2_SIZE *\fIlength\fP);"
12.fi
13.
14.SH DESCRIPTION
15.rs
16.sp
17This function returns the length of a matched substring, identified by name.
18The arguments are:
19.sp
20 \fImatch_data\fP The match data block for the match
21 \fIname\fP The substring name
22 \fIlength\fP Where to return the length
23.sp
24The yield is zero on success, or an error code if the substring is not found.
25.P
26There is a complete description of the PCRE2 native API in the
27.\" HREF
28\fBpcre2api\fP
29.\"
30page and a description of the POSIX API in the
31.\" HREF
32\fBpcre2posix\fP
33.\"
34page.