ICU-1749 update tests to use new API

X-SVN-Rev: 8546
This commit is contained in:
Alan Liu 2002-04-30 22:11:18 +00:00
parent faec7727ae
commit 6b058615b7

View File

@ -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());
}
}
}