1PCRE2_GET_STARTCHAR(3)     Library Functions Manual     PCRE2_GET_STARTCHAR(3)
2
3
4

NAME

6       PCRE2 - Perl-compatible regular expressions (revised API)
7

SYNOPSIS

9
10       #include <pcre2.h>
11
12       PCRE2_SIZE pcre2_get_startchar(pcre2_match_data *match_data);
13

DESCRIPTION

15
16       After  a  successful  call  of  pcre2_match() that was passed the match
17       block that is this function's argument, this function returns the  code
18       unit offset of the character at which the successful match started. For
19       a non-partial match, this can be different to the value  of  ovector[0]
20       if  the pattern contains the \K escape sequence. After a partial match,
21       however, this value is always the same as ovector[0]  because  \K  does
22       not affect the result of a partial match.
23
24       There is a complete description of the PCRE2 native API in the pcre2api
25       page and a description of the POSIX API in the pcre2posix page.
26
27
28
29PCRE2 10.00                     24 October 2014         PCRE2_GET_STARTCHAR(3)
Impressum