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_with_tables(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.
19 Unlike \fBpcre2_code_copy()\fP, a separate copy of the character tables is also
20 made, with the new code pointing to it. This memory will be automatically freed
21 when \fBpcre2_code_free()\fP is called. The yield of the function is NULL if
22 \fIcode\fP is NULL or if sufficient memory cannot be obtained.
24 There is a complete description of the PCRE2 native API in the
28 page and a description of the POSIX API in the