PCRE2_MAKETABLES_FREE(3)

🌸 NAME 🌸

okay so this is the PCRE2_MAKETABLES_FREE(3) page from the Library Functions Manual β€” and it’s all about PCRE2 - Perl-compatible regular expressions (revised API) πŸ’–. Think of PCRE2 as the regex bestie that keeps things Perl-compatible but revised, iykyk.


✨ SYNOPSIS ✨

here’s the include and the function signature, copied exactly so you can trust it:

#include <pcre2.h>

void pcre2_maketables_free(pcre2_general_context *gcontext,
  const uint8_t *tables);

πŸŽ€ DESCRIPTION πŸŽ€

bestie, this function discards a set of character tables that were created by a call to pcre2_maketables() 🫢. Like, tables? gone. discarded. periodt.

The gcontext parameter should match what was used in that call, so any custom allocators that might be in use are accounted for. If gcontext is NULL, the system free() is used instead. no cap, that’s the whole rule πŸ’….

There is a complete description of the PCRE2 native API in the pcre2api page β€” go read that if you want the full lore πŸ”₯.


mwah πŸ’‹ this iconic page comes from PCRE2 10.47, dated 03 September 2019, and its name is PCRE2_MAKETABLES_FREE(3) β€” slay, bye bestie πŸ¦‹.

πŸ“¦ where this page comes from