ICU-4058 add test for reported odd UnicodeSet behavior with $. Working as designed, but design may want to change.
X-SVN-Rev: 18475
This commit is contained in:
parent
f9555fcca8
commit
35039f1737
11
icu4c/source/test/testdata/regextst.txt
vendored
11
icu4c/source/test/testdata/regextst.txt
vendored
@ -507,6 +507,17 @@
|
|||||||
"\w+" "<0>イチロー</0>"
|
"\w+" "<0>イチロー</0>"
|
||||||
"\b....\b." "<0>イチロー?</0>"
|
"\b....\b." "<0>イチロー?</0>"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bug 4058 ICU Unicode Set patterns have an odd feature -
|
||||||
|
# A $ as the last character before the close bracket means match
|
||||||
|
# a \uffff, which means off the end of the string in transliterators.
|
||||||
|
# Doesn't make much sense for regex, but works that way anyhow.
|
||||||
|
#
|
||||||
|
"[\$](P|C|D);" "<0>$<1>P</1>;</0>"
|
||||||
|
"[$](P|C|D);" "<0>\uffff<1>P</1>;</0>"
|
||||||
|
"[$](P|C|D);" "$P;"
|
||||||
|
"[$$](P|C|D);" "<0>$<1>P</1>;</0>"
|
||||||
|
|
||||||
#
|
#
|
||||||
# Random debugging, Temporary
|
# Random debugging, Temporary
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user