summaryrefslogtreecommitdiff
path: root/testdata/testinput4
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-16 10:56:40 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2009-09-16 10:56:40 +0000
commit7692ae91e93e3734fb046e2e4edff761219a0cc1 (patch)
tree369d6b65041a01cfb4ccbbf66ba97e1142dcceca /testdata/testinput4
parent449311e326f1a3f26c39e5fbc241256ee9cf50ad (diff)
downloadpcre-7692ae91e93e3734fb046e2e4edff761219a0cc1.tar.gz
Minor doc fix; update tests by adding comments to each file, and generally
tidying. git-svn-id: svn://vcs.exim.org/pcre/code/trunk@450 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata/testinput4')
-rw-r--r--testdata/testinput427
1 files changed, 22 insertions, 5 deletions
diff --git a/testdata/testinput4 b/testdata/testinput4
index e5f6194..12f4c7e 100644
--- a/testdata/testinput4
+++ b/testdata/testinput4
@@ -1,7 +1,6 @@
-/-- Do not use the \x{} construct except with patterns that have the --/
-/-- /8 option set, because PCRE doesn't recognize them as UTF-8 unless --/
-/-- that option is set. However, the latest Perls recognize them always. --/
-
+/-- This set of tests if for UTF-8 support, excluding Unicode properties. It is
+ compatible with all versions of Perl 5. --/
+
/a.b/8
acb
a\x7fb
@@ -623,4 +622,22 @@
/(?i)[\xc3\xa9\xc3\xbd]|[\xc3\xa9\xc3\xbdA]/8
-/ End of testinput4 /
+/^[a\x{c0}]b/8
+ \x{c0}b
+
+/^([a\x{c0}]*?)aa/8
+ a\x{c0}aaaa/
+
+/^([a\x{c0}]*?)aa/8
+ a\x{c0}aaaa/
+ a\x{c0}a\x{c0}aaa/
+
+/^([a\x{c0}]*)aa/8
+ a\x{c0}aaaa/
+ a\x{c0}a\x{c0}aaa/
+
+/^([a\x{c0}]*)a\x{c0}/8
+ a\x{c0}aaaa/
+ a\x{c0}a\x{c0}aaa/
+
+/-- End of testinput4 --/