PCRE2_SERIALIZE_GET_NUMBER_OF_CODES(3)
πΈ NAME πΈ
PCRE2 β Perl-compatible regular expressions (revised API). This is the pcre2_serialize_get_number_of_codes(3) page from the Library Functions Manual, and itβs here to help you count the codes in a serialized byte stream. Periodt. π
β¨ SYNOPSIS β¨
#include <pcre2.h>
int32_t pcre2_serialize_get_number_of_codes(const uint8_t *bytes);
π DESCRIPTION π
Okay so bestie, hereβs the tea. The bytes argument must point to a serialized byte stream that was originally created by pcre2_serialize_encode() β though it may have been saved on disc or elsewhere in the meantime. No cap. π«Ά
The function returns the number of serialized patterns in the byte stream, or one of these negative error codes:
PCRE2_ERROR_BADMAGICβ mismatch of id bytes inbytesPCRE2_ERROR_BADMODEβ mismatch of variable unit size or PCRE versionPCRE2_ERROR_NULLβ the argument isNULL
PCRE2_ERROR_BADMAGIC may mean that the data is corrupt, or that it was compiled on a system with different endianness. π
There is a complete description of the PCRE2 native API in the pcre2api page and a description of the serialization functions in the pcre2serialize page. Go read those if you want the full lore. π¦
xoxo, this page is brought to you by PCRE2 10.47 on 13 August 2018 β stay slay, bestie. πβ¨
π¦ 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