PCRE_REFCOUNT(3)

πŸŽ€ NAME πŸŽ€

PCRE β€” Perl-compatible regular expressions πŸ¦‹


✨ SYNOPSIS ✨

#include <pcre.h>

int pcre_refcount(pcre *code, int adjust);

int pcre16_refcount(pcre16 *code, int adjust);

int pcre32_refcount(pcre32 *code, int adjust);

πŸ’… DESCRIPTION πŸ’…

okay so bestie, this is the PCRE_REFCOUNT(3) page from the Library Functions Manual, and it's giving β€œtiny but important” energy fr fr. This function is used to maintain a reference count inside a data block that contains a compiled pattern. Its arguments are:

  • code β€” Compiled regular expression
  • adjust β€” Adjustment to reference value

The yield of the function is the adjusted reference value, which is constrained to lie between 0 and 65535. no cap, that's the whole range, bestie 🫢

There is a complete description of the PCRE native API in the pcreapi page and a description of the POSIX API in the pcreposix page. go read those if you want the full lore πŸ‘‘


PCRE 8.30 Β· 24 June 2012 Β· PCRE_REFCOUNT(3) πŸ’– mwah, that's the source/version + date sign-off, periodt ✨