Lines Matching defs:cond
276 ConditionalCE32 *cond = builder.getConditionalCE32ForCE32(ce32);
277 if (cond == nullptr) {
282 if(cond->builtCE32 == Collation::NO_CE32 || cond->era != builder.contextsEra) {
284 cond->builtCE32 = builder.buildContext(cond, errorCode);
288 cond->builtCE32 = builder.buildContext(cond, errorCode);
290 cond->era = builder.contextsEra;
293 return cond->builtCE32;
545 LocalPointer<ConditionalCE32> cond(new ConditionalCE32(context, ce32), errorCode);
546 conditionalCE32s.adoptElement(cond.orphan(), errorCode);
686 ConditionalCE32 *cond = getConditionalCE32ForCE32(oldCE32);
687 cond->builtCE32 = Collation::NO_CE32;
688 cond->ce32 = ce32;
691 ConditionalCE32 *cond;
700 cond = getConditionalCE32(index);
702 cond = getConditionalCE32ForCE32(oldCE32);
703 cond->builtCE32 = Collation::NO_CE32;
710 // invariant: context > cond->context
711 int32_t next = cond->next;
713 // Append a new ConditionalCE32 after cond.
716 cond->next = index;
722 // Insert a new ConditionalCE32 between cond and nextCond.
725 cond->next = index;
733 cond = nextCond;
932 ConditionalCE32 *cond = getConditionalCE32(index); // the last ConditionalCE32 so far
940 index = copyContractionsFromBaseCE32(context, c, ce32, cond, errorCode);
943 cond->next = index = addConditionalCE32(context, ce32, errorCode);
946 cond = getConditionalCE32(index);
982 ConditionalCE32 *cond, UErrorCode &errorCode) {
996 cond->next = index = addConditionalCE32(context, ce32, errorCode);
998 cond = getConditionalCE32(index);
1006 cond->next = index = addConditionalCE32(context, ce32, errorCode);
1010 cond = getConditionalCE32(index);
1103 ConditionalCE32 *cond = src.getConditionalCE32ForCE32(ce32);
1104 U_ASSERT(!cond->hasContext());
1106 cond->context, copyCE32(cond->ce32), errorCode);
1108 while(cond->next >= 0) {
1109 cond = src.getConditionalCE32(cond->next);
1112 cond->context, copyCE32(cond->ce32), errorCode);
1113 int32_t suffixStart = cond->prefixLength() + 1;
1114 dest.unsafeBackwardSet.addAll(cond->context.tempSubString(suffixStart));
1464 ConditionalCE32 *cond = getConditionalCE32ForCE32(ce32);
1465 ce32 = buildContext(cond, errorCode);
1483 for(ConditionalCE32 *cond = head;; cond = getConditionalCE32(cond->next)) {
1486 U_ASSERT(cond == head || cond->hasContext());
1487 int32_t prefixLength = cond->prefixLength();
1488 UnicodeString prefix(cond->context, 0, prefixLength + 1);
1490 ConditionalCE32 *firstCond = cond;
1493 lastCond = cond;
1504 cond->defaultCE32 = Collation::NO_CE32;
1505 } while(cond->next >= 0 &&
1506 (cond = getConditionalCE32(cond->next))->context.startsWith(prefix));
1513 cond = lastCond;
1524 cond = getConditionalCE32(firstCond->next);
1535 for(cond = head;; cond = getConditionalCE32(cond->next)) {
1536 int32_t length = cond->prefixLength();
1538 if(cond->defaultCE32 != Collation::NO_CE32 &&
1539 (length==0 || prefix.endsWith(cond->context, 1, length))) {
1540 emptySuffixCE32 = cond->defaultCE32;
1543 cond = firstCond;
1551 UnicodeString suffix(cond->context, suffixStart);
1575 contractionBuilder.add(suffix, (int32_t)cond->ce32, errorCode);
1576 if(cond == lastCond) { break; }
1577 cond = getConditionalCE32(cond->next);
1587 U_ASSERT(cond == lastCond);
1590 if(cond->next < 0) {
1598 if(cond->next < 0) { break; }