summaryrefslogtreecommitdiff
path: root/testdata/testinput4
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-27 16:59:56 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2014-08-27 16:59:56 +0000
commit34c7babae0ac0dc5394e0d84d38ab5f134c3d350 (patch)
tree7154d6e0431f212c17b71bf29a72177d145f8dc8 /testdata/testinput4
parent7734c878de90eeefd4dc85ac2605e4e4102b8972 (diff)
downloadpcre2-34c7babae0ac0dc5394e0d84d38ab5f134c3d350.tar.gz
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
Diffstat (limited to 'testdata/testinput4')
-rw-r--r--testdata/testinput421
1 files changed, 21 insertions, 0 deletions
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