1 .TH PCRE2_CODE_COPY 3 "22 November 2016" "PCRE2 10.23"
3 PCRE2 - Perl-compatible regular expressions (revised API)
10 .B pcre2_code *pcre2_code_copy(const pcre2_code *\fIcode\fP);
16 This function makes a copy of the memory used for a compiled pattern, excluding
17 any memory used by the JIT compiler. Without a subsequent call to
18 \fBpcre2_jit_compile()\fP, the copy can be used only for non-JIT matching. The
19 pointer to the character tables is copied, not the tables themselves (see
20 \fBpcre2_code_copy_with_tables()\fP). The yield of the function is NULL if
21 \fIcode\fP is NULL or if sufficient memory cannot be obtained.
23 There is a complete description of the PCRE2 native API in the
27 page and a description of the POSIX API in the