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         PCRE2_SIZE 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_SURROGATE_ESCAPES  Allow \x{df800} to \x{dfff}
22                                                in UTF-8 and UTF-32 modes
23         PCRE2_EXTRA_BAD_ESCAPE_IS_LITERAL    Treat all invalid escapes as
24                                                a literal following character
25         PCRE2_EXTRA_MATCH_LINE               Pattern matches whole lines
26         PCRE2_EXTRA_MATCH_WORD               Pattern matches "words"
27
28       There is a complete description of the PCRE2 native API in the pcre2api
29       page and a description of the POSIX API in the pcre2posix page.
30
31
32
33PCRE2 10.30                      16 June 2017PCRE2_SET_COMPILE_EXTRA_OPTIONS(3)
Impressum