Lines Matching refs:U_ASSERT
297 U_ASSERT(!str.isEmpty()); in addReset()
302 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset()
320 U_ASSERT(UCOL_PRIMARY <= strength && strength <= UCOL_TERTIARY); in addReset()
387 U_ASSERT(weight16 > Collation::BEFORE_WEIGHT16); in addReset()
399 U_ASSERT(weight16 >= Collation::COMMON_WEIGHT16 || i == previousIndex); in addReset()
440 U_ASSERT(strengthFromNode(node) < level || !isTailoredNode(node)); in getWeight16Before()
476 U_ASSERT((weight16 & ~Collation::ONLY_TERTIARY_MASK) == 0); in getWeight16Before()
484 U_ASSERT(str.length() == 2); in getSpecialResetPosition()
489 U_ASSERT(0 <= pos && pos <= CollationRuleParser::LAST_TRAILING); in getSpecialResetPosition()
504 U_ASSERT(strengthFromNode(node) <= UCOL_TERTIARY); in getSpecialResetPosition()
529 U_ASSERT(isTailoredNode(nodes.elementAti(index))); in getSpecialResetPosition()
598 U_ASSERT(isTailoredNode(node)); in getSpecialResetPosition()
601 U_ASSERT(strength == UCOL_PRIMARY); in getSpecialResetPosition()
621 U_ASSERT(isTailoredNode(nodes.elementAti(index))); in getSpecialResetPosition()
699 U_ASSERT(cesLength > 0); in addRelation()
765 U_ASSERT(UCOL_PRIMARY <= strength && strength <= UCOL_QUATERNARY); in findOrInsertNodeForCEs()
799 U_ASSERT((uint8_t)(ce >> 56) != Collation::UNASSIGNED_IMPLICIT_BYTE); in findOrInsertNodeForRootCE()
804 U_ASSERT((ce & 0xc0) == 0); in findOrInsertNodeForRootCE()
874 U_ASSERT(0 <= index && index < nodes.size()); in findOrInsertWeakNode()
875 U_ASSERT(UCOL_SECONDARY <= level && level <= UCOL_TERTIARY); in findOrInsertWeakNode()
884 U_ASSERT(strengthFromNode(node) < level); // parent node is stronger in findOrInsertWeakNode()
941 U_ASSERT(0 <= index && index < nodes.size()); in insertTailoredNodeAfter()
966 U_ASSERT(previousIndexFromNode(node) == 0); in insertNodeBetween()
967 U_ASSERT(nextIndexFromNode(node) == 0); in insertNodeBetween()
968 U_ASSERT(nextIndexFromNode(nodes.elementAti(index)) == nextIndex); in insertNodeBetween()
987 U_ASSERT(UCOL_SECONDARY <= strength && strength <= UCOL_TERTIARY); in findCommonNode()
999 U_ASSERT(!isTailoredNode(node) && strengthFromNode(node) == strength && in findCommonNode()
1005 U_ASSERT(strengthFromNode(node) >= strength); in findCommonNode()
1008 U_ASSERT(weight16FromNode(node) == Collation::COMMON_WEIGHT16); in findCommonNode()
1023 U_ASSERT(numTailoredPrimaries <= 31); in setCaseBits()
1034 U_ASSERT(baseCEsLength >= 0 && baseCEs.getCE(baseCEsLength) == Collation::NO_CE); in setCaseBits()
1043 U_ASSERT(c == 0 || c == 2); // lowercase or uppercase, no mixed case in any base CE in setCaseBits()
1178 U_ASSERT(!iter.isString()); in addTailComposites()
1221 U_ASSERT(nfdString.char32At(indexAfterLastStarter - 1) == decomp.char32At(0)); in mergeCompositeIntoString()
1257 U_ASSERT(sourceCC != 0); in mergeCompositeIntoString()
1296 U_ASSERT(nfd.isNormalized(newNFDString, errorCode)); in mergeCompositeIntoString()
1297 U_ASSERT(fcd.isNormalized(newString, errorCode)); in mergeCompositeIntoString()
1298 U_ASSERT(nfd.normalize(newString, errorCode) == newNFDString); // canonically equivalent in mergeCompositeIntoString()
1330 U_ASSERT(!iter.isString()); in closeOverComposites()
1366 U_ASSERT(ces1Length <= Collation::MAX_EXPANSION_LENGTH); in sameCEs()
1416 U_ASSERT(isTailoredNode(node)); in makeTailoredCEs()
1448 U_ASSERT(t == Collation::COMMON_WEIGHT16); in makeTailoredCEs()
1451 … U_ASSERT(tLimit == 0x4000 || (tLimit & ~Collation::ONLY_TERTIARY_MASK) == 0); in makeTailoredCEs()
1461 U_ASSERT(t != 0xffffffff); in makeTailoredCEs()
1491 U_ASSERT(s == Collation::COMMON_WEIGHT16); in makeTailoredCEs()
1513 U_ASSERT(s != 0xffffffff); in makeTailoredCEs()
1522 U_ASSERT(isTailoredNode(node)); in makeTailoredCEs()
1542 U_ASSERT(p != 0xffffffff); in makeTailoredCEs()
1585 U_ASSERT(!Collation::isSpecialCE32(ce32)); in modifyCE32()