PCRE2_SET_HEAP_LIMIT(3)

okay so bestie, welcome to the Library Functions Manual page for PCRE2_SET_HEAP_LIMIT(3) β€” the title and manual name are folded right here at the top, no boring header clone, we're slaying πŸ’…βœ¨

πŸ’– NAME πŸ’–

PCRE2 β€” Perl-compatible regular expressions (revised API) πŸ¦‹

πŸŽ€ SYNOPSIS πŸŽ€

#include <pcre2.h>

int pcre2_set_heap_limit(pcre2_match_context *mcontext,
  uint32_t value);

That's the exact call, periodt. The include is <pcre2.h>, the function is pcre2_set_heap_limit, and it takes a pcre2_match_context *mcontext plus a uint32_t value 🌸

✨ DESCRIPTION ✨

This function sets the backtracking heap limit field in a match context. That's it, that's the whole assignment. The result is always zero β€” not sometimes, not "depends," literally always zero, no cap πŸ˜ŒπŸ‘‘

There is a complete description of the PCRE2 native API in the pcre2api page, and a description of the POSIX API in the pcre2posix page. If you need the full lore, those are the two pages to check, iykyk πŸ“šπŸ¦‹


πŸ’– Cute little sign-off: this page is from PCRE2 10.47, dated 17 June 2018, and it's filed under PCRE2_SET_HEAP_LIMIT(3) β€” bye bestie, go set that heap limit! πŸŽ€βœ¨

πŸ“¦ where this page comes from