diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-11-20 17:34:16 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2015-11-20 17:34:16 +0000 |
commit | cc97428733afa4374b180ae8261852f60cb61de2 (patch) | |
tree | 06cc29cc3201351b99850e8fa8e72b04c65b0d83 /testdata | |
parent | 0358b7127db0d2ad71cfc27be34cb5fdd5e9a76a (diff) | |
download | pcre-cc97428733afa4374b180ae8261852f60cb61de2.tar.gz |
Fix wide character bug for some negative POSIX classes.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@1608 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/testinput6 | 44 | ||||
-rw-r--r-- | testdata/testoutput11-16 | 16 | ||||
-rw-r--r-- | testdata/testoutput11-32 | 16 | ||||
-rw-r--r-- | testdata/testoutput11-8 | 16 | ||||
-rw-r--r-- | testdata/testoutput6 | 78 | ||||
-rw-r--r-- | testdata/testoutput7 | 4 |
6 files changed, 148 insertions, 26 deletions
diff --git a/testdata/testinput6 b/testdata/testinput6 index 8aee0d0..aeb62a0 100644 --- a/testdata/testinput6 +++ b/testdata/testinput6 @@ -1509,4 +1509,48 @@ \xc2\xb4 \x{b4} +/[[:^ascii:]]/8W + \x{100} + \x{200} + \x{300} + \x{37e} + a + 9 + g + +/[[:^ascii:]\w]/8W + a + 9 + g + \x{100} + \x{200} + \x{300} + \x{37e} + +/[\w[:^ascii:]]/8W + a + 9 + g + \x{100} + \x{200} + \x{300} + \x{37e} + +/[^[:ascii:]\W]/8W + a + 9 + g + \x{100} + \x{200} + \x{300} + \x{37e} + +/[[:^ascii:]a]/8W + a + 9 + g + \x{100} + \x{200} + \x{37e} + /-- End of testinput6 --/ diff --git a/testdata/testoutput11-16 b/testdata/testoutput11-16 index 87acadd..9a0a12d 100644 --- a/testdata/testoutput11-16 +++ b/testdata/testoutput11-16 @@ -650,18 +650,18 @@ Memory allocation (code space): 14 /[[:^alpha:][:^cntrl:]]+/8WB ------------------------------------------------------------------ - 0 26 Bra - 2 [ -~\x80-\xff\P{L}]++ - 26 26 Ket - 28 End + 0 30 Bra + 2 [ -~\x80-\xff\P{L}\x{100}-\x{10ffff}]++ + 30 30 Ket + 32 End ------------------------------------------------------------------ /[[:^cntrl:][:^alpha:]]+/8WB ------------------------------------------------------------------ - 0 26 Bra - 2 [ -~\x80-\xff\P{L}]++ - 26 26 Ket - 28 End + 0 30 Bra + 2 [ -~\x80-\xff\x{100}-\x{10ffff}\P{L}]++ + 30 30 Ket + 32 End ------------------------------------------------------------------ /[[:alpha:]]+/8WB diff --git a/testdata/testoutput11-32 b/testdata/testoutput11-32 index 325fedb..57e5da0 100644 --- a/testdata/testoutput11-32 +++ b/testdata/testoutput11-32 @@ -650,18 +650,18 @@ Memory allocation (code space): 28 /[[:^alpha:][:^cntrl:]]+/8WB ------------------------------------------------------------------ - 0 18 Bra - 2 [ -~\x80-\xff\P{L}]++ - 18 18 Ket - 20 End + 0 21 Bra + 2 [ -~\x80-\xff\P{L}\x{100}-\x{10ffff}]++ + 21 21 Ket + 23 End ------------------------------------------------------------------ /[[:^cntrl:][:^alpha:]]+/8WB ------------------------------------------------------------------ - 0 18 Bra - 2 [ -~\x80-\xff\P{L}]++ - 18 18 Ket - 20 End + 0 21 Bra + 2 [ -~\x80-\xff\x{100}-\x{10ffff}\P{L}]++ + 21 21 Ket + 23 End ------------------------------------------------------------------ /[[:alpha:]]+/8WB diff --git a/testdata/testoutput11-8 b/testdata/testoutput11-8 index b1a4a90..748548a 100644 --- a/testdata/testoutput11-8 +++ b/testdata/testoutput11-8 @@ -650,18 +650,18 @@ Memory allocation (code space): 10 /[[:^alpha:][:^cntrl:]]+/8WB ------------------------------------------------------------------ - 0 44 Bra - 3 [ -~\x80-\xff\P{L}]++ - 44 44 Ket - 47 End + 0 51 Bra + 3 [ -~\x80-\xff\P{L}\x{100}-\x{10ffff}]++ + 51 51 Ket + 54 End ------------------------------------------------------------------ /[[:^cntrl:][:^alpha:]]+/8WB ------------------------------------------------------------------ - 0 44 Bra - 3 [ -~\x80-\xff\P{L}]++ - 44 44 Ket - 47 End + 0 51 Bra + 3 [ -~\x80-\xff\x{100}-\x{10ffff}\P{L}]++ + 51 51 Ket + 54 End ------------------------------------------------------------------ /[[:alpha:]]+/8WB diff --git a/testdata/testoutput6 b/testdata/testoutput6 index 196f993..beb85aa 100644 --- a/testdata/testoutput6 +++ b/testdata/testoutput6 @@ -2479,4 +2479,82 @@ No match \x{b4} No match +/[[:^ascii:]]/8W + \x{100} + 0: \x{100} + \x{200} + 0: \x{200} + \x{300} + 0: \x{300} + \x{37e} + 0: \x{37e} + a +No match + 9 +No match + g +No match + +/[[:^ascii:]\w]/8W + a + 0: a + 9 + 0: 9 + g + 0: g + \x{100} + 0: \x{100} + \x{200} + 0: \x{200} + \x{300} + 0: \x{300} + \x{37e} + 0: \x{37e} + +/[\w[:^ascii:]]/8W + a + 0: a + 9 + 0: 9 + g + 0: g + \x{100} + 0: \x{100} + \x{200} + 0: \x{200} + \x{300} + 0: \x{300} + \x{37e} + 0: \x{37e} + +/[^[:ascii:]\W]/8W + a +No match + 9 +No match + g +No match + \x{100} + 0: \x{100} + \x{200} + 0: \x{200} + \x{300} +No match + \x{37e} +No match + +/[[:^ascii:]a]/8W + a + 0: a + 9 +No match + g +No match + \x{100} + 0: \x{100} + \x{200} + 0: \x{200} + \x{37e} + 0: \x{37e} + /-- End of testinput6 --/ diff --git a/testdata/testoutput7 b/testdata/testoutput7 index a05b381..cc9ebdd 100644 --- a/testdata/testoutput7 +++ b/testdata/testoutput7 @@ -949,7 +949,7 @@ No match /[[:^alpha:][:^cntrl:]]+/8WBZ ------------------------------------------------------------------ Bra - [ -~\x80-\xff\P{L}]++ + [ -~\x80-\xff\P{L}\x{100}-\x{10ffff}]++ Ket End ------------------------------------------------------------------ @@ -961,7 +961,7 @@ No match /[[:^cntrl:][:^alpha:]]+/8WBZ ------------------------------------------------------------------ Bra - [ -~\x80-\xff\P{L}]++ + [ -~\x80-\xff\x{100}-\x{10ffff}\P{L}]++ Ket End ------------------------------------------------------------------ |