/external/icu/icu4c/source/i18n/ |
D | collationrootelements.cpp | 27 U_ASSERT(p > elements[elements[IX_FIRST_PRIMARY_INDEX]]); in lastCEWithPrimaryBefore() 34 U_ASSERT((q & PRIMARY_STEP_MASK) == 0); in lastCEWithPrimaryBefore() 61 U_ASSERT((q & PRIMARY_STEP_MASK) == 0); in lastCEWithPrimaryBefore() 79 U_ASSERT((p & PRIMARY_STEP_MASK) == 0); in firstCEWithPrimaryAtLeast() 107 U_ASSERT(isEndOfPrimaryRange(nextElement)); in getPrimaryBefore() 132 U_ASSERT(s >= sec); in getSecondaryBefore() 135 U_ASSERT((elements[index] & SEC_TER_DELTA_FLAG) != 0); in getSecondaryBefore() 138 U_ASSERT(sec == s); in getSecondaryBefore() 144 U_ASSERT((t & ~Collation::ONLY_TERTIARY_MASK) == 0); in getTertiaryBefore() 165 U_ASSERT((elements[index] & SEC_TER_DELTA_FLAG) != 0); in getTertiaryBefore() [all …]
|
D | rematch.cpp | 577 U_ASSERT(groupOffset < fPattern->fFrameSize); in end64() 578 U_ASSERT(groupOffset >= 0); in end64() 693 U_ASSERT(startPos >= 0); in find() 720 U_ASSERT(FALSE); in find() 739 U_ASSERT(fPattern->fMinMatchLen > 0); in find() 768 U_ASSERT(FALSE); in find() 774 U_ASSERT(fPattern->fMinMatchLen > 0); in find() 800 U_ASSERT(FALSE); in find() 880 U_ASSERT(FALSE); in find() 883 U_ASSERT(FALSE); in find() [all …]
|
D | collationbuilder.cpp | 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() [all …]
|
D | regexcmp.cpp | 144 U_ASSERT(fRXPat->fPattern == NULL || utext_nativeLength(fRXPat->fPattern) == 0); in compile() 184 U_ASSERT(state != 0); in compile() 221 U_ASSERT(tableEl->fCharClass <= 137); in compile() 415 U_ASSERT(URX_TYPE(op) == URX_NOP); // original contents of reserved location in doParseActions() 1006 U_ASSERT(digitValue >= 0); in doParseActions() 1023 U_ASSERT(digitValue >= 0); in doParseActions() 1068 U_ASSERT(URX_TYPE(loopOp) == URX_CTR_LOOP && URX_VAL(loopOp) == topLoc); in doParseActions() 1310 U_ASSERT(groupNum > 0); // Shouldn't happen. '\0' begins an octal escape sequence, in doParseActions() 1322 U_ASSERT(fCaptureName == NULL); in doParseActions() 1468 U_ASSERT(FALSE); // Should never happen. Other chars are filtered out in doParseActions() [all …]
|
D | uitercollationiterator.cpp | 131 U_ASSERT(c >= 0); in handleNextCE32() 154 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate() 192 U_ASSERT(c >= 0); in nextCodePoint() 245 U_ASSERT(c >= 0); in previousCodePoint() 277 U_ASSERT(state == ITER_CHECK_BWD || in switchToForward() 307 U_ASSERT(state == ITER_CHECK_FWD); in nextSegment() 350 U_ASSERT(pos != limit); in nextSegment() 358 U_ASSERT(state == ITER_CHECK_FWD || in switchToBackward() 388 U_ASSERT(state == ITER_CHECK_BWD); in previousSegment() 434 U_ASSERT(pos != start); in previousSegment() [all …]
|
D | number_decimalquantity.cpp | 138 U_ASSERT(minInt >= 0); in setIntegerLength() 139 U_ASSERT(maxInt >= minInt); in setIntegerLength() 155 U_ASSERT(minFrac >= 0); in setFractionLength() 156 U_ASSERT(maxFrac >= minFrac); in setFractionLength() 224 U_ASSERT(precision != 0); in getMagnitude() 244 U_ASSERT(!isApproximate); in getPluralOperand() 270 U_ASSERT(!isApproximate); in getUpperDisplayMagnitude() 280 U_ASSERT(!isApproximate); in getLowerDisplayMagnitude() 290 U_ASSERT(!isApproximate); in getDigit() 443 U_ASSERT(origDouble != 0); in convertToAccurateDouble() [all …]
|
D | utf8collationiterator.cpp | 196 U_ASSERT(c > 0xffff); in handleNextCE32() 223 U_ASSERT(state == CHECK_FWD && pos != length); in nextHasLccc() 236 U_ASSERT(state == CHECK_BWD && pos != 0); in previousHasTccc() 248 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate() 360 U_ASSERT(state == CHECK_BWD || in switchToForward() 387 U_ASSERT(state == CHECK_FWD && pos != length); in nextSegment() 432 U_ASSERT(pos != limit); in nextSegment() 439 U_ASSERT(state == CHECK_FWD || in switchToBackward() 466 U_ASSERT(state == CHECK_BWD && pos != 0); in previousSegment() 514 U_ASSERT(pos != start); in previousSegment() [all …]
|
D | number_integerwidth.cpp | 59 U_ASSERT(!fHasError); in operator ==() 60 U_ASSERT(!other.fHasError); in operator ==() 61 U_ASSERT(!isBogus()); in operator ==() 62 U_ASSERT(!other.isBogus()); in operator ==()
|
D | collationdata.cpp | 32 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 105 U_ASSERT(c == 0); in getSingleCE() 240 U_ASSERT(scriptStartsLength >= 2); in makeReorderRanges() 241 U_ASSERT(scriptStarts[0] == 0); in makeReorderRanges() 243 U_ASSERT(lowStart == ((Collation::MERGE_SEPARATOR_BYTE + 1) << 8)); in makeReorderRanges() 245 U_ASSERT(highLimit == (Collation::TRAIL_WEIGHT_BYTE << 8)); in makeReorderRanges() 271 U_ASSERT(index != 0); in makeReorderRanges() 273 U_ASSERT(lowStart <= start); in makeReorderRanges()
|
D | number_patternmodifier.cpp | 38 U_ASSERT((rules != nullptr) == needsPlurals()); in setSymbols() 239 U_ASSERT(false); in containsField() 246 U_ASSERT(false); in getParameters() 252 U_ASSERT(false); in semanticallyEquivalent() 303 U_ASSERT(fPlural != StandardPlural::Form::COUNT); in getSymbol() 310 U_ASSERT(false); in getSymbol() 317 U_ASSERT(false); in toUnicodeString()
|
D | collationiterator.cpp | 81 U_ASSERT(!hasNext()); in incBeyond() 364 U_ASSERT(c == 0); in appendCEsFromCE32() 409 … U_ASSERT(forward); // Backward iteration should never see lead surrogate code _unit_ data. in appendCEsFromCE32() 410 U_ASSERT(U16_IS_LEAD(c)); in appendCEsFromCE32() 430 U_ASSERT(c >= 0); in appendCEsFromCE32() 434 U_ASSERT(c >= 0); in appendCEsFromCE32() 581 U_ASSERT(fcd16 > 0xff); // The caller checked this already, as a shortcut. in nextCE32FromDiscontiguousContraction() 746 U_ASSERT(1 <= length && length <= 254); in appendNumericSegmentCEs() 747 U_ASSERT(length == 1 || digits[0] != 0); in appendNumericSegmentCEs() 794 U_ASSERT(length >= 7); in appendNumericSegmentCEs() [all …]
|
D | uspoof_conf.cpp | 313 U_ASSERT(mapString->length() >= 1); in build() 374 U_ASSERT(targetMapping != NULL); in build() 411 U_ASSERT(fSpoofImpl->fSpoofData->fDataOwned == TRUE); in outputData() 430 U_ASSERT(codePoint > previousCodePoint); in outputData() 442 U_ASSERT(numKeys == numValues); in outputData() 450 U_ASSERT(value < 0xffff); in outputData() 470 U_ASSERT(rawData->fCFUStringTable == 0); in outputData()
|
D | collationweights.cpp | 163 U_ASSERT(length > 0); in incWeight() 180 U_ASSERT(length > 0); in incWeightByOffset() 212 U_ASSERT(lowerLimit != 0); in getWeightRanges() 213 U_ASSERT(upperLimit != 0); in getWeightRanges() 223 U_ASSERT(lowerLength>=middleLength); in getWeightRanges() 320 U_ASSERT(truncateWeight(lowerEnd, length-1)== in getWeightRanges() 332 U_ASSERT(minBytes[length]<maxBytes[length]); in getWeightRanges() 459 U_ASSERT((count1 + count2 * nextCountBytes) >= n); in allocWeightsInMinLengthRanges() 561 U_ASSERT(range.start <= range.end); in nextWeight()
|
D | japancal.cpp | 123 U_ASSERT(U_SUCCESS(status)); in JapaneseCalendar() 153 U_ASSERT(U_SUCCESS(status)); in getDefaultMonthInYear() 171 U_ASSERT(U_SUCCESS(status)); in getDefaultDayInMonth() 199 U_ASSERT(U_SUCCESS(status)); in handleGetExtendedYear() 260 U_ASSERT(U_SUCCESS(status)); in handleGetLimit()
|
D | collationfastlatinbuilder.cpp | 185 U_ASSERT(p != 0 && q != 0); in inSameGroup() 235 U_ASSERT(contractionCEs.isEmpty()); in getCEs() 291 U_ASSERT(c >= 0); in getCEsFromCE32() 294 U_ASSERT(c >= 0); in getCEsFromCE32() 349 U_ASSERT(!Collation::isContractionCE32(ce32)); in getCEsFromContractionCE32() 425 U_ASSERT(index >= 0); in getMiniCE() 441 U_ASSERT(((uint32_t)uniqueCEs.elementAti(0) >> 16) != 0); in encodeUniqueCEs() 454 U_ASSERT(pri <= CollationFastLatin::MAX_LONG); in encodeUniqueCEs() 535 U_ASSERT((lower32 & Collation::CASE_MASK) == 0); // blanked out in uniqueCEs in encodeUniqueCEs() 546 U_ASSERT(sec == CollationFastLatin::COMMON_SEC); in encodeUniqueCEs() [all …]
|
D | collationsets.cpp | 51 U_ASSERT(baseData != NULL); in forData() 58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 127 U_ASSERT(tag != Collation::PREFIX_TAG); in compare() 128 U_ASSERT(tag != Collation::CONTRACTION_TAG); in compare() 133 U_ASSERT(tag != Collation::OFFSET_TAG); in compare() 140 U_ASSERT(baseTag != Collation::PREFIX_TAG); in compare() 141 U_ASSERT(baseTag != Collation::CONTRACTION_TAG); in compare() 504 U_ASSERT(start == 0 && end == 0); in handleCE32() 520 U_ASSERT(length >= 2 && iter.getCE(length - 1) == Collation::NO_CE); in handleCE32() 567 U_ASSERT(!unreversedPrefix.isEmpty()); in handleContractions() [all …]
|
D | number_stringbuilder.h | 49 U_ASSERT(index >= 0); in charAt() 50 U_ASSERT(index < fLength); in charAt() 55 U_ASSERT(index >= 0); in fieldAt() 56 U_ASSERT(index < fLength); in fieldAt()
|
D | tzfmt.cpp | 245 U_ASSERT(type != TEXT); in createTimeField() 270 U_ASSERT(FALSE); in isValid() 467 U_ASSERT(U_SUCCESS(status)); in operator =() 592 U_ASSERT(FALSE); in setGMTOffsetPattern() 947 U_ASSERT(style == UTZFMT_STYLE_SPECIFIC_SHORT); in parse() 971 U_ASSERT(!tzID.isEmpty()); in parse() 977 U_ASSERT((nameTypes & UTZNM_SHORT_STANDARD) != 0); in parse() 978 U_ASSERT((nameTypes & UTZNM_SHORT_DAYLIGHT) != 0); in parse() 1004 U_ASSERT(!tzID.isEmpty()); in parse() 1031 U_ASSERT(FALSE); in parse() [all …]
|
/external/icu/icu4c/source/common/ |
D | rbbi_cache.cpp | 61 U_ASSERT(r > fromPos); in following() 77 U_ASSERT(FALSE); in following() 92 U_ASSERT(fBreaks.elementAti(fPositionInCache) == fromPos); in preceding() 100 U_ASSERT(r < fromPos); in preceding() 119 U_ASSERT(FALSE); in preceding() 182 U_ASSERT(foundBreakCount == fBreaks.size()); in populateDictionary() 265 U_ASSERT(startPos > fTextIdx); in preceding() 332 U_ASSERT(fBoundaries[max] > pos); in seek() 335 U_ASSERT(fTextIdx <= pos); in seek() 344 U_ASSERT(position < fBoundaries[fStartBufIdx] || position > fBoundaries[fEndBufIdx]); in populateNear() [all …]
|
D | umutex.cpp | 140 U_ASSERT(FALSE); in umtx_condSignal() 150 U_ASSERT(condition->fExitGate == NULL); in umtx_condWait() 155 U_ASSERT(condition->fEntryGate != NULL); in umtx_condWait() 157 U_ASSERT(condition->fExitGate != NULL); in umtx_condWait() 199 U_ASSERT(sysErr == 0); in umtx_lock() 211 U_ASSERT(sysErr == 0); in umtx_unlock() 222 U_ASSERT(sysErr == 0); in umtx_condWait() 229 U_ASSERT(sysErr == 0); in umtx_condBroadcast() 236 U_ASSERT(sysErr == 0); in umtx_condSignal() 270 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit()
|
D | unifiedcache.cpp | 70 U_ASSERT(gCache == NULL); in cacheInit() 90 U_ASSERT(gCache != NULL); in getInstance() 254 U_ASSERT(sharedObject->cachePtr == this); in _flush() 314 U_ASSERT(oldValue == nullptr); in _putNew() 348 U_ASSERT(value == NULL); in _poll() 349 U_ASSERT(status == U_ZERO_ERROR); in _poll() 380 U_ASSERT(value == NULL); in _get() 381 U_ASSERT(status == U_ZERO_ERROR); in _get() 392 U_ASSERT(value == NULL || value->hasHardReferences()); in _get() 393 U_ASSERT(value != NULL || status != U_ZERO_ERROR); in _get() [all …]
|
D | static_unicode_sets.cpp | 154 U_ASSERT(gUnicodeSets[COMMA] != nullptr); in initNumberParseUniSets() 155 U_ASSERT(gUnicodeSets[STRICT_COMMA] != nullptr); in initNumberParseUniSets() 156 U_ASSERT(gUnicodeSets[PERIOD] != nullptr); in initNumberParseUniSets() 157 U_ASSERT(gUnicodeSets[STRICT_PERIOD] != nullptr); in initNumberParseUniSets() 165 U_ASSERT(gUnicodeSets[MINUS_SIGN] != nullptr); in initNumberParseUniSets() 166 U_ASSERT(gUnicodeSets[PLUS_SIGN] != nullptr); in initNumberParseUniSets() 172 U_ASSERT(gUnicodeSets[DOLLAR_SIGN] != nullptr); in initNumberParseUniSets() 173 U_ASSERT(gUnicodeSets[POUND_SIGN] != nullptr); in initNumberParseUniSets() 174 U_ASSERT(gUnicodeSets[RUPEE_SIGN] != nullptr); in initNumberParseUniSets()
|
D | uhash.cpp | 185 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement() 193 U_ASSERT(hash != NULL); in _uhash_internalSetResizePolicy() 194 U_ASSERT(((int32_t)policy) >= 0); in _uhash_internalSetResizePolicy() 195 U_ASSERT(((int32_t)policy) < 3); in _uhash_internalSetResizePolicy() 219 U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH); in _uhash_allocate() 257 U_ASSERT(keyHash != NULL); in _uhash_init() 258 U_ASSERT(keyComp != NULL); in _uhash_init() 379 U_ASSERT(FALSE); in _uhash_find() 425 U_ASSERT(e != NULL); in _uhash_rehash() 426 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash() [all …]
|
D | edits.cpp | 409 U_ASSERT(index < length); in readLength() 410 U_ASSERT(array[index] >= 0x8000); in readLength() 413 U_ASSERT((index + 2) <= length); in readLength() 414 U_ASSERT(array[index] >= 0x8000); in readLength() 415 U_ASSERT(array[index + 1] >= 0x8000); in readLength() 521 U_ASSERT(u <= 0x7fff); in next() 536 U_ASSERT(u <= 0x7fff); in next() 570 U_ASSERT(MAX_UNCHANGED < u && u <= MAX_SHORT_CHANGE); in previous() 621 U_ASSERT(index > 0); in previous() 623 U_ASSERT(u > MAX_SHORT_CHANGE); in previous() [all …]
|
/external/icu/icu4c/source/samples/ucnv/ |
D | convsamp.cpp | 58 #define U_ASSERT(x) { if(U_FAILURE(x)) {fflush(stdout);fflush(stderr); fprintf(stderr, #x " == %s\… macro 462 U_ASSERT(status); in convsample_06() 549 U_ASSERT(status); in convsample_12() 585 U_ASSERT(status); in convsample_13() 604 U_ASSERT(status); in convsample_13() 641 U_ASSERT(status); in convsample_20_didSubstitute() 644 U_ASSERT(status); in convsample_20_didSubstitute() 654 U_ASSERT(status); in convsample_20_didSubstitute() 669 U_ASSERT(status); in convsample_20_didSubstitute() 672 U_ASSERT(status); in convsample_20_didSubstitute() [all …]
|