From 4ea71d47b6608e27759ebc39359c980d788db68a Mon Sep 17 00:00:00 2001 From: ph10 Date: Wed, 26 Feb 2020 16:53:39 +0000 Subject: Fix bugs in new UCP casing code for back references and characters with more than 2 cases. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1231 6239d852-aaf2-0410-a92c-79f79f948069 --- testdata/testinput12 | 14 ++++++++++++++ testdata/testinput5 | 3 +++ testdata/testoutput12-16 | 18 ++++++++++++++++++ testdata/testoutput12-32 | 18 ++++++++++++++++++ testdata/testoutput5 | 5 +++++ 5 files changed, 58 insertions(+) (limited to 'testdata') diff --git a/testdata/testinput12 b/testdata/testinput12 index fbfacc5..9b4f8d3 100644 --- a/testdata/testinput12 +++ b/testdata/testinput12 @@ -530,6 +530,20 @@ /X(\x{121})Y/ucp,replace=>\U$1<,substitute_extended X\x{121}Y +/s/i,ucp + \x{17f} + +/s/i,utf + \x{17f} + +/[^s]/i,ucp +\= Expect no match + \x{17f} + +/[^s]/i,utf +\= Expect no match + \x{17f} + # ---------------------------------------------------- # End of testinput12 diff --git a/testdata/testinput5 b/testdata/testinput5 index b3fcfef..ecac178 100644 --- a/testdata/testinput5 +++ b/testdata/testinput5 @@ -2181,4 +2181,7 @@ /(|ß)7/caseless,ucp +/(\xc1)\1/i,ucp + \xc1\xe1\=no_jit + # End of testinput5 diff --git a/testdata/testoutput12-16 b/testdata/testoutput12-16 index 9689ab1..84c4858 100644 --- a/testdata/testoutput12-16 +++ b/testdata/testoutput12-16 @@ -1761,6 +1761,24 @@ Subject length lower bound = 1 X\x{121}Y 1: >\x{120}< +/s/i,ucp + \x{17f} + 0: \x{17f} + +/s/i,utf + \x{17f} + 0: \x{17f} + +/[^s]/i,ucp +\= Expect no match + \x{17f} +No match + +/[^s]/i,utf +\= Expect no match + \x{17f} +No match + # ---------------------------------------------------- # End of testinput12 diff --git a/testdata/testoutput12-32 b/testdata/testoutput12-32 index c51c517..03b6e39 100644 --- a/testdata/testoutput12-32 +++ b/testdata/testoutput12-32 @@ -1759,6 +1759,24 @@ Subject length lower bound = 1 X\x{121}Y 1: >\x{120}< +/s/i,ucp + \x{17f} + 0: \x{17f} + +/s/i,utf + \x{17f} + 0: \x{17f} + +/[^s]/i,ucp +\= Expect no match + \x{17f} +No match + +/[^s]/i,utf +\= Expect no match + \x{17f} +No match + # ---------------------------------------------------- # End of testinput12 diff --git a/testdata/testoutput5 b/testdata/testoutput5 index 5bdf873..2ff8516 100644 --- a/testdata/testoutput5 +++ b/testdata/testoutput5 @@ -4940,4 +4940,9 @@ Subject length lower bound = 3 /(|ß)7/caseless,ucp +/(\xc1)\1/i,ucp + \xc1\xe1\=no_jit + 0: \xc1\xe1 + 1: \xc1 + # End of testinput5 -- cgit v1.2.1