1PCRE_CONFIG(3) Library Functions Manual PCRE_CONFIG(3)
2
3
4
6 PCRE - Perl-compatible regular expressions
7
9
10 #include <pcre.h>
11
12 int pcre_config(int what, void *where);
13
15
16 This function makes it possible for a client program to find out which
17 optional features are available in the version of the PCRE library it
18 is using. Its arguments are as follows:
19
20 what A code specifying what information is required
21 where Points to where to put the data
22
23 The available codes are:
24
25 PCRE_CONFIG_LINK_SIZE Internal link size: 2, 3, or 4
26 PCRE_CONFIG_MATCH_LIMIT Internal resource limit
27 PCRE_CONFIG_MATCH_LIMIT_RECURSION
28 Internal recursion depth limit
29 PCRE_CONFIG_NEWLINE Value of the default newline sequence:
30 13 (0x000d) for CR
31 10 (0x000a) for LF
32 3338 (0x0d0a) for CRLF
33 -2 for ANYCRLF
34 -1 for ANY
35 PCRE_CONFIG_BSR Indicates what \R matches by default:
36 0 all Unicode line endings
37 1 CR, LF, or CRLF only
38 PCRE_CONFIG_POSIX_MALLOC_THRESHOLD
39 Threshold of return slots, above
40 which malloc() is used by
41 the POSIX API
42 PCRE_CONFIG_STACKRECURSE Recursion implementation (1=stack 0=heap)
43 PCRE_CONFIG_UTF8 Availability of UTF-8 support (1=yes 0=no)
44 PCRE_CONFIG_UNICODE_PROPERTIES
45 Availability of Unicode property support
46 (1=yes 0=no)
47
48 The function yields 0 on success or PCRE_ERROR_BADOPTION otherwise.
49
50 There is a complete description of the PCRE native API in the pcreapi
51 page and a description of the POSIX API in the pcreposix page.
52
53
54
55 PCRE_CONFIG(3)