1PCRE_CONFIG(3)             Library Functions Manual             PCRE_CONFIG(3)
2
3
4

NAME

6       PCRE - Perl-compatible regular expressions
7

SYNOPSIS

9
10       #include <pcre.h>
11
12       int pcre_config(int what, void *where);
13
14       int pcre16_config(int what, void *where);
15
16       int pcre32_config(int what, void *where);
17

DESCRIPTION

19
20       This  function makes it possible for a client program to find out which
21       optional features are available in the version of the PCRE  library  it
22       is using. The arguments are as follows:
23
24         what     A code specifying what information is required
25         where    Points to where to put the data
26
27       The  where  argument  must  point  to  an  integer variable, except for
28       PCRE_CONFIG_MATCH_LIMIT and PCRE_CONFIG_MATCH_LIMIT_RECURSION, when  it
29       must point to an unsigned long integer. The available codes are:
30
31         PCRE_CONFIG_JIT           Availability of just-in-time compiler
32                                     support (1=yes 0=no)
33         PCRE_CONFIG_JITTARGET     String containing information about the
34                                     target architecture for the JIT compiler,
35                                     or NULL if there is no JIT support
36         PCRE_CONFIG_LINK_SIZE     Internal link size: 2, 3, or 4
37         PCRE_CONFIG_MATCH_LIMIT   Internal resource limit
38         PCRE_CONFIG_MATCH_LIMIT_RECURSION
39                                   Internal recursion depth limit
40         PCRE_CONFIG_NEWLINE       Value of the default newline sequence:
41                                       13 (0x000d)    for CR
42                                       10 (0x000a)    for LF
43                                     3338 (0x0d0a)    for CRLF
44                                       -2             for ANYCRLF
45                                       -1             for ANY
46         PCRE_CONFIG_BSR           Indicates what \R matches by default:
47                                        0             all Unicode line endings
48                                        1             CR, LF, or CRLF only
49         PCRE_CONFIG_POSIX_MALLOC_THRESHOLD
50                                   Threshold of return slots, above which
51                                     malloc() is used by the POSIX API
52         PCRE_CONFIG_STACKRECURSE  Recursion implementation (1=stack 0=heap)
53         PCRE_CONFIG_UTF16         Availability of UTF-16 support (1=yes
54                                      0=no); option for pcre16_config()
55         PCRE_CONFIG_UTF32         Availability of UTF-32 support (1=yes
56                                      0=no); option for pcre32_config()
57         PCRE_CONFIG_UTF8          Availability of UTF-8 support (1=yes 0=no);
58                                     option for pcre_config()
59         PCRE_CONFIG_UNICODE_PROPERTIES
60                                   Availability of Unicode property support
61                                     (1=yes 0=no)
62
63       The  function  yields  0  on success or PCRE_ERROR_BADOPTION otherwise.
64       That error is also given if PCRE_CONFIG_UTF16 or  PCRE_CONFIG_UTF32  is
65       passed  to  pcre_config(),  if PCRE_CONFIG_UTF8 or PCRE_CONFIG_UTF32 is
66       passed to pcre16_config(), or if PCRE_CONFIG_UTF8 or  PCRE_CONFIG_UTF16
67       is passed to pcre32_config().
68
69       There  is  a complete description of the PCRE native API in the pcreapi
70       page and a description of the POSIX API in the pcreposix page.
71
72
73
74PCRE 8.30                        24 June 2012                   PCRE_CONFIG(3)
Impressum