Elliott Hughes | 0c26e19 | 2019-08-07 12:24:46 -0700 | [diff] [blame] | 1 | .TH PCRE2_MATCH_DATA_FREE 3 "16 October 2018" "PCRE2 10.33" |
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_match_data_free(pcre2_match_data *\fImatch_data\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 \fImatch_data\fP is NULL, this function does nothing. Otherwise, |
| 17 | \fImatch_data\fP must point to a match data block, which this function frees, |
| 18 | using the memory freeing function from the general context or compiled pattern |
| 19 | with which it was created, or \fBfree()\fP if that was not set. |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 20 | .P |
Elliott Hughes | 0c26e19 | 2019-08-07 12:24:46 -0700 | [diff] [blame] | 21 | If the PCRE2_COPY_MATCHED_SUBJECT was used for a successful match using this |
| 22 | match data block, the copy of the subject that was remembered with the block is |
| 23 | also freed. |
| 24 | .P |
Janis Danisevskis | 112c9cc | 2016-03-31 13:35:25 +0100 | [diff] [blame] | 25 | There is a complete description of the PCRE2 native API in the |
| 26 | .\" HREF |
| 27 | \fBpcre2api\fP |
| 28 | .\" |
| 29 | page and a description of the POSIX API in the |
| 30 | .\" HREF |
| 31 | \fBpcre2posix\fP |
| 32 | .\" |
| 33 | page. |