/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() 739 U_ASSERT(fPattern->fMinMatchLen > 0); in find() 774 U_ASSERT(fPattern->fMinMatchLen > 0); in find() 969 U_ASSERT(startPos >= 0); in findUsingChunk() 1013 U_ASSERT(fPattern->fMinMatchLen > 0); in findUsingChunk() 1042 U_ASSERT(fPattern->fMinMatchLen > 0); in findUsingChunk() 1182 U_ASSERT(groupOffset < fPattern->fFrameSize); in group() 1183 U_ASSERT(groupOffset >= 0); in group() [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 | number_decimalquantity.cpp | 134 U_ASSERT(minInt >= 0); in setMinInteger() 148 U_ASSERT(minFrac >= 0); in setMinFraction() 157 U_ASSERT(maxInt >= 0); in applyMaxInteger() 187 U_ASSERT(roundingIncrement != 0.01); in roundToIncrement() 188 U_ASSERT(roundingIncrement != 0.05); in roundToIncrement() 189 U_ASSERT(roundingIncrement != 0.1); in roundToIncrement() 190 U_ASSERT(roundingIncrement != 0.5); in roundToIncrement() 191 U_ASSERT(roundingIncrement != 1); in roundToIncrement() 192 U_ASSERT(roundingIncrement != 5); in roundToIncrement() 238 U_ASSERT(precision != 0); in getMagnitude() [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_integerwidth.cpp | 60 U_ASSERT(!fHasError); in operator ==() 61 U_ASSERT(!other.fHasError); in operator ==() 62 U_ASSERT(!isBogus()); in operator ==() 63 U_ASSERT(!other.isBogus()); in operator ==()
|
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() 1025 U_ASSERT(digitValue >= 0); in doParseActions() 1042 U_ASSERT(digitValue >= 0); in doParseActions() 1087 U_ASSERT(URX_TYPE(loopOp) == URX_CTR_LOOP && URX_VAL(loopOp) == topLoc); in doParseActions() 1329 U_ASSERT(groupNum > 0); // Shouldn't happen. '\0' begins an octal escape sequence, in doParseActions() 1341 U_ASSERT(fCaptureName == NULL); in doParseActions() 1505 U_ASSERT(fNewModeFlags < 0); in doParseActions() [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 | 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 | 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 | 130 U_ASSERT(U_SUCCESS(status)); in JapaneseCalendar() 160 U_ASSERT(U_SUCCESS(status)); in getDefaultMonthInYear() 178 U_ASSERT(U_SUCCESS(status)); in getDefaultDayInMonth() 206 U_ASSERT(U_SUCCESS(status)); in handleGetExtendedYear() 267 U_ASSERT(U_SUCCESS(status)); in handleGetLimit()
|
D | collationtailoring.cpp | 43 U_ASSERT(baseSettings->reorderCodesLength == 0); in CollationTailoring() 44 U_ASSERT(baseSettings->reorderTable == NULL); in CollationTailoring() 45 U_ASSERT(baseSettings->minHighNoReorder == 0); in CollationTailoring()
|
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 …]
|
/external/icu/icu4c/source/common/ |
D | static_unicode_sets.cpp | 121 U_ASSERT(FALSE); in put() 168 U_ASSERT(gUnicodeSets[COMMA] != nullptr); in initNumberParseUniSets() 169 U_ASSERT(gUnicodeSets[STRICT_COMMA] != nullptr); in initNumberParseUniSets() 170 U_ASSERT(gUnicodeSets[PERIOD] != nullptr); in initNumberParseUniSets() 171 U_ASSERT(gUnicodeSets[STRICT_PERIOD] != nullptr); in initNumberParseUniSets() 172 U_ASSERT(gUnicodeSets[APOSTROPHE_SIGN] != nullptr); in initNumberParseUniSets() 185 U_ASSERT(gUnicodeSets[MINUS_SIGN] != nullptr); in initNumberParseUniSets() 186 U_ASSERT(gUnicodeSets[PLUS_SIGN] != nullptr); in initNumberParseUniSets() 187 U_ASSERT(gUnicodeSets[PERCENT_SIGN] != nullptr); in initNumberParseUniSets() 188 U_ASSERT(gUnicodeSets[PERMILLE_SIGN] != nullptr); in initNumberParseUniSets() [all …]
|
D | unifiedcache.cpp | 71 U_ASSERT(gCache == NULL); in cacheInit() 93 U_ASSERT(gCache != NULL); in getInstance() 257 U_ASSERT(sharedObject->cachePtr == this); in _flush() 317 U_ASSERT(oldValue == nullptr); in _putNew() 351 U_ASSERT(value == NULL); in _poll() 352 U_ASSERT(status == U_ZERO_ERROR); in _poll() 383 U_ASSERT(value == NULL); in _get() 384 U_ASSERT(status == U_ZERO_ERROR); in _get() 395 U_ASSERT(value == NULL || value->hasHardReferences()); in _get() 396 U_ASSERT(value != NULL || status != U_ZERO_ERROR); in _get() [all …]
|
D | rbbi_cache.cpp | 61 U_ASSERT(r > fromPos); in following() 90 U_ASSERT(fBreaks.elementAti(fPositionInCache) == fromPos); in preceding() 98 U_ASSERT(r < fromPos); in preceding() 178 U_ASSERT(foundBreakCount == fBreaks.size()); in populateDictionary() 261 U_ASSERT(startPos > fTextIdx); in preceding() 328 U_ASSERT(fBoundaries[max] > pos); in seek() 331 U_ASSERT(fTextIdx <= pos); in seek() 340 U_ASSERT(position < fBoundaries[fStartBufIdx] || position > fBoundaries[fEndBufIdx]); in populateNear() 417 U_ASSERT(fTextIdx == position); in populateNear() 551 U_ASSERT(position > prevPosition); in populatePreceding() [all …]
|
D | locdistance.cpp | 61 U_ASSERT(gLocaleDistance == nullptr); in initLocaleDistance() 124 U_ASSERT((distance & DISTANCE_IS_FINAL) == 0); in getBestIndexAndDistance() 147 U_ASSERT(0 <= distance && distance <= 100); in getBestIndexAndDistance() 219 U_ASSERT(USTRINGTRIE_HAS_VALUE(result)); in getDesSuppScriptDistance() 224 U_ASSERT(distance >= 0); in getDesSuppScriptDistance() 238 U_ASSERT(desired != 0 && supported != 0); in getRegionPartitionsDistance() 312 U_ASSERT(USTRINGTRIE_HAS_VALUE(result)); in getFallbackRegionDistance() 314 U_ASSERT(distance >= 0); in getFallbackRegionDistance() 357 U_ASSERT(paradigmLSRsLength <= 15); in isParadigmLSR()
|
D | uhash.cpp | 186 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement() 194 U_ASSERT(hash != NULL); in _uhash_internalSetResizePolicy() 195 U_ASSERT(((int32_t)policy) >= 0); in _uhash_internalSetResizePolicy() 196 U_ASSERT(((int32_t)policy) < 3); in _uhash_internalSetResizePolicy() 220 U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH); in _uhash_allocate() 258 U_ASSERT(keyHash != NULL); in _uhash_init() 259 U_ASSERT(keyComp != NULL); in _uhash_init() 425 U_ASSERT(e != NULL); in _uhash_rehash() 426 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash() 449 U_ASSERT(e != NULL); in _uhash_remove() [all …]
|
D | loclikelysubtags.cpp | 89 U_ASSERT(isFrozen); in get() 323 U_ASSERT(gLikelySubtags == nullptr); in initLikelySubtags() 357 U_ASSERT(USTRINGTRIE_HAS_NEXT(result)); in XLikelySubtags() 360 U_ASSERT(USTRINGTRIE_HAS_NEXT(result)); in XLikelySubtags() 363 U_ASSERT(USTRINGTRIE_HAS_VALUE(result)); in XLikelySubtags() 500 U_ASSERT(value >= 0); in maximize() 524 U_ASSERT(value > 0); in maximize() 528 U_ASSERT(value < lsrsLength); in maximize() 579 U_ASSERT(iter.getValue() == SKIP_SCRIPT); in trieNext() 605 U_ASSERT(value >= 0); [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 …]
|
D | uassert.h | 33 # define U_ASSERT(exp) assert(exp) macro 35 # define U_ASSERT(exp) macro
|
/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 …]
|