summaryrefslogtreecommitdiff
path: root/testdata
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-19 18:32:18 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2011-11-19 18:32:18 +0000
commit8f0ed27a10ee3efb8b11a044637144fb8fc6641f (patch)
treec74caa3f756e12f475c840392d507a89bcfe8bc8 /testdata
parent8e93f278ded1ac082d15af60dcf24fc6a8d2a672 (diff)
downloadpcre-8f0ed27a10ee3efb8b11a044637144fb8fc6641f.tar.gz
Support \C in lookbehinds and DFA matching when not in UTF-8 mode.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@754 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r--testdata/testinput113
-rw-r--r--testdata/testinput22
-rw-r--r--testdata/testinput43
-rw-r--r--testdata/testinput76
-rw-r--r--testdata/testinput85
-rw-r--r--testdata/testoutput118
-rw-r--r--testdata/testoutput23
-rw-r--r--testdata/testoutput44
-rw-r--r--testdata/testoutput78
-rw-r--r--testdata/testoutput87
10 files changed, 69 insertions, 0 deletions
diff --git a/testdata/testinput1 b/testdata/testinput1
index 61fd20b..36d7028 100644
--- a/testdata/testinput1
+++ b/testdata/testinput1
@@ -4305,4 +4305,17 @@
** Failers
aaaaaa
+/ab\Cde/
+ abXde
+
+/(?<=ab\Cde)X/
+ abZdeX
+
+/a[\CD]b/
+ aCb
+ aDb
+
+/a[\C-X]b/
+ aJb
+
/-- End of testinput1 --/
diff --git a/testdata/testinput2 b/testdata/testinput2
index 61bbeba..b673fef 100644
--- a/testdata/testinput2
+++ b/testdata/testinput2
@@ -4007,4 +4007,6 @@ AbcdCBefgBhiBqz
/(?(?=c)c|d)*+Y/BZ
+/(?<=ab\Cde)X/8
+
/-- End of testinput2 --/
diff --git a/testdata/testinput4 b/testdata/testinput4
index 6a04f6a..b339f71 100644
--- a/testdata/testinput4
+++ b/testdata/testinput4
@@ -650,4 +650,7 @@
/(abc)\1/8
abc
+/ab\Cde/8
+ abXde
+
/-- End of testinput4 --/
diff --git a/testdata/testinput7 b/testdata/testinput7
index fd6a942..3ad201e 100644
--- a/testdata/testinput7
+++ b/testdata/testinput7
@@ -4703,4 +4703,10 @@
\O6aaaa
\O8aaaa
+/ab\Cde/
+ abXde
+
+/(?<=ab\Cde)X/
+ abZdeX
+
/-- End of testinput7 --/
diff --git a/testdata/testinput8 b/testdata/testinput8
index 55d2fd3..fc05761 100644
--- a/testdata/testinput8
+++ b/testdata/testinput8
@@ -700,4 +700,9 @@
a\x{123}aa\>5
a\x{123}aa\>6
+/ab\Cde/8
+ abXde
+
+/(?<=ab\Cde)X/8
+
/-- End of testinput8 --/
diff --git a/testdata/testoutput1 b/testdata/testoutput1
index 2557fe2..bc237ab 100644
--- a/testdata/testoutput1
+++ b/testdata/testoutput1
@@ -7035,4 +7035,22 @@ No match
aaaaaa
No match
+/ab\Cde/
+ abXde
+ 0: abXde
+
+/(?<=ab\Cde)X/
+ abZdeX
+ 0: X
+
+/a[\CD]b/
+ aCb
+ 0: aCb
+ aDb
+ 0: aDb
+
+/a[\C-X]b/
+ aJb
+ 0: aJb
+
/-- End of testinput1 --/
diff --git a/testdata/testoutput2 b/testdata/testoutput2
index 58874a7..417225a 100644
--- a/testdata/testoutput2
+++ b/testdata/testoutput2
@@ -12591,4 +12591,7 @@ No match
End
------------------------------------------------------------------
+/(?<=ab\Cde)X/8
+Failed: \C not allowed in lookbehind assertion at offset 10
+
/-- End of testinput2 --/
diff --git a/testdata/testoutput4 b/testdata/testoutput4
index 00f3673..2f1b4fd 100644
--- a/testdata/testoutput4
+++ b/testdata/testoutput4
@@ -1136,4 +1136,8 @@ No match
abc
No match
+/ab\Cde/8
+ abXde
+ 0: abXde
+
/-- End of testinput4 --/
diff --git a/testdata/testoutput7 b/testdata/testoutput7
index 21107d4..f8eb18d 100644
--- a/testdata/testoutput7
+++ b/testdata/testoutput7
@@ -7858,4 +7858,12 @@ Matched, but too many subsidiary matches
2: aa
3: a
+/ab\Cde/
+ abXde
+ 0: abXde
+
+/(?<=ab\Cde)X/
+ abZdeX
+ 0: X
+
/-- End of testinput7 --/
diff --git a/testdata/testoutput8 b/testdata/testoutput8
index 737226f..0c569b3 100644
--- a/testdata/testoutput8
+++ b/testdata/testoutput8
@@ -1348,4 +1348,11 @@ No match
a\x{123}aa\>6
Error -24 (bad offset value)
+/ab\Cde/8
+ abXde
+Error -16 (item unsupported for DFA matching)
+
+/(?<=ab\Cde)X/8
+Failed: \C not allowed in lookbehind assertion at offset 10
+
/-- End of testinput8 --/