summaryrefslogtreecommitdiff
path: root/testdata/testoutput4
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-02-06 18:11:36 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2019-02-06 18:11:36 +0000
commit03c006cfda40d5218d2248674ddc3824f8169897 (patch)
tree8bfb007e8adba8eb8e1256afba09001b52509905 /testdata/testoutput4
parent2aee0809b4ec6f9c2fdbb33a0c200b17a9fd333c (diff)
downloadpcre2-03c006cfda40d5218d2248674ddc3824f8169897.tar.gz
Allow non-ASCII in group names when UTF is set; revise group naming terminology
in documentation to use "capture group", as Perl does. git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@1066 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testoutput4')
-rw-r--r--testdata/testoutput437
1 files changed, 37 insertions, 0 deletions
diff --git a/testdata/testoutput4 b/testdata/testoutput4
index 1199885..84b8b9e 100644
--- a/testdata/testoutput4
+++ b/testdata/testoutput4
@@ -3975,4 +3975,41 @@ No match
# -------
+# Test group names containing non-ASCII letters and digits
+
+/(?'ABáC'...)\g{ABáC}/utf
+ abcabcdefg
+ 0: abcabc
+ 1: abc
+
+/(?'XʰABC'...)/utf
+ xyzpq
+ 0: xyz
+ 1: xyz
+
+/(?'XאABC'...)/utf
+ 12345
+ 0: 123
+ 1: 123
+
+/(?'XᾈABC'...)/utf
+ %^&*(...
+ 0: %^&
+ 1: %^&
+
+/(?'𐨐ABC'...)/utf
+ abcde
+ 0: abc
+ 1: abc
+
+/^(?'אABC'...)(?&אABC)(?P=אABC)/utf
+ 123123123456
+ 0: 123123123
+ 1: 123
+
+/^(?'אABC'...)(?&אABC)/utf
+ 123123123456
+ 0: 123123
+ 1: 123
+
# End of testinput4