ICU-1749 update tests to use new API
X-SVN-Rev: 8546
This commit is contained in:
parent
faec7727ae
commit
6b058615b7
@ -870,18 +870,18 @@ void UnicodeSetTest::copyWithIterator(UnicodeSet& t, const UnicodeSet& s, UBool
|
||||
UnicodeSetIterator it(s);
|
||||
if (withRange) {
|
||||
while (it.nextRange()) {
|
||||
if (it.codepoint == UnicodeSetIterator::IS_STRING) {
|
||||
t.add(*it.string);
|
||||
if (it.isString()) {
|
||||
t.add(it.getString());
|
||||
} else {
|
||||
t.add(it.codepoint, it.codepointEnd);
|
||||
t.add(it.getCodepoint(), it.getCodepointEnd());
|
||||
}
|
||||
}
|
||||
} else {
|
||||
while (it.next()) {
|
||||
if (it.codepoint == UnicodeSetIterator::IS_STRING) {
|
||||
t.add(*it.string);
|
||||
if (it.isString()) {
|
||||
t.add(it.getString());
|
||||
} else {
|
||||
t.add(it.codepoint);
|
||||
t.add(it.getCodepoint());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user