mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-09 07:22:11 +00:00
ICU-9139 Fix non-ASCII characters in regextst.cpp
X-SVN-Rev: 31540
This commit is contained in:
parent
58a11c2260
commit
b36054b80b
1 changed files with 2 additions and 2 deletions
|
@ -573,9 +573,9 @@ void RegexTest::Basic() {
|
|||
UParseError pe;
|
||||
UErrorCode status = U_ZERO_ERROR;
|
||||
RegexPattern *pattern;
|
||||
pattern = RegexPattern::compile("aßx", UREGEX_CASE_INSENSITIVE, pe, status);
|
||||
pattern = RegexPattern::compile(UNICODE_STRING_SIMPLE("a\\u00dfx").unescape(), UREGEX_CASE_INSENSITIVE, pe, status);
|
||||
RegexPatternDump(pattern);
|
||||
RegexMatcher *m = pattern->matcher("aßxzzz", status);
|
||||
RegexMatcher *m = pattern->matcher(UNICODE_STRING_SIMPLE("a\\u00dfxzzz").unescape(), status);
|
||||
UBool result = m->find();
|
||||
printf("result = %d\n", result);
|
||||
// REGEX_FIND("", "<0>ab<1>cc</1><2>ccc</2></0>ddd");
|
||||
|
|
Loading…
Add table
Reference in a new issue