ICU-5174 Fix the setupLatinOne method so that 0xb7 is correctly added to the latinone list. (This is a port from ICU4C)

X-SVN-Rev: 24507
This commit is contained in:
Michael Ow 2008-08-18 15:48:54 +00:00
parent 0895d6cef5
commit 5f3b09164a

View file

@ -4261,6 +4261,20 @@ public final class RuleBasedCollator extends Collator
} while(m_contractionIndex_[UCharOffset] != 0xFFFF);
}
break;
case CollationElementIterator.CE_SPEC_PROC_TAG_:
{
// 0xB7 is a precontext character defined in UCA5.1, a special
// handle is implemeted in order to save LatinOne table for
// most locales.
if (ch == 0xb7) {
addLatinOneEntry(ch, CE, s);
}
else {
latinOneFailed_ = true;
return false;
}
}
break;
default:
latinOneFailed_ = true;
return false;