1PCRE2_SET_NEWLINE(3)       Library Functions Manual       PCRE2_SET_NEWLINE(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_newline(pcre2_compile_context *ccontext,
13         uint32_t value);
14

DESCRIPTION

16
17       This  function  sets  the  newline convention within a compile context.
18       This specifies which character(s) are recognized as newlines when  com‐
19       piling and matching patterns. The second argument must be one of:
20
21         PCRE2_NEWLINE_CR        Carriage return only
22         PCRE2_NEWLINE_LF        Linefeed only
23         PCRE2_NEWLINE_CRLF      CR followed by LF only
24         PCRE2_NEWLINE_ANYCRLF   Any of the above
25         PCRE2_NEWLINE_ANY       Any Unicode newline sequence
26         PCRE2_NEWLINE_NUL       The NUL character (binary zero)
27
28       The  result  is  zero  for success or PCRE2_ERROR_BADDATA if the second
29       argument is invalid.
30
31       There is a complete description of the PCRE2 native API in the pcre2api
32       page and a description of the POSIX API in the pcre2posix page.
33
34
35
36PCRE2 10.30                       26 May 2017             PCRE2_SET_NEWLINE(3)
Impressum