From 34c7babae0ac0dc5394e0d84d38ab5f134c3d350 Mon Sep 17 00:00:00 2001 From: ph10 Date: Wed, 27 Aug 2014 16:59:56 +0000 Subject: Refactor match_ref() and fix UTF-8 caseless bug. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@63 6239d852-aaf2-0410-a92c-79f79f948069 --- testdata/testinput4 | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'testdata/testinput4') diff --git a/testdata/testinput4 b/testdata/testinput4 index 873d5fa..e121058 100644 --- a/testdata/testinput4 +++ b/testdata/testinput4 @@ -2194,5 +2194,26 @@ /^s?c/im,utf scat + +# The next four tests are for repeated caseless back references when the +# code unit length of the matched text is different to that of the original +# group in the UTF-8 case. + +/^(\x{23a})\1*(.)/i,utf + \x{23a}\x{23a}\x{23a}\x{23a} + \x{23a}\x{2c65}\x{2c65}\x{2c65} + \x{23a}\x{23a}\x{2c65}\x{23a} + +/^(\x{23a})\1*(..)/i,utf + \x{23a}\x{2c65}\x{2c65}\x{2c65} + \x{23a}\x{23a}\x{2c65}\x{23a} + +/^(\x{23a})\1*(...)/i,utf + \x{23a}\x{2c65}\x{2c65}\x{2c65} + \x{23a}\x{23a}\x{2c65}\x{23a} + +/^(\x{23a})\1*(....)/i,utf + \x{23a}\x{2c65}\x{2c65}\x{2c65} + \x{23a}\x{23a}\x{2c65}\x{23a} # End of testinput4 -- cgit v1.2.1