110 lines
6.8 KiB
HTML
110 lines
6.8 KiB
HTML
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
|
<HTML><HEAD><TITLE>Man page of PCRE2_CONFIG</TITLE>
|
|
</HEAD><BODY>
|
|
<H1>PCRE2_CONFIG</H1>
|
|
Section: C Library Functions (3)<BR>Updated: 16 September 2017<BR><A HREF="#index">Index</A>
|
|
<A HREF="/cgi-bin/man/man2html">Return to Main Contents</A><HR>
|
|
|
|
<A NAME="lbAB"> </A>
|
|
<H2>NAME</H2>
|
|
|
|
PCRE2 - Perl-compatible regular expressions (revised API)
|
|
<A NAME="lbAC"> </A>
|
|
<H2>SYNOPSIS</H2>
|
|
|
|
|
|
<P>
|
|
<B>#include <<A HREF="file:///usr/include/pcre2.h">pcre2.h</A>></B>
|
|
|
|
<P>
|
|
|
|
<FONT SIZE="-1"><B>int pcre2_config(uint32_t </B><I>what</I>, void *<I>where</I>);
|
|
|
|
</FONT>
|
|
<A NAME="lbAD"> </A>
|
|
<H2>DESCRIPTION</H2>
|
|
|
|
|
|
<P>
|
|
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:
|
|
<P>
|
|
<BR> <I>what</I> A code specifying what information is required
|
|
<BR> <I>where</I> Points to where to put the information
|
|
<P>
|
|
If <I>where</I> 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.
|
|
<P>
|
|
|
|
If <B>where</B> 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:
|
|
<P>
|
|
<BR> PCRE2_CONFIG_BSR Indicates what \R matches by default:
|
|
<BR> PCRE2_BSR_UNICODE
|
|
<BR> PCRE2_BSR_ANYCRLF
|
|
<BR> PCRE2_CONFIG_COMPILED_WIDTHS Which of 8/16/32 support was compiled
|
|
<BR> PCRE2_CONFIG_DEPTHLIMIT Default backtracking depth limit
|
|
<BR> PCRE2_CONFIG_HEAPLIMIT Default heap memory limit
|
|
|
|
<BR> PCRE2_CONFIG_JIT Availability of just-in-time compiler
|
|
<BR> support (1=yes 0=no)
|
|
|
|
<BR> PCRE2_CONFIG_JITTARGET Information (a string) about the target
|
|
<BR> architecture for the JIT compiler
|
|
<BR> PCRE2_CONFIG_LINKSIZE Configured internal link size (2, 3, 4)
|
|
<BR> PCRE2_CONFIG_MATCHLIMIT Default internal resource limit
|
|
<BR> PCRE2_CONFIG_NEVER_BACKSLASH_C Whether or not \C is disabled
|
|
<BR> PCRE2_CONFIG_NEWLINE Code for the default newline sequence:
|
|
<BR> PCRE2_NEWLINE_CR
|
|
<BR> PCRE2_NEWLINE_LF
|
|
<BR> PCRE2_NEWLINE_CRLF
|
|
<BR> PCRE2_NEWLINE_ANY
|
|
<BR> PCRE2_NEWLINE_ANYCRLF
|
|
<BR> PCRE2_NEWLINE_NUL
|
|
<BR> PCRE2_CONFIG_PARENSLIMIT Default parentheses nesting limit
|
|
<BR> PCRE2_CONFIG_RECURSIONLIMIT Obsolete: use PCRE2_CONFIG_DEPTHLIMIT
|
|
<BR> PCRE2_CONFIG_STACKRECURSE Obsolete: always returns 0
|
|
|
|
<BR> PCRE2_CONFIG_UNICODE Availability of Unicode support (1=yes
|
|
<BR> 0=no)
|
|
<BR> PCRE2_CONFIG_UNICODE_VERSION The Unicode version (a string)
|
|
<BR> PCRE2_CONFIG_VERSION The PCRE2 version (a string)
|
|
<P>
|
|
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.
|
|
<P>
|
|
|
|
There is a complete description of the PCRE2 native API in the
|
|
|
|
<B>pcre2api</B>
|
|
|
|
page and a description of the POSIX API in the
|
|
|
|
<B>pcre2posix</B>
|
|
|
|
page.
|
|
<P>
|
|
|
|
<HR>
|
|
<A NAME="index"> </A><H2>Index</H2>
|
|
<DL>
|
|
<DT id="1"><A HREF="#lbAB">NAME</A><DD>
|
|
<DT id="2"><A HREF="#lbAC">SYNOPSIS</A><DD>
|
|
<DT id="3"><A HREF="#lbAD">DESCRIPTION</A><DD>
|
|
</DL>
|
|
<HR>
|
|
This document was created by
|
|
<A HREF="/cgi-bin/man/man2html">man2html</A>,
|
|
using the manual pages.<BR>
|
|
Time: 00:05:49 GMT, March 31, 2021
|
|
</BODY>
|
|
</HTML>
|