diff options
author | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-10-17 13:50:56 +0000 |
---|---|---|
committer | ph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069> | 2015-10-17 13:50:56 +0000 |
commit | deee8d934595c4b856361955aaf4dd26995d203a (patch) | |
tree | e51b5816563a758d536c5c15961441724944dcb1 /README | |
parent | 91cb973c4537327c18217b50f20e82283affe976 (diff) | |
download | pcre2-deee8d934595c4b856361955aaf4dd26995d203a.tar.gz |
Implement --never-backslash-C
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@386 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'README')
-rw-r--r-- | README | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -219,6 +219,13 @@ library. They are also documented in the pcre2build man page. to be the end of a line (see above). However, the caller of PCRE2 can restrict \R to match only CR, LF, or CRLF. You can make this the default by adding --enable-bsr-anycrlf to the "configure" command (bsr = "backslash R"). + +. In a pattern, the escape sequence \C matches a single code unit, even in a + UTF mode. This can be dangerous because it breaks up multi-code-unit + characters. You can build PCRE2 with the use of \C permanently locked out by + adding --enable-never-backslash-C (note the upper case C) to the "configure" + command. When \C is allowed by the library, individual applications can lock + it out by calling pcre2_compile() with the PCRE2_NEVER_BACKSLASH_C option. . PCRE2 has a counter that limits the depth of nesting of parentheses in a pattern. This limits the amount of system stack that a pattern uses when it @@ -833,4 +840,4 @@ The distribution should contain the files listed below. Philip Hazel Email local part: ph10 Email domain: cam.ac.uk -Last updated: 16 July 2015 +Last updated: 16 October 2015 |