Elliott Hughes | 653c210 | 2019-01-09 15:41:36 -0800 | [diff] [blame] | 1 | .TH PCRE2_CODE_FREE 3 "28 June 2018" "PCRE2 10.32" |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 2 | .SH NAME |
| 3 | PCRE2 - Perl-compatible regular expressions (revised API) |
| 4 | .SH SYNOPSIS |
| 5 | .rs |
| 6 | .sp |
| 7 | .B #include <pcre2.h> |
| 8 | .PP |
| 9 | .nf |
| 10 | .B void pcre2_code_free(pcre2_code *\fIcode\fP); |
| 11 | .fi |
| 12 | . |
| 13 | .SH DESCRIPTION |
| 14 | .rs |
| 15 | .sp |
Elliott Hughes | 653c210 | 2019-01-09 15:41:36 -0800 | [diff] [blame] | 16 | If \fIcode\fP is NULL, this function does nothing. Otherwise, \fIcode\fP must |
| 17 | point to a compiled pattern. This function frees its memory, including any |
Elliott Hughes | 9bc971b | 2018-07-27 13:23:14 -0700 | [diff] [blame] | 18 | memory used by the JIT compiler. If the compiled pattern was created by a call |
| 19 | to \fBpcre2_code_copy_with_tables()\fP, the memory for the character tables is |
| 20 | also freed. |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 21 | .P |
| 22 | There is a complete description of the PCRE2 native API in the |
| 23 | .\" HREF |
| 24 | \fBpcre2api\fP |
| 25 | .\" |
| 26 | page and a description of the POSIX API in the |
| 27 | .\" HREF |
| 28 | \fBpcre2posix\fP |
| 29 | .\" |
| 30 | page. |