ICU-96 Removed RuleBasedCollator::getUnicodeOrder().

X-SVN-Rev: 372
This commit is contained in:
Helena Chapman 1999-12-10 18:53:45 +00:00
parent fb9d6d6e04
commit 80bf06949d
4 changed files with 11 additions and 17 deletions

View file

@ -27,6 +27,9 @@
#include "tables.h"
#include "normlzr.h"
#include "unicode.h"
#include "tcoldata.h"
#include "ucmp32.h"
int32_t const CollationElementIterator::NULLORDER = 0xffffffff;
int32_t const CollationElementIterator::UNMAPPEDCHARVALUE = 0x7fff0000;
@ -333,7 +336,9 @@ CollationElementIterator::next(UErrorCode& status)
}
// Ask the collator for this character's ordering.
int32_t value = orderAlias->getUnicodeOrder(ch);
/* Used to be RuleBasedCollator.getUnicodeOrder(). It
can't be inlined in tblcoll.h file unfortunately. */
int32_t value = ucmp32_get(orderAlias->data->mapping, ch);
if (value == RuleBasedCollator::UNMAPPED)
{
@ -399,8 +404,9 @@ CollationElementIterator::previous(UErrorCode& status)
{
return NULLORDER;
}
int32_t value = orderAlias->getUnicodeOrder(ch);
/* Used to be RuleBasedCollator.getUnicodeOrder(). It
can't be inlined in tblcoll.h file unfortunately. */
int32_t value = ucmp32_get(orderAlias->data->mapping, ch);
if (value == RuleBasedCollator::UNMAPPED)
{

View file

@ -136,13 +136,6 @@ char RuleBasedCollator::fgClassID = 0; // Value is irrelevant // class id
//================ Some inline definitions of implementation functions........ ========
// Get the character order in the mapping table
inline int32_t
RuleBasedCollator::getUnicodeOrder(UChar ch) const
{
return ucmp32_get(data->mapping, ch);
}
inline int32_t
RuleBasedCollator::strengthOrder(int32_t value) const
{
@ -211,7 +204,7 @@ RuleBasedCollator::getStrengthOrder(NormalizerIterator* cursor,
return CollationElementIterator::NULLORDER;
}
// Ask the collator for this character's ordering.
int32_t value = getUnicodeOrder(ch);
int32_t value = ucmp32_get(data->mapping, ch);
if (value == UNMAPPED)
{

View file

@ -656,12 +656,6 @@ private:
* the list.
*/
VectorOfInt* getExpandValueList(int32_t order) const;
/**
* Gets the comarison order of a character from the collation table.
* @param ch the Unicode character
* @return the comparison order of a character.
*/
int32_t getUnicodeOrder(UChar ch) const;
/**
* Gets the comarison order of a character from the collation table.

View file

@ -115,6 +115,7 @@ private:
* to change, although this is not really advised.
*/
friend class RuleBasedCollator;
friend class CollationElementIterator;
bool_t isFrenchSec;
int16_t maxSecOrder;