Lines Matching refs:pair

947 CollationFastLatin::getSecondaries(uint32_t variableTop, uint32_t pair) {  in getSecondaries()  argument
948 if(pair <= 0xffff) { in getSecondaries()
950 if(pair >= MIN_SHORT) { in getSecondaries()
951 pair = getSecondariesFromOneShortCE(pair); in getSecondaries()
952 } else if(pair > variableTop) { in getSecondaries()
953 pair = COMMON_SEC_PLUS_OFFSET; in getSecondaries()
954 } else if(pair >= MIN_LONG) { in getSecondaries()
955 pair = 0; // variable in getSecondaries()
959 uint32_t ce = pair & 0xffff; in getSecondaries()
961 pair = (pair & TWO_SECONDARIES_MASK) + TWO_SEC_OFFSETS; in getSecondaries()
963 pair = TWO_COMMON_SEC_PLUS_OFFSET; in getSecondaries()
966 pair = 0; // variable in getSecondaries()
969 return pair; in getSecondaries()
973 CollationFastLatin::getCases(uint32_t variableTop, UBool strengthIsPrimary, uint32_t pair) { in getCases() argument
978 if(pair <= 0xffff) { in getCases()
980 if(pair >= MIN_SHORT) { in getCases()
983 uint32_t ce = pair; in getCases()
984 pair &= CASE_MASK; // explicit weight of primary CE in getCases()
986 pair |= LOWER_CASE << 16; // implied weight of secondary CE in getCases()
988 } else if(pair > variableTop) { in getCases()
989 pair = LOWER_CASE; in getCases()
990 } else if(pair >= MIN_LONG) { in getCases()
991 pair = 0; // variable in getCases()
996 uint32_t ce = pair & 0xffff; in getCases()
998 if(strengthIsPrimary && (pair & (SHORT_PRIMARY_MASK << 16)) == 0) { in getCases()
999 pair &= CASE_MASK; in getCases()
1001 pair &= TWO_CASES_MASK; in getCases()
1004 pair = TWO_LOWER_CASES; in getCases()
1007 pair = 0; // variable in getCases()
1010 return pair; in getCases()
1014 CollationFastLatin::getTertiaries(uint32_t variableTop, UBool withCaseBits, uint32_t pair) { in getTertiaries() argument
1015 if(pair <= 0xffff) { in getTertiaries()
1017 if(pair >= MIN_SHORT) { in getTertiaries()
1020 uint32_t ce = pair; in getTertiaries()
1022 pair = (pair & CASE_AND_TERTIARY_MASK) + TER_OFFSET; in getTertiaries()
1024 pair |= (LOWER_CASE | COMMON_TER_PLUS_OFFSET) << 16; in getTertiaries()
1027 pair = (pair & TERTIARY_MASK) + TER_OFFSET; in getTertiaries()
1029 pair |= COMMON_TER_PLUS_OFFSET << 16; in getTertiaries()
1032 } else if(pair > variableTop) { in getTertiaries()
1033 pair = (pair & TERTIARY_MASK) + TER_OFFSET; in getTertiaries()
1035 pair |= LOWER_CASE; in getTertiaries()
1037 } else if(pair >= MIN_LONG) { in getTertiaries()
1038 pair = 0; // variable in getTertiaries()
1043 uint32_t ce = pair & 0xffff; in getTertiaries()
1046 pair &= TWO_CASES_MASK | TWO_TERTIARIES_MASK; in getTertiaries()
1048 pair &= TWO_TERTIARIES_MASK; in getTertiaries()
1050 pair += TWO_TER_OFFSETS; in getTertiaries()
1052 pair = (pair & TWO_TERTIARIES_MASK) + TWO_TER_OFFSETS; in getTertiaries()
1054 pair |= TWO_LOWER_CASES; in getTertiaries()
1058 pair = 0; // variable in getTertiaries()
1061 return pair; in getTertiaries()
1065 CollationFastLatin::getQuaternaries(uint32_t variableTop, uint32_t pair) { in getQuaternaries() argument
1068 if(pair <= 0xffff) { in getQuaternaries()
1070 if(pair >= MIN_SHORT) { in getQuaternaries()
1073 if((pair & SECONDARY_MASK) >= MIN_SEC_HIGH) { in getQuaternaries()
1074 pair = TWO_SHORT_PRIMARIES_MASK; in getQuaternaries()
1076 pair = SHORT_PRIMARY_MASK; in getQuaternaries()
1078 } else if(pair > variableTop) { in getQuaternaries()
1079 pair = SHORT_PRIMARY_MASK; in getQuaternaries()
1080 } else if(pair >= MIN_LONG) { in getQuaternaries()
1081 pair &= LONG_PRIMARY_MASK; // variable in getQuaternaries()
1086 uint32_t ce = pair & 0xffff; in getQuaternaries()
1088 pair = TWO_SHORT_PRIMARIES_MASK; in getQuaternaries()
1091 pair &= TWO_LONG_PRIMARIES_MASK; // variable in getQuaternaries()
1094 return pair; in getQuaternaries()