1PCRE2_SET_COMPILE_EXTRA_OPTILOiNbSr(a3r)y FunctionsPMCaRnEu2a_lSET_COMPILE_EXTRA_OPTIONS(3)
2
3
4

NAME

6       PCRE2 - Perl-compatible regular expressions (revised API)
7

SYNOPSIS

9
10       #include <pcre2.h>
11
12       int pcre2_set_compile_extra_options(pcre2_compile_context *ccontext,
13         uint32_t extra_options);
14

DESCRIPTION

16
17       This  function sets additional option bits for pcre2_compile() that are
18       housed in a compile context. It completely replaces all the  bits.  The
19       extra options are:
20
21         PCRE2_EXTRA_ALLOW_LOOKAROUND_BSK     Allow \K in lookarounds
22         PCRE2_EXTRA_ALLOW_SURROGATE_ESCAPES  Allow \x{d800} to \x{dfff}
23                                                in UTF-8 and UTF-32 modes
24         PCRE2_EXTRA_ALT_BSUX                 Extended alternate \u, \U, and
25                                                \x handling
26         PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL    Treat all invalid escapes as
27                                                a literal following character
28         PCRE2_EXTRA_ESCAPED_CR_IS_LF         Interpret \r as \n
29         PCRE2_EXTRA_MATCH_LINE               Pattern matches whole lines
30         PCRE2_EXTRA_MATCH_WORD               Pattern matches "words"
31
32       There is a complete description of the PCRE2 native API in the pcre2api
33       page and a description of the POSIX API in the pcre2posix page.
34
35
36
37PCRE2 10.38                     31 August 202P1CRE2_SET_COMPILE_EXTRA_OPTIONS(3)
Impressum