Home
last modified time | relevance | path

Searched refs:U_ASSERT (Results 1 – 25 of 167) sorted by relevance

1234567

/external/icu/icu4c/source/i18n/
Dcollationrootelements.cpp27 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 …]
Drematch.cpp577 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 …]
Dcollationbuilder.cpp297 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 …]
Dvalueformatter.cpp46 U_ASSERT(FALSE); in toVisibleDigitsWithExponent()
67 U_ASSERT(FALSE); in toVisibleDigitsWithExponent()
99 U_ASSERT(FALSE); in isFastFormattable()
116 U_ASSERT(FALSE); in round()
142 U_ASSERT(FALSE); in formatInt32()
170 U_ASSERT(FALSE); in format()
191 U_ASSERT(FALSE); in countChar32()
Dregexcmp.cpp143 U_ASSERT(fRXPat->fPattern == NULL || utext_nativeLength(fRXPat->fPattern) == 0); in compile()
183 U_ASSERT(state != 0); in compile()
220 U_ASSERT(tableEl->fCharClass <= 137); in compile()
414 U_ASSERT(URX_TYPE(op) == URX_NOP); // original contents of reserved location in doParseActions()
1005 U_ASSERT(digitValue >= 0); in doParseActions()
1022 U_ASSERT(digitValue >= 0); in doParseActions()
1067 U_ASSERT(URX_TYPE(loopOp) == URX_CTR_LOOP && URX_VAL(loopOp) == topLoc); in doParseActions()
1309 U_ASSERT(groupNum > 0); // Shouldn't happen. '\0' begins an octal escape sequence, in doParseActions()
1321 U_ASSERT(fCaptureName == NULL); in doParseActions()
1467 U_ASSERT(FALSE); // Should never happen. Other chars are filtered out in doParseActions()
[all …]
Duitercollationiterator.cpp131 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 …]
Ddigitlst.cpp259 U_ASSERT(destIdx >= 0); in formatBase10()
316 U_ASSERT((fDecNumber->bits & DECSPECIAL) == 0); // Not Infinity or NaN in setDecimalAt()
317 U_ASSERT(d-1>-999999999); in setDecimalAt()
318 U_ASSERT(d-1< 999999999); in setDecimalAt()
330 U_ASSERT((fDecNumber->bits & DECSPECIAL) == 0); // Not Infinity or NaN in getDecimalAt()
339 U_ASSERT(c <= fContext.digits); in setCount()
364 U_ASSERT(i<count); in setDigit()
365 U_ASSERT(v>='0' && v<='9'); in setDigit()
374 U_ASSERT(i<count); in getDigit()
382 U_ASSERT(i<count); in getDigitValue()
[all …]
Dutf8collationiterator.cpp198 U_ASSERT(c > 0xffff); in handleNextCE32()
225 U_ASSERT(state == CHECK_FWD && pos != length); in nextHasLccc()
238 U_ASSERT(state == CHECK_BWD && pos != 0); in previousHasTccc()
250 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
362 U_ASSERT(state == CHECK_BWD || in switchToForward()
389 U_ASSERT(state == CHECK_FWD && pos != length); in nextSegment()
434 U_ASSERT(pos != limit); in nextSegment()
441 U_ASSERT(state == CHECK_FWD || in switchToBackward()
468 U_ASSERT(state == CHECK_BWD && pos != 0); in previousSegment()
516 U_ASSERT(pos != start); in previousSegment()
[all …]
Dcollationdata.cpp32 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()
Dcollationiterator.cpp81 U_ASSERT(!hasNext()); in incBeyond()
364 U_ASSERT(c == 0); in appendCEsFromCE32()
409U_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 …]
Duspoof_conf.cpp284 U_ASSERT(mapString->length() >= 1); in build()
345 U_ASSERT(targetMapping != NULL); in build()
382 U_ASSERT(fSpoofImpl->fSpoofData->fDataOwned == TRUE); in outputData()
400 U_ASSERT(codePoint > previousCodePoint); in outputData()
412 U_ASSERT(numKeys == numValues); in outputData()
420 U_ASSERT(value < 0xffff); in outputData()
440 U_ASSERT(rawData->fCFUStringTable == 0); in outputData()
Dcollationweights.cpp163 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()
Dcollationtailoring.cpp43 U_ASSERT(baseSettings->reorderCodesLength == 0); in CollationTailoring()
44 U_ASSERT(baseSettings->reorderTable == NULL); in CollationTailoring()
45 U_ASSERT(baseSettings->minHighNoReorder == 0); in CollationTailoring()
Dcollationfastlatinbuilder.cpp185 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 …]
Dcollationsets.cpp51 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 …]
Dcollationsettings.cpp112 U_ASSERT(!reorderTableHasSplitBytes(table)); in aliasReordering()
117 U_ASSERT(table[ranges[firstSplitByteRangeIndex] >> 24] == 0); in aliasReordering()
150 U_ASSERT(rangesLength >= 2); in setReordering()
151 U_ASSERT((ranges[0] & 0xffff) == 0 && (ranges[rangesLength - 1] & 0xffff) != 0); in setReordering()
197 U_ASSERT(totalLength > 0); in setReorderArrays()
248 U_ASSERT(table[0] == 0); in reorderTableHasSplitBytes()
Dtzfmt.cpp241 U_ASSERT(type != TEXT); in createTimeField()
266 U_ASSERT(FALSE); in isValid()
463 U_ASSERT(U_SUCCESS(status)); in operator =()
588 U_ASSERT(FALSE); in setGMTOffsetPattern()
943 U_ASSERT(style == UTZFMT_STYLE_SPECIFIC_SHORT); in parse()
967 U_ASSERT(!tzID.isEmpty()); in parse()
973 U_ASSERT((nameTypes & UTZNM_SHORT_STANDARD) != 0); in parse()
974 U_ASSERT((nameTypes & UTZNM_SHORT_DAYLIGHT) != 0); in parse()
1000 U_ASSERT(!tzID.isEmpty()); in parse()
1027 U_ASSERT(FALSE); in parse()
[all …]
Dutf16collationiterator.cpp345 U_ASSERT(checkDir < 0 || (checkDir == 0 && pos == limit)); in switchToForward()
376 U_ASSERT(checkDir > 0 && pos != limit); in nextSegment()
406 U_ASSERT(pos != limit); in nextSegment()
413 U_ASSERT(checkDir > 0 || (checkDir == 0 && pos == start)); in switchToBackward()
440 U_ASSERT(checkDir < 0 && pos != start); in previousSegment()
472 U_ASSERT(pos != start); in previousSegment()
480 U_ASSERT(U_SUCCESS(errorCode)); in normalize()
Dcollationdatabuilder.cpp196 U_ASSERT(U_SUCCESS(errorCode)); in fetchCEs()
258 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
343 U_ASSERT(start <= end); in maybeSetPrimaryRange()
475 U_ASSERT(c == 0); in getSingleCE()
513 U_ASSERT(!context.isEmpty()); in addConditionalCE32()
627 U_ASSERT((t & 0xc000) != 0xc000); // Impossible case bits 11 mark special CE32s. in encodeOneCEAsCE32()
855 U_ASSERT(FALSE); // require ce32 == base->getFinalCE32(ce32) in copyFromBaseCE32()
871 U_ASSERT(context.length() > 1); in copyContractionsFromBaseCE32()
875 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
894 U_ASSERT(index >= 0); in copyContractionsFromBaseCE32()
[all …]
Dcollationkeys.cpp112 U_ASSERT(len > 0 && buffer[len - 1] == 1); in appendTo()
135 U_ASSERT((w & 0xffff) != 0); in appendWeight16()
149 U_ASSERT(w != 0); in appendWeight32()
168 U_ASSERT((w & 0xffff) != 0); in appendReverseWeight16()
433 U_ASSERT((c & 0xc0) != 0xc0); in writeSortKeyUpToQuaternary()
487 U_ASSERT((lower32 & 0xc000) != 0xc000); in writeSortKeyUpToQuaternary()
554 U_ASSERT(0x8600 <= t && t <= 0xbfff); in writeSortKeyUpToQuaternary()
639 U_ASSERT((c & 0xf) == 0 && c != 0); in writeSortKeyUpToQuaternary()
/external/icu/icu4c/source/common/
Dumutex.cpp140 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()
Duhash.c185 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 …]
Dunifiedcache.cpp72 U_ASSERT(gCache == NULL); in cacheInit()
100 U_ASSERT(gCache != NULL); in getInstance()
114 U_ASSERT(gNoValue != NULL); in UnifiedCache()
368 U_ASSERT(value == NULL); in _poll()
369 U_ASSERT(status == U_ZERO_ERROR); in _poll()
398 U_ASSERT(value == NULL); in _get()
399 U_ASSERT(status == U_ZERO_ERROR); in _get()
410 U_ASSERT(value == NULL || value->hasHardReferences()); in _get()
411 U_ASSERT(value != NULL || status != U_ZERO_ERROR); in _get()
457 U_ASSERT(_inProgress(element)); in _put()
Duassert.h28 # define U_ASSERT(exp) assert(exp) macro
30 # define U_ASSERT(exp) macro
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp56 #define U_ASSERT(x) { if(U_FAILURE(x)) {fflush(stdout);fflush(stderr); fprintf(stderr, #x " == %s\… macro
460 U_ASSERT(status); in convsample_06()
547 U_ASSERT(status); in convsample_12()
583 U_ASSERT(status); in convsample_13()
602 U_ASSERT(status); in convsample_13()
639 U_ASSERT(status); in convsample_20_didSubstitute()
642 U_ASSERT(status); in convsample_20_didSubstitute()
652 U_ASSERT(status); in convsample_20_didSubstitute()
667 U_ASSERT(status); in convsample_20_didSubstitute()
670 U_ASSERT(status); in convsample_20_didSubstitute()
[all …]

1234567