mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-15 01:42:37 +00:00
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:
parent
0895d6cef5
commit
5f3b09164a
1 changed files with 14 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue