pcre2_match_data_free.3 913 B

123456789101112131415161718192021222324252627282930313233
  1. .TH PCRE2_MATCH_DATA_FREE 3 "16 October 2018" "PCRE2 10.33"
  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
  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.
  20. .P
  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
  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.