1 .TH PCRE2_SET_NEWLINE 3 "26 May 2017" "PCRE2 10.30"
3 PCRE2 - Perl-compatible regular expressions (revised API)
10 .B int pcre2_set_newline(pcre2_compile_context *\fIccontext\fP,
11 .B " uint32_t \fIvalue\fP);"
17 This function sets the newline convention within a compile context. This
18 specifies which character(s) are recognized as newlines when compiling and
19 matching patterns. The second argument must be one of:
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)
28 The result is zero for success or PCRE2_ERROR_BADDATA if the second argument is
31 There is a complete description of the PCRE2 native API in the
35 page and a description of the POSIX API in the