Home
last modified time | relevance | path

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

1234567

/external/icu/icu4c/source/i18n/
Dcollationrootelements.cpp25 U_ASSERT(p > elements[elements[IX_FIRST_PRIMARY_INDEX]]); in lastCEWithPrimaryBefore()
32 U_ASSERT((q & PRIMARY_STEP_MASK) == 0); in lastCEWithPrimaryBefore()
59 U_ASSERT((q & PRIMARY_STEP_MASK) == 0); in lastCEWithPrimaryBefore()
77 U_ASSERT((p & PRIMARY_STEP_MASK) == 0); in firstCEWithPrimaryAtLeast()
105 U_ASSERT(isEndOfPrimaryRange(nextElement)); in getPrimaryBefore()
130 U_ASSERT(s >= sec); in getSecondaryBefore()
133 U_ASSERT((elements[index] & SEC_TER_DELTA_FLAG) != 0); in getSecondaryBefore()
136 U_ASSERT(sec == s); in getSecondaryBefore()
142 U_ASSERT((t & ~Collation::ONLY_TERTIARY_MASK) == 0); in getTertiaryBefore()
163 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.cpp295 U_ASSERT(!str.isEmpty()); in addReset()
300 U_ASSERT((ces[0] & Collation::CASE_AND_QUATERNARY_MASK) == 0); in addReset()
318 U_ASSERT(UCOL_PRIMARY <= strength && strength <= UCOL_TERTIARY); in addReset()
385 U_ASSERT(weight16 > Collation::BEFORE_WEIGHT16); in addReset()
397 U_ASSERT(weight16 >= Collation::COMMON_WEIGHT16 || i == previousIndex); in addReset()
438 U_ASSERT(strengthFromNode(node) < level || !isTailoredNode(node)); in getWeight16Before()
474 U_ASSERT((weight16 & ~Collation::ONLY_TERTIARY_MASK) == 0); in getWeight16Before()
482 U_ASSERT(str.length() == 2); in getSpecialResetPosition()
487 U_ASSERT(0 <= pos && pos <= CollationRuleParser::LAST_TRAILING); in getSpecialResetPosition()
502 U_ASSERT(strengthFromNode(node) <= UCOL_TERTIARY); in getSpecialResetPosition()
[all …]
Dregexcmp.cpp140 U_ASSERT(fRXPat->fPattern == NULL || utext_nativeLength(fRXPat->fPattern) == 0); in compile()
180 U_ASSERT(state != 0); in compile()
217 U_ASSERT(tableEl->fCharClass <= 137); in compile()
411 U_ASSERT(URX_TYPE(op) == URX_NOP); // original contents of reserved location in doParseActions()
1002 U_ASSERT(digitValue >= 0); in doParseActions()
1019 U_ASSERT(digitValue >= 0); in doParseActions()
1064 U_ASSERT(URX_TYPE(loopOp) == URX_CTR_LOOP && URX_VAL(loopOp) == topLoc); in doParseActions()
1306 U_ASSERT(groupNum > 0); // Shouldn't happen. '\0' begins an octal escape sequence, in doParseActions()
1318 U_ASSERT(fCaptureName == NULL); in doParseActions()
1464 U_ASSERT(FALSE); // Should never happen. Other chars are filtered out in doParseActions()
[all …]
Ddigitlst.cpp233 U_ASSERT(destIdx >= 0); in formatBase10()
290 U_ASSERT((fDecNumber->bits & DECSPECIAL) == 0); // Not Infinity or NaN in setDecimalAt()
291 U_ASSERT(d-1>-999999999); in setDecimalAt()
292 U_ASSERT(d-1< 999999999); in setDecimalAt()
304 U_ASSERT((fDecNumber->bits & DECSPECIAL) == 0); // Not Infinity or NaN in getDecimalAt()
313 U_ASSERT(c <= fContext.digits); in setCount()
338 U_ASSERT(i<count); in setDigit()
339 U_ASSERT(v>='0' && v<='9'); in setDigit()
348 U_ASSERT(i<count); in getDigit()
356 U_ASSERT(i<count); in getDigitValue()
[all …]
Duitercollationiterator.cpp129 U_ASSERT(c >= 0); in handleNextCE32()
152 U_ASSERT(pos < normalized.length()); in handleGetTrailSurrogate()
190 U_ASSERT(c >= 0); in nextCodePoint()
243 U_ASSERT(c >= 0); in previousCodePoint()
275 U_ASSERT(state == ITER_CHECK_BWD || in switchToForward()
305 U_ASSERT(state == ITER_CHECK_FWD); in nextSegment()
348 U_ASSERT(pos != limit); in nextSegment()
356 U_ASSERT(state == ITER_CHECK_FWD || in switchToBackward()
386 U_ASSERT(state == ITER_CHECK_BWD); in previousSegment()
432 U_ASSERT(pos != start); in previousSegment()
[all …]
Duspoof_conf.cpp291 U_ASSERT(mapString->length() >= 1); in build()
303 U_ASSERT(table != NULL); in build()
335 U_ASSERT(strLen >= previousStringLength); in build()
402 U_ASSERT(fSpoofImpl->fSpoofData->fDataOwned == TRUE); in outputData()
419 U_ASSERT((key & 0x00ffffff) >= (previousKey & 0x00ffffff)); in outputData()
420 U_ASSERT((key & 0xff000000) != 0); in outputData()
432 U_ASSERT(numKeys == numValues); in outputData()
440 U_ASSERT(value < 0xffff); in outputData()
460 U_ASSERT(rawData->fCFUStringTable == 0); in outputData()
481 U_ASSERT(offset < stringsLength); in outputData()
[all …]
Dutf8collationiterator.cpp196 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 …]
Dcollationdata.cpp30 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32()
103 U_ASSERT(c == 0); in getSingleCE()
238 U_ASSERT(scriptStartsLength >= 2); in makeReorderRanges()
239 U_ASSERT(scriptStarts[0] == 0); in makeReorderRanges()
241 U_ASSERT(lowStart == ((Collation::MERGE_SEPARATOR_BYTE + 1) << 8)); in makeReorderRanges()
243 U_ASSERT(highLimit == (Collation::TRAIL_WEIGHT_BYTE << 8)); in makeReorderRanges()
269 U_ASSERT(index != 0); in makeReorderRanges()
271 U_ASSERT(lowStart <= start); in makeReorderRanges()
Dcollationiterator.cpp79 U_ASSERT(!hasNext()); in incBeyond()
362 U_ASSERT(c == 0); in appendCEsFromCE32()
407U_ASSERT(forward); // Backward iteration should never see lead surrogate code _unit_ data. in appendCEsFromCE32()
408 U_ASSERT(U16_IS_LEAD(c)); in appendCEsFromCE32()
428 U_ASSERT(c >= 0); in appendCEsFromCE32()
432 U_ASSERT(c >= 0); in appendCEsFromCE32()
579 U_ASSERT(fcd16 > 0xff); // The caller checked this already, as a shortcut. in nextCE32FromDiscontiguousContraction()
744 U_ASSERT(1 <= length && length <= 254); in appendNumericSegmentCEs()
745 U_ASSERT(length == 1 || digits[0] != 0); in appendNumericSegmentCEs()
792 U_ASSERT(length >= 7); in appendNumericSegmentCEs()
[all …]
Dcollationtailoring.cpp41 U_ASSERT(baseSettings->reorderCodesLength == 0); in CollationTailoring()
42 U_ASSERT(baseSettings->reorderTable == NULL); in CollationTailoring()
43 U_ASSERT(baseSettings->minHighNoReorder == 0); in CollationTailoring()
Dcollationfastlatinbuilder.cpp183 U_ASSERT(p != 0 && q != 0); in inSameGroup()
233 U_ASSERT(contractionCEs.isEmpty()); in getCEs()
289 U_ASSERT(c >= 0); in getCEsFromCE32()
292 U_ASSERT(c >= 0); in getCEsFromCE32()
347 U_ASSERT(!Collation::isContractionCE32(ce32)); in getCEsFromContractionCE32()
423 U_ASSERT(index >= 0); in getMiniCE()
439 U_ASSERT(((uint32_t)uniqueCEs.elementAti(0) >> 16) != 0); in encodeUniqueCEs()
452 U_ASSERT(pri <= CollationFastLatin::MAX_LONG); in encodeUniqueCEs()
533 U_ASSERT((lower32 & Collation::CASE_MASK) == 0); // blanked out in uniqueCEs in encodeUniqueCEs()
544 U_ASSERT(sec == CollationFastLatin::COMMON_SEC); in encodeUniqueCEs()
[all …]
Dcollationsets.cpp49 U_ASSERT(baseData != NULL); in forData()
56 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32()
125 U_ASSERT(tag != Collation::PREFIX_TAG); in compare()
126 U_ASSERT(tag != Collation::CONTRACTION_TAG); in compare()
131 U_ASSERT(tag != Collation::OFFSET_TAG); in compare()
138 U_ASSERT(baseTag != Collation::PREFIX_TAG); in compare()
139 U_ASSERT(baseTag != Collation::CONTRACTION_TAG); in compare()
502 U_ASSERT(start == 0 && end == 0); in handleCE32()
518 U_ASSERT(length >= 2 && iter.getCE(length - 1) == Collation::NO_CE); in handleCE32()
565 U_ASSERT(!unreversedPrefix.isEmpty()); in handleContractions()
[all …]
Dcollationsettings.cpp110 U_ASSERT(!reorderTableHasSplitBytes(table)); in aliasReordering()
115 U_ASSERT(table[ranges[firstSplitByteRangeIndex] >> 24] == 0); in aliasReordering()
148 U_ASSERT(rangesLength >= 2); in setReordering()
149 U_ASSERT((ranges[0] & 0xffff) == 0 && (ranges[rangesLength - 1] & 0xffff) != 0); in setReordering()
195 U_ASSERT(totalLength > 0); in setReorderArrays()
246 U_ASSERT(table[0] == 0); in reorderTableHasSplitBytes()
Dtzfmt.cpp239 U_ASSERT(type != TEXT); in createTimeField()
264 U_ASSERT(FALSE); in isValid()
461 U_ASSERT(U_SUCCESS(status)); in operator =()
586 U_ASSERT(FALSE); in setGMTOffsetPattern()
941 U_ASSERT(style == UTZFMT_STYLE_SPECIFIC_SHORT); in parse()
965 U_ASSERT(!tzID.isEmpty()); in parse()
971 U_ASSERT((nameTypes & UTZNM_SHORT_STANDARD) != 0); in parse()
972 U_ASSERT((nameTypes & UTZNM_SHORT_DAYLIGHT) != 0); in parse()
998 U_ASSERT(!tzID.isEmpty()); in parse()
1025 U_ASSERT(FALSE); in parse()
[all …]
Dutf16collationiterator.cpp343 U_ASSERT(checkDir < 0 || (checkDir == 0 && pos == limit)); in switchToForward()
374 U_ASSERT(checkDir > 0 && pos != limit); in nextSegment()
404 U_ASSERT(pos != limit); in nextSegment()
411 U_ASSERT(checkDir > 0 || (checkDir == 0 && pos == start)); in switchToBackward()
438 U_ASSERT(checkDir < 0 && pos != start); in previousSegment()
470 U_ASSERT(pos != start); in previousSegment()
478 U_ASSERT(U_SUCCESS(errorCode)); in normalize()
Dcollationdatabuilder.cpp194 U_ASSERT(U_SUCCESS(errorCode)); in fetchCEs()
256 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
341 U_ASSERT(start <= end); in maybeSetPrimaryRange()
473 U_ASSERT(c == 0); in getSingleCE()
511 U_ASSERT(!context.isEmpty()); in addConditionalCE32()
625 U_ASSERT((t & 0xc000) != 0xc000); // Impossible case bits 11 mark special CE32s. in encodeOneCEAsCE32()
853 U_ASSERT(FALSE); // require ce32 == base->getFinalCE32(ce32) in copyFromBaseCE32()
869 U_ASSERT(context.length() > 1); in copyContractionsFromBaseCE32()
873 U_ASSERT(!Collation::isContractionCE32(ce32)); in copyContractionsFromBaseCE32()
892 U_ASSERT(index >= 0); in copyContractionsFromBaseCE32()
[all …]
Dcollationkeys.cpp110 U_ASSERT(len > 0 && buffer[len - 1] == 1); in appendTo()
133 U_ASSERT((w & 0xffff) != 0); in appendWeight16()
147 U_ASSERT(w != 0); in appendWeight32()
166 U_ASSERT((w & 0xffff) != 0); in appendReverseWeight16()
431 U_ASSERT((c & 0xc0) != 0xc0); in writeSortKeyUpToQuaternary()
485 U_ASSERT((lower32 & 0xc000) != 0xc000); in writeSortKeyUpToQuaternary()
552 U_ASSERT(0x8600 <= t && t <= 0xbfff); in writeSortKeyUpToQuaternary()
637 U_ASSERT((c & 0xf) == 0 && c != 0); in writeSortKeyUpToQuaternary()
Dcollationweights.cpp161 U_ASSERT(length > 0); in incWeight()
178 U_ASSERT(length > 0); in incWeightByOffset()
210 U_ASSERT(lowerLimit != 0); in getWeightRanges()
211 U_ASSERT(upperLimit != 0); in getWeightRanges()
221 U_ASSERT(lowerLength>=middleLength); in getWeightRanges()
432 U_ASSERT((count1 + count2 * nextCountBytes) >= n); in allocWeightsInMinLengthRanges()
534 U_ASSERT(range.start <= range.end); in nextWeight()
Dplurrule.cpp442 U_ASSERT(ruleIndex == 0); // Parsers are good for a single use only! in parse()
456 U_ASSERT(curAndConstraint != NULL); in parse()
461 U_ASSERT(currentChain != NULL); in parse()
473 U_ASSERT(curAndConstraint != NULL); in parse()
474 U_ASSERT(curAndConstraint->value == -1); in parse()
475 U_ASSERT(curAndConstraint->rangeList == NULL); in parse()
478 U_ASSERT(curAndConstraint != NULL); in parse()
487 U_ASSERT(curAndConstraint != NULL); in parse()
497 U_ASSERT(curAndConstraint != NULL); in parse()
533 U_ASSERT(curAndConstraint->rangeList->size() >= 2); in parse()
[all …]
/external/icu/icu4c/source/common/
Dumutex.cpp149 U_ASSERT(FALSE); in umtx_condSignal()
159 U_ASSERT(condition->fExitGate == NULL); in umtx_condWait()
164 U_ASSERT(condition->fEntryGate != NULL); in umtx_condWait()
166 U_ASSERT(condition->fExitGate != NULL); in umtx_condWait()
208 U_ASSERT(sysErr == 0); in umtx_lock()
220 U_ASSERT(sysErr == 0); in umtx_unlock()
231 U_ASSERT(sysErr == 0); in umtx_condWait()
238 U_ASSERT(sysErr == 0); in umtx_condBroadcast()
245 U_ASSERT(sysErr == 0); in umtx_condSignal()
279 U_ASSERT(uio.fState == 2); in umtx_initImplPreInit()
Dunifiedcache.cpp65 U_ASSERT(gCache == NULL); in cacheInit()
93 U_ASSERT(gCache != NULL); in getInstance()
101 U_ASSERT(gNoValue != NULL); in UnifiedCache()
275 U_ASSERT(value == NULL); in _poll()
276 U_ASSERT(status == U_ZERO_ERROR); in _poll()
304 U_ASSERT(value == NULL); in _get()
305 U_ASSERT(status == U_ZERO_ERROR); in _get()
316 U_ASSERT(value == NULL || !value->allSoftReferences()); in _get()
317 U_ASSERT(value != NULL || status != U_ZERO_ERROR); in _get()
337 U_ASSERT(_inProgress(element)); in _put()
Duhash.c183 U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode)); in _uhash_internalRemoveElement()
191 U_ASSERT(hash != NULL); in _uhash_internalSetResizePolicy()
192 U_ASSERT(((int32_t)policy) >= 0); in _uhash_internalSetResizePolicy()
193 U_ASSERT(((int32_t)policy) < 3); in _uhash_internalSetResizePolicy()
217 U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH); in _uhash_allocate()
255 U_ASSERT(keyHash != NULL); in _uhash_init()
256 U_ASSERT(keyComp != NULL); in _uhash_init()
377 U_ASSERT(FALSE); in _uhash_find()
423 U_ASSERT(e != NULL); in _uhash_rehash()
424 U_ASSERT(e->hashcode == HASH_EMPTY); in _uhash_rehash()
[all …]
Duassert.h26 # define U_ASSERT(exp) assert(exp) macro
28 # define U_ASSERT(exp) macro
/external/icu/icu4c/source/samples/ucnv/
Dconvsamp.cpp49 #define U_ASSERT(x) { if(U_FAILURE(x)) {fflush(stdout);fflush(stderr); fprintf(stderr, #x " == %s\… macro
453 U_ASSERT(status); in convsample_06()
540 U_ASSERT(status); in convsample_12()
576 U_ASSERT(status); in convsample_13()
595 U_ASSERT(status); in convsample_13()
632 U_ASSERT(status); in convsample_20_didSubstitute()
635 U_ASSERT(status); in convsample_20_didSubstitute()
645 U_ASSERT(status); in convsample_20_didSubstitute()
660 U_ASSERT(status); in convsample_20_didSubstitute()
663 U_ASSERT(status); in convsample_20_didSubstitute()
[all …]

1234567