65 #if !UCONFIG_NO_COLLATION
314 int32_t length)
const;
368 const UChar* target, int32_t targetLength)
388 const UChar* target, int32_t targetLength,
436 int32_t sourceLength,
445 virtual int32_t
hashCode(
void)
const;
484 int32_t getMaxExpansion(int32_t order)
const;
519 uint8_t *cloneRuleData(int32_t &length,
UErrorCode &status);
532 int32_t cloneBinary(uint8_t *buffer, int32_t capacity,
UErrorCode &status);
632 int32_t resultLength)
const;
647 uint8_t *result, int32_t resultLength)
const;
683 int32_t destCapacity,
697 int32_t reorderCodesLength,
718 int32_t destCapacity,
728 CHARINDEX = 0x70000000,
730 EXPANDCHARINDEX = 0x7E000000,
732 CONTRACTCHARINDEX = 0x7F000000,
734 UNMAPPED = 0xFFFFFFFF,
736 PRIMARYORDERINCREMENT = 0x00010000,
738 SECONDARYORDERINCREMENT = 0x00000100,
740 TERTIARYORDERINCREMENT = 0x00000001,
742 PRIMARYORDERMASK = 0xffff0000,
744 SECONDARYORDERMASK = 0x0000ff00,
746 TERTIARYORDERMASK = 0x000000ff,
748 IGNORABLEMASK = 0x0000ffff,
750 PRIMARYDIFFERENCEONLY = 0xffff0000,
752 SECONDARYDIFFERENCEONLY = 0xffffff00,
754 PRIMARYORDERSHIFT = 16,
756 SECONDARYORDERSHIFT = 8,
758 COLELEMENTSTART = 0x02020202,
760 PRIMARYLOWZEROMASK = 0x00FF0000,
762 RESETSECONDARYTERTIARY = 0x00000202,
764 RESETTERTIARY = 0x00000002,
766 PRIMIGNORABLE = 0x0202
773 UBool isWriteThroughAlias;
851 void setUCollator(
const char* locale,
UErrorCode& status);
882 void checkOwned(
void);
885 void setRuleStringFromCollator();
915 inline void RuleBasedCollator::setUCollator(
const Locale &locale,
918 setUCollator(locale.
getName(), status);
922 inline void RuleBasedCollator::setUCollator(
UCollator *collator)
925 if (ucollator && dataIsOwned) {
928 ucollator = collator;
930 isWriteThroughAlias =
TRUE;
931 setRuleStringFromCollator();
945 return Collator::LESS;
947 return Collator::EQUAL;
949 return Collator::GREATER;
959 return Collator::PRIMARY;
961 return Collator::SECONDARY;
963 return Collator::TERTIARY;
965 return Collator::QUATERNARY;
967 return Collator::IDENTICAL;
976 case Collator::PRIMARY :
978 case Collator::SECONDARY :
980 case Collator::TERTIARY :
982 case Collator::QUATERNARY :