summaryrefslogtreecommitdiff
path: root/testdata/testoutput5
diff options
context:
space:
mode:
authorph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-10-07 17:32:48 +0000
committerph10 <ph10@6239d852-aaf2-0410-a92c-79f79f948069>2015-10-07 17:32:48 +0000
commitb9767385613465996f391fc94f21b1e6008a930a (patch)
treed53f75b99dc01736e93241f797cb2235d80c0bb6 /testdata/testoutput5
parent921d9897c86af3cd0991bf3a63bdde06eea6bea7 (diff)
downloadpcre2-b9767385613465996f391fc94f21b1e6008a930a.tar.gz
Implement PCRE2_SUBSTITUTE_EXTENDED.
git-svn-id: svn://vcs.exim.org/pcre2/code/trunk@381 6239d852-aaf2-0410-a92c-79f79f948069
Diffstat (limited to 'testdata/testoutput5')
-rw-r--r--testdata/testoutput514
1 files changed, 12 insertions, 2 deletions
diff --git a/testdata/testoutput5 b/testdata/testoutput5
index bf652df..2b4e535 100644
--- a/testdata/testoutput5
+++ b/testdata/testoutput5
@@ -4026,11 +4026,21 @@ No match
=
0: =
-# UTF tests
-
/(*:a\x{12345}b\t(d\)c)xxx/utf,alt_verbnames,mark
cxxxz
0: xxx
MK: a\x{12345}b\x{09}(d)c
+/abcd/utf,replace=x\x{824}y\o{3333}z(\Q12\$34$$\x34\E5$$),substitute_extended
+ abcd
+ 1: x\x{824}y\x{6db}z(12\$34$$\x345$)
+
+/a(\x{e0}\x{101})(\x{c0}\x{102})/utf,replace=a\u$1\U$1\E$1\l$2\L$2\Eab\U\x{e0}\x{101}\L\x{d0}\x{160}\EDone,substitute_extended
+ a\x{e0}\x{101}\x{c0}\x{102}
+ 1: a\x{c0}\x{101}\x{c0}\x{100}\x{e0}\x{101}\x{e0}\x{102}\x{e0}\x{103}ab\x{c0}\x{100}\x{f0}\x{161}Done
+
+/((?<digit>\d)|(?<letter>\p{L}))/g,substitute_extended,replace=<${digit:+digit; :not digit; }${letter:+letter:not a letter}>
+ ab12cde
+ 7: <not digit; letter><not digit; letter><digit; not a letter><digit; not a letter><not digit; letter><not digit; letter><not digit; letter>
+
# End of testinput5