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. There is always one pair of off‐
22       sets; if ovecsize is zero, it is treated as one.
23
24       The second argument points to a general context, for custom memory man‐
25       agement,  or  is  NULL  for system memory management. The result of the
26       function is NULL if the memory for the block could not be obtained.
27
28       There is a complete description of the PCRE2 native API in the pcre2api
29       page and a description of the POSIX API in the pcre2posix page.
30
31
32
33PCRE2 10.21                      29 July 2015       PCRE2_MATCH_DATA_CREATE(3)
Impressum