2018-10-17 10:33:38 +02:00
|
|
|
.TH PCRE2_MATCH_DATA_FREE 3 "16 October 2018" "PCRE2 10.33"
|
2014-10-25 16:16:46 +02:00
|
|
|
.SH NAME
|
|
|
|
PCRE2 - Perl-compatible regular expressions (revised API)
|
|
|
|
.SH SYNOPSIS
|
|
|
|
.rs
|
|
|
|
.sp
|
|
|
|
.B #include <pcre2.h>
|
|
|
|
.PP
|
|
|
|
.nf
|
|
|
|
.B void pcre2_match_data_free(pcre2_match_data *\fImatch_data\fP);
|
|
|
|
.fi
|
|
|
|
.
|
|
|
|
.SH DESCRIPTION
|
|
|
|
.rs
|
|
|
|
.sp
|
2018-06-28 18:26:03 +02:00
|
|
|
If \fImatch_data\fP is NULL, this function does nothing. Otherwise,
|
|
|
|
\fImatch_data\fP must point to a match data block, which this function frees,
|
|
|
|
using the memory freeing function from the general context or compiled pattern
|
|
|
|
with which it was created, or \fBfree()\fP if that was not set.
|
2014-10-25 16:16:46 +02:00
|
|
|
.P
|
2019-03-04 19:07:04 +01:00
|
|
|
If the PCRE2_COPY_MATCHED_SUBJECT was used for a successful match using this
|
2018-10-17 10:33:38 +02:00
|
|
|
match data block, the copy of the subject that was remembered with the block is
|
|
|
|
also freed.
|
|
|
|
.P
|
2014-10-25 16:16:46 +02:00
|
|
|
There is a complete description of the PCRE2 native API in the
|
|
|
|
.\" HREF
|
|
|
|
\fBpcre2api\fP
|
|
|
|
.\"
|
|
|
|
page and a description of the POSIX API in the
|
|
|
|
.\" HREF
|
|
|
|
\fBpcre2posix\fP
|
|
|
|
.\"
|
|
|
|
page.
|