PCRE2_SET_BSR(3)
π PCRE2_SET_BSR π
okay so welcome to the PCRE2 girlies β that's Perl-compatible regular expressions (revised API), in case you were wondering, and yes this whole little family of pages lives under the Library Functions Manual umbrella. bestie, we're about to set a convention, and honestly? it's giving main character energy. π
β¨ SYNOPSIS β¨
like, here's the exact spelling, no cap:
#include <pcre2.h>
int pcre2_set_bsr(pcre2_compile_context *ccontext,
uint32_t value);
two arguments, one int back, classic. π
πΈ DESCRIPTION πΈ
okay so this function sets the convention for processing \R within a compile context β literally what it says on the tin, no extra lore. β¨
the second argument (value, the uint32_t one, iykyk) must be one of these two icons:
PCRE2_BSR_ANYCRLFPCRE2_BSR_UNICODE
that's the whole vibe check β those are the only two allowed, fr fr. π
and the result?
- zero β slay, success π
PCRE2_ERROR_BADDATAβ if that second argument is invalid, like it just didn't pass, bestie π
β οΈ heads up: invalidvaluedoesn't get fixed up for you β it's aPCRE2_ERROR_BADDATAreturn, periodt.
if you want the whole complete description of the PCRE2 native API, that lives over on the pcre2api page π¦, and if POSIX is more your thing, the POSIX API is described on the pcre2posix page π.
π«Ά the cute sign-off π«Ά
this gorgeous lil page is from PCRE2 10.47, dated 25 October 2014 β yes she's been iconic since 2014 and she's still serving. mwah ππ§ββοΈβ
π¦ 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