PCRE2_CONFIG(3)
π NAME π
okay bestie, welcome to PCRE2_CONFIG(3) from the Library Functions Manual β this is the page for PCRE2 β Perl-compatible regular expressions (revised API). π
β¨
β¨ SYNOPSIS β¨
#include <pcre2.h>
int pcre2_config(uint32_t what, void *where);
π¦ DESCRIPTION π¦
This function lets a client program find out which optional features are available in the version of the PCRE2 library itβs using. The arguments are as follows:
whatβ a code specifying what information is required.whereβ points to where to put the information.
If where is NULL, the function returns the amount of memory needed for the requested information. When the information is a string, the value is in code units; for other types of data it is in bytes. π§
If where is not NULL, then for PCRE2_CONFIG_JITTARGET, PCRE2_CONFIG_UNICODE_VERSION, and PCRE2_CONFIG_VERSION it must point to a buffer that is large enough to hold the string. For all other codes it must point to a uint32_t integer variable. The available codes are:
PCRE2_CONFIG_BSRβ indicates what\Rmatches by default:PCRE2_BSR_UNICODEorPCRE2_BSR_ANYCRLF.PCRE2_CONFIG_COMPILED_WIDTHSβ which of8/16/32support was compiled.PCRE2_CONFIG_DEPTHLIMITβ default backtracking depth limit.PCRE2_CONFIG_EFFECTIVE_LINKSIZEβ how many bytes are used for link size.PCRE2_CONFIG_HEAPLIMITβ default heap memory limit.PCRE2_CONFIG_JITβ availability of just-in-time compiler support (1=yes0=no).PCRE2_CONFIG_JITTARGETβ information (a string) about the target architecture for the JIT compiler.PCRE2_CONFIG_LINKSIZEβ configured internal link size (2,3,4).PCRE2_CONFIG_MATCHLIMITβ default internal resource limit.PCRE2_CONFIG_NEVER_BACKSLASH_Cβ whether or not\Cis disabled.PCRE2_CONFIG_NEWLINEβ code for the default newline sequence:PCRE2_NEWLINE_CR,PCRE2_NEWLINE_LF,PCRE2_NEWLINE_CRLF,PCRE2_NEWLINE_ANY,PCRE2_NEWLINE_ANYCRLF,PCRE2_NEWLINE_NUL.PCRE2_CONFIG_PARENSLIMITβ default parentheses nesting limit.PCRE2_CONFIG_RECURSIONLIMITβ obsolete: usePCRE2_CONFIG_DEPTHLIMIT.PCRE2_CONFIG_STACKRECURSEβ obsolete: always returns0.PCRE2_CONFIG_UNICODEβ availability of Unicode support (1=yes0=no).PCRE2_CONFIG_UNICODE_VERSIONβ the Unicode version (a string).PCRE2_CONFIG_VERSIONβ the PCRE2 version (a string).
The function yields a non-negative value on success or the negative value PCRE2_ERROR_BADOPTION otherwise. This is also the result for the PCRE2_CONFIG_JITTARGET code if JIT support is not available. When a string is requested, the function returns the number of code units used, including the terminating zero. π
There is a complete description of the PCRE2 native API in the pcre2api page and a description of the POSIX API in the pcre2posix page.
β¨ your fave PCRE2_CONFIG(3) page is serving source/version PCRE2 10.47, dated 03 September 2025 β mwah, 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