diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-05-26 17:14:36 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2017-05-26 17:14:36 +0000 |
commit | b7fb2cb1b30ecba2668d22a97b9fc0d4596520a1 (patch) | |
tree | 7a29fbd75ba6824e54aacdfb2b58d537c3671623 /src/pcre2_match.c | |
parent | 413d1379b94d88bcd6ddfc949e1fba4386e9a05b (diff) | |
download | pcre2-b7fb2cb1b30ecba2668d22a97b9fc0d4596520a1.tar.gz |
Implement PCRE2_NEWLINE_NUL.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@806 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'src/pcre2_match.c')
-rw-r--r-- | src/pcre2_match.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pcre2_match.c b/src/pcre2_match.c index a3399f1..abc404d 100644 --- a/src/pcre2_match.c +++ b/src/pcre2_match.c @@ -6246,6 +6246,11 @@ switch(re->newline_convention) mb->nl[0] = CHAR_NL; break; + case PCRE2_NEWLINE_NUL: + mb->nllen = 1; + mb->nl[0] = CHAR_NUL; + break; + case PCRE2_NEWLINE_CRLF: mb->nllen = 2; mb->nl[0] = CHAR_CR; |