PCRE2_SET_CALLOUT(3)
π NAME π
PCRE2 - Perl-compatible regular expressions (revised API). This is the PCRE2_SET_CALLOUT(3) page from the Library Functions Manual, and it's here to explain the set-callout function, bestie π«Άβ¨
β¨ SYNOPSIS β¨
#include <pcre2.h>
int pcre2_set_callout(pcre2_match_context *mcontext,
int (*callout_function)(pcre2_callout_block *),
void *callout_data);
πΈ DESCRIPTION πΈ
okay so pcre2_set_callout() sets the callout fields in a match context β that's the first argument, mcontext β and it's giving "configure the callout setup" energy π
mcontextβ the match context whose callout fields get set (the first argument).callout_functionβ the second argument specifies a callout function, with the typeint (*callout_function)(pcre2_callout_block *).callout_dataβ the third argument is an opaque data item that is passed to the callout function.
The result of this function is always zero. always. zero. 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. iykyk π
cute sign-off: PCRE2 10.47 πΈ 25 March 2017 πΈ PCRE2_SET_CALLOUT(3) β mwah, go slay your regex callouts π
π¦ where this page comes from
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 43: pcre2-devel 10.47-1.fc43 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- fedora 44: pcre2-devel 10.47-1.fc44.1 Β· BSD-3-Clause AND FSFULLR AND X11 AND GPL-2.0-or-later AND FSFAP AND FSFUL AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms