PCRE2_CONV...TTERN_FREE(3)

πŸŽ€ NAME πŸŽ€

Okay bestie, this page is PCRE2_CONV...TTERN_FREE(3) from the Library Functions Manual, and it's part of PCRE2 - Perl-compatible regular expressions (revised API). No cap.

✨ SYNOPSIS ✨

#include <pcre2.h>

void pcre2_converted_pattern_free(PCRE2_UCHAR *converted_pattern);

πŸ’– DESCRIPTION πŸ’–

So this lil function is part of an experimental set of pattern conversion functions. (Experimental, bestie β€” that's the original's word, not me being dramatic.) It frees the memory occupied by a converted pattern that was obtained by calling pcre2_pattern_convert() with arguments that caused it to place the converted pattern into newly obtained heap memory.

🫢 If the argument is NULL, the function returns immediately without doing anything. Iconic low-effort behavior, honestly.

The pattern conversion functions are described in the pcre2convert documentation. Go read that if you want the full conversion lore, iykyk.


Sign-off sparkle: this page is from PCRE2 10.47, dated 13 August 2018, and the title is PCRE2_CONV...TTERN_FREE(3). Bye bestie, slay your memory management πŸ’…βœ¨

πŸ“¦ where this page comes from