blob: 12778d618eb4bdb086168eac09b76460ef0d9da9 [file] [log] [blame]
.TH PCRE2_SUBSTRING_LENGTH_BYNUMBER 3 "22 December 2014" "PCRE2 10.00"
PCRE2 - Perl-compatible regular expressions (revised API)
.B #include <pcre2.h>
.B int pcre2_substring_length_bynumber(pcre2_match_data *\fImatch_data\fP,
.B " uint32_t \fInumber\fP, PCRE2_SIZE *\fIlength\fP);"
This function returns the length of a matched substring, identified by number.
The arguments are:
\fImatch_data\fP The match data block for the match
\fInumber\fP The substring number
\fIlength\fP Where to return the length, or NULL
The third argument may be NULL if all you want to know is whether or not a
substring is set. The yield is zero on success, or a negative error code
otherwise. After a partial match, only substring 0 is available.
There is a complete description of the PCRE2 native API in the
.\" HREF
page and a description of the POSIX API in the
.\" HREF