PCRE2_SET_...TER_TABLES(3)

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

okay so bestie, you opened the PCRE2_SET_...TER_TABLES(3) page, and yes β€” this is the Library Functions Manual corner of the Unix universe. Come sit with me, we're gonna get you comfy with this little icon. 🫢✨


✨ NAME ✨

PCRE2 β€” Perl-compatible regular expressions (revised API) πŸ’–

No cap, that's the whole name section. Short, sweet, iconic.


πŸŽ€ SYNOPSIS πŸŽ€

#include <pcre2.h>

int pcre2_set_character_tables(pcre2_compile_context *ccontext,
  const uint8_t *tables);

Look at that signature serving main-character energy. 🌟


🌸 DESCRIPTION 🌸

So this function sets a pointer to custom character tables inside a compile context. That's the vibe. πŸ’…

The second argument has to point to a set of PCRE2 character tables, or it can be NULL if you want to request the default tables. And the result? Always zero. Every time. No drama, no surprises, just 0. ✨

Character tables can be created by calling pcre2_maketables() β€” yes, that's the function bestie β€” or by running the pcre2_dftables maintenance command in binary mode (see the pcre2build documentation for that one, iykyk). πŸ› οΈπŸ¦‹

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 when you wanna go deeper. πŸ“šπŸ’–


PCRE2 10.47 Β· 15 April 2020 Β· brought to you by the Library Functions Manual β€” mwah, go slay those character tables πŸ’‹πŸŒˆπŸŽ€

πŸ“¦ where this page comes from