summaryrefslogtreecommitdiff
path: root/pcrecpp.h
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-03-08 17:24:02 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-03-08 17:24:02 +0000
commitbda4463b94aca19bdd31e527c8b348f8fa3c7657 (patch)
tree9c45355b43c32e36d31729a665c79836ec10ccb8 /pcrecpp.h
parent2d6ec30227035d99946e622ed3ea3b4c26d415b3 (diff)
downloadpcre-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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/pcrecpp.h b/pcrecpp.h
index a4638e1..a87a816 100644
--- a/pcrecpp.h
+++ b/pcrecpp.h
@@ -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);