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

NAME

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

SYNOPSIS

9
10       #include <pcre2.h>
11
12       pcre2_match_data *pcre2_match_data_create(uint32_t ovecsize,
13         pcre2_general_context *gcontext);
14

DESCRIPTION

16
17       This function creates a new match data block, which is used for holding
18       the result of a match. The first argument specifies the number of pairs
19       of  offsets that are required. These form the "output vector" (ovector)
20       within the match data block, and  are  used  to  identify  the  matched
21       string and any captured substrings when matching with pcre2_match(), or
22       a number of  different  matches  at  the  same  point  when  used  with
23       pcre2_dfa_match().  There is always one pair of offsets; if ovecsize is
24       zero, it is treated as one.
25
26       The second argument points to a general context, for custom memory man‐
27       agement,  or  is  NULL  for system memory management. The result of the
28       function is NULL if the memory for the block could not be obtained.
29
30       There is a complete description of the PCRE2 native API in the pcre2api
31       page and a description of the POSIX API in the pcre2posix page.
32
33
34
35PCRE2 10.38                     28 August 2021      PCRE2_MATCH_DATA_CREATE(3)
Impressum