ICU-3109 don't reorder at the end of the string

X-SVN-Rev: 12636
This commit is contained in:
Vladimir Weinstein 2003-07-16 22:36:55 +00:00
parent b12ab01059
commit fa42675bcf

View file

@ -1371,15 +1371,19 @@ public final class CollationElementIterator
return collator.m_expansion_[getExpansionOffset(collator, ce)];
}
else {
// swap the prevowel and the following char into the
// buffer with their order swapped
// buffer is always clean when we are in the source string
m_buffer_.append(nextChar());
m_buffer_.append(ch);
m_FCDLimit_ = m_source_.getIndex();
m_FCDStart_ = m_FCDLimit_ - 2;
m_bufferOffset_ = 0;
return IGNORABLE;
if(!isEnd()) {
// swap the prevowel and the following char into the
// buffer with their order swapped
// buffer is always clean when we are in the source string
m_buffer_.append(nextChar());
m_buffer_.append(ch);
m_FCDLimit_ = m_source_.getIndex();
m_FCDStart_ = m_FCDLimit_ - 2;
m_bufferOffset_ = 0;
return IGNORABLE;
} else {
return collator.m_expansion_[getExpansionOffset(collator, ce)];
}
}
}