PCRE2_SET_...TE_CALLOUT(3)

πŸ’… PCRE2_SET_...TE_CALLOUT(3) πŸ’…

okay so bestie, this is the Library Functions Manual page for PCRE2, and it’s giving β€œtiny function, very specific job” energy. Let’s get into it πŸ’–

✨ NAME ✨

PCRE2 β€” Perl-compatible regular expressions (revised API)

πŸ¦‹ SYNOPSIS πŸ¦‹

       #include <pcre2.h>

       int pcre2_set_substitute_callout(pcre2_match_context *mcontext,
         int (*callout_function)(pcre2_substitute_callout_block *, void *),
         void *callout_data);

🌸 DESCRIPTION 🌸

This function sets the substitute callout fields in a match context β€” that’s the first argument, bestie. The second argument specifies a callout function, and the third argument is an opaque data item that gets passed to it. The result of this function is always zero β€” like, always, no cap πŸ’…

There’s a complete description of the PCRE2 native API in the pcre2api page, and a description of the POSIX API in the pcre2posix page. Go read those if you want the full lore πŸ‘‘


πŸ’– xoxo, your Unix bestie β€” PCRE2 10.47, 04 October 2024, PCRE2_SET_...TE_CALLOUT(3) πŸ’–

πŸ“¦ where this page comes from