blob: dce377d62579da0acc9406373e0d54c8be220f8f [file] [log] [blame]
Elliott Hughes9bc971b2018-07-27 13:23:14 -07001.TH PCRE2_GET_MARK 3 "13 October 2017" "PCRE2 10.31"
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01002.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 PCRE2_SPTR pcre2_get_mark(pcre2_match_data *\fImatch_data\fP);
11.fi
12.
13.SH DESCRIPTION
14.rs
15.sp
16After a call of \fBpcre2_match()\fP that was passed the match block that is
Elliott Hughes9bc971b2018-07-27 13:23:14 -070017this function's argument, this function returns a pointer to the last (*MARK),
18(*PRUNE), or (*THEN) name that was encountered during the matching process. The
19name is zero-terminated, and is within the compiled pattern. The length of the
20name is in the preceding code unit. If no name is available, NULL is returned.
21.P
22After a successful match, the name that is returned is the last one on the
23matching path. After a failed match or a partial match, the last encountered
24name is returned.
Janis Danisevskis112c9cc2016-03-31 13:35:25 +010025.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.