pcre2_config
Name
pcre2_config - show build-time related configuration options
Synopsis
#include <pcre2.h>
int pcre2_config(uint32_t what, void *where);Description
This function makes it possible for a client program to find out which optional features are available in the version of the PCRE2 library it is using. The arguments are as follows:
whatA code specifying what information is required
wherePoints 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, 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_BSRIndicates what
\Rmatches by default:PCRE2_BSR_UNICODEPCRE2_BSR_ANYCRLF
PCRE2_CONFIG_COMPILED_WIDTHSWhich of 8/16/32 support was compiled
PCRE2_CONFIG_DEPTHLIMITDefault backtracking depth limit
PCRE2_CONFIG_EFFECTIVE_LINKSIZEHow many bytes are used for link size
PCRE2_CONFIG_HEAPLIMITDefault heap memory limit
PCRE2_CONFIG_JITAvailability of just-in-time compiler support (1=yes 0=no)
PCRE2_CONFIG_JITTARGETInformation (a string) about the target architecture for the JIT compiler
PCRE2_CONFIG_LINKSIZEConfigured internal link size (2, 3, 4)
PCRE2_CONFIG_MATCHLIMITDefault internal resource limit
PCRE2_CONFIG_NEVER_BACKSLASH_CWhether or not
\Cis disabledPCRE2_CONFIG_NEWLINECode for the default newline sequence:
PCRE2_NEWLINE_CRPCRE2_NEWLINE_LFPCRE2_NEWLINE_CRLFPCRE2_NEWLINE_ANYPCRE2_NEWLINE_ANYCRLFPCRE2_NEWLINE_NUL
PCRE2_CONFIG_PARENSLIMITDefault parentheses nesting limit
PCRE2_CONFIG_RECURSIONLIMITObsolete: use
PCRE2_CONFIG_DEPTHLIMITPCRE2_CONFIG_STACKRECURSEObsolete: always returns 0
PCRE2_CONFIG_UNICODEAvailability of Unicode support (1=yes 0=no)
PCRE2_CONFIG_UNICODE_VERSIONThe Unicode version (a string)
PCRE2_CONFIG_VERSIONThe 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.