summaryrefslogtreecommitdiff
path: root/ext/pcre/pcrelib/testdata/testinput4
diff options
context:
space:
mode:
authorAndrei Zmievski <andrei@php.net>2002-10-15 13:59:58 +0000
committerAndrei Zmievski <andrei@php.net>2002-10-15 13:59:58 +0000
commitc65c18269302de59e7b657bce2e30b2726935d73 (patch)
tree168fe26908b277d60d539ca10474e43a5c47b242 /ext/pcre/pcrelib/testdata/testinput4
parentb4348434be0c5e94cc09ba342660c81e0fc416bb (diff)
downloadphp-git-c65c18269302de59e7b657bce2e30b2726935d73.tar.gz
Upgrade to version 3.92.
Diffstat (limited to 'ext/pcre/pcrelib/testdata/testinput4')
-rw-r--r--ext/pcre/pcrelib/testdata/testinput4178
1 files changed, 134 insertions, 44 deletions
diff --git a/ext/pcre/pcrelib/testdata/testinput4 b/ext/pcre/pcrelib/testdata/testinput4
index f2878965f6..51d6b97632 100644
--- a/ext/pcre/pcrelib/testdata/testinput4
+++ b/ext/pcre/pcrelib/testdata/testinput4
@@ -1,65 +1,155 @@
-/^[\w]+/
+/-- 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. --/
+
+/a.b/8
+ acb
+ a\x7fb
+ a\x{100}b
*** Failers
- École
+ a\nb
-/^[\w]+/Lfr
- École
-
-/^[\w]+/
+/a(.{3})b/8
+ a\x{4000}xyb
+ a\x{4000}\x7fyb
+ a\x{4000}\x{100}yb
*** Failers
- École
+ a\x{4000}b
+ ac\ncb
-/^[\W]+/
- École
+/a(.*?)(.)/
+ a\xc0\x88b
-/^[\W]+/Lfr
- *** Failers
- École
+/a(.*?)(.)/8
+ a\x{100}b
-/[\b]/
- \b
- *** Failers
- a
+/a(.*)(.)/
+ a\xc0\x88b
-/[\b]/Lfr
- \b
- *** Failers
- a
+/a(.*)(.)/8
+ a\x{100}b
-/^\w+/
- *** Failers
- École
+/a(.)(.)/
+ a\xc0\x92bcd
-/^\w+/Lfr
- École
+/a(.)(.)/8
+ a\x{240}bcd
-/(.+)\b(.+)/
- École
+/a(.?)(.)/
+ a\xc0\x92bcd
-/(.+)\b(.+)/Lfr
- *** Failers
- École
+/a(.?)(.)/8
+ a\x{240}bcd
+
+/a(.??)(.)/
+ a\xc0\x92bcd
+
+/a(.??)(.)/8
+ a\x{240}bcd
-/École/i
- École
+/a(.{3})b/8
+ a\x{1234}xyb
+ a\x{1234}\x{4321}yb
+ a\x{1234}\x{4321}\x{3412}b
*** Failers
- école
+ a\x{1234}b
+ ac\ncb
+
+/a(.{3,})b/8
+ a\x{1234}xyb
+ a\x{1234}\x{4321}yb
+ a\x{1234}\x{4321}\x{3412}b
+ axxxxbcdefghijb
+ a\x{1234}\x{4321}\x{3412}\x{3421}b
+ *** Failers
+ a\x{1234}b
+
+/a(.{3,}?)b/8
+ a\x{1234}xyb
+ a\x{1234}\x{4321}yb
+ a\x{1234}\x{4321}\x{3412}b
+ axxxxbcdefghijb
+ a\x{1234}\x{4321}\x{3412}\x{3421}b
+ *** Failers
+ a\x{1234}b
+
+/a(.{3,5})b/8
+ a\x{1234}xyb
+ a\x{1234}\x{4321}yb
+ a\x{1234}\x{4321}\x{3412}b
+ axxxxbcdefghijb
+ a\x{1234}\x{4321}\x{3412}\x{3421}b
+ axbxxbcdefghijb
+ axxxxxbcdefghijb
+ *** Failers
+ a\x{1234}b
+ axxxxxxbcdefghijb
+
+/a(.{3,5}?)b/8
+ a\x{1234}xyb
+ a\x{1234}\x{4321}yb
+ a\x{1234}\x{4321}\x{3412}b
+ axxxxbcdefghijb
+ a\x{1234}\x{4321}\x{3412}\x{3421}b
+ axbxxbcdefghijb
+ axxxxxbcdefghijb
+ *** Failers
+ a\x{1234}b
+ axxxxxxbcdefghijb
-/École/iLfr
- École
- école
+/^[a\x{c0}]/8
+ *** Failers
+ \x{100}
-/\w/IS
+/(?<=aXb)cd/8
+ aXbcd
-/\w/ISLfr
+/(?<=a\x{100}b)cd/8
+ a\x{100}bcd
-/^[\xc8-\xc9]/iLfr
- École
- école
+/(?<=a\x{100000}b)cd/8
+ a\x{100000}bcd
+
+/(?:\x{100}){3}b/8
+ \x{100}\x{100}\x{100}b
+ *** Failers
+ \x{100}\x{100}b
-/^[\xc8-\xc9]/Lfr
- École
+/\x{ab}/8
+ \x{ab}
+ \xc2\xab
*** Failers
- école
+ \x00{ab}
+
+/(?<=(.))X/8
+ WXYZ
+ \x{256}XYZ
+ *** Failers
+ XYZ
+
+/X(\C{3})/8
+ X\x{1234}
+
+/X(\C{4})/8
+ X\x{1234}YZ
+
+/X\C*/8
+ XYZabcdce
+
+/X\C*?/8
+ XYZabcde
+
+/X\C{3,5}/8
+ Xabcdefg
+ X\x{1234}
+ X\x{1234}YZ
+ X\x{1234}\x{512}
+ X\x{1234}\x{512}YZ
+
+/X\C{3,5}?/8
+ Xabcdefg
+ X\x{1234}
+ X\x{1234}YZ
+ X\x{1234}\x{512}
/ End of testinput4 /