ICU-9476 changed logic slightly to make it similar to C implementation

X-SVN-Rev: 32308
This commit is contained in:
Debabrata Sengupta 2012-08-31 19:34:31 +00:00
parent 79a59bfdef
commit c5abb42b6a

View File

@ -1929,11 +1929,15 @@ public final class CollationElementIterator
// we need to do a "front patch" we don't have to
// check to see if we're hitting the last element.
if (trailingZeroIndex != 0) {
collateVal = digVal * 10;
if (collateVal == 0) {
if (trailingZeroIndex != 0) {
trailingZeroIndex = (digIndx >>> 1) + 2;
}
} else {
trailingZeroIndex = 0;
}
collateVal = digVal * 10;
m_utilStringBuffer_.setCharAt((digIndx >>> 1) + 2,
(char)((collateVal << 1) + 6));
}