diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-03-08 17:24:02 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-03-08 17:24:02 +0000 |
commit | bda4463b94aca19bdd31e527c8b348f8fa3c7657 (patch) | |
tree | 9c45355b43c32e36d31729a665c79836ec10ccb8 /pcrecpp.h | |
parent | 2d6ec30227035d99946e622ed3ea3b4c26d415b3 (diff) | |
download | pcre-bda4463b94aca19bdd31e527c8b348f8fa3c7657.tar.gz |
Craig's patch to the QuoteMeta function in pcrecpp.cc so that it escapes the
NUL character as backslash + 0 rather than backslash + NUL, because PCRE
doesn't support NULs in patterns.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@326 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcrecpp.h')
-rw-r--r-- | pcrecpp.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -620,6 +620,9 @@ class PCRECPP_EXP_DEFN RE { // 1.5-2.0? // may become: // 1\.5\-2\.0\? + // Note QuoteMeta behaves the same as perl's QuoteMeta function, + // *except* that it escapes the NUL character (\0) as backslash + 0, + // rather than backslash + NUL. static string QuoteMeta(const StringPiece& unquoted); |