blob: 3053df43095b6d33bd4f87e3f194897b445b3fe5 [file] [log] [blame]
Janis Danisevskis112c9cc2016-03-31 13:35:25 +01001.TH PCRE2_COMPILE_CONTEXT_CREATE 3 "22 October 2014" "PCRE2 10.00"
2.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_compile_context *pcre2_compile_context_create(
11.B " pcre2_general_context *\fIgcontext\fP);"
12.fi
13.
14.SH DESCRIPTION
15.rs
16.sp
17This function creates and initializes a new compile context. If its argument is
18NULL, \fBmalloc()\fP is used to get the necessary memory; otherwise the memory
19allocation function within the general context is used. The result is NULL if
20the memory could not be obtained.
21.P
22There is a complete description of the PCRE2 native API in the
23.\" HREF
24\fBpcre2api\fP
25.\"
26page and a description of the POSIX API in the
27.\" HREF
28\fBpcre2posix\fP
29.\"
30page.