Lines Matching defs:errorCode
35 CollationIterator::CEBuffer::ensureAppendCapacity(int32_t appCap, UErrorCode &errorCode) {
38 if(U_FAILURE(errorCode)) { return FALSE; }
48 errorCode = U_MEMORY_ALLOCATION_ERROR;
153 UErrorCode errorCode = U_ZERO_ERROR;
155 if(length > 0 && ceBuffer.ensureAppendCapacity(length, errorCode)) {
196 CollationIterator::fetchCEs(UErrorCode &errorCode) {
197 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) {
205 CollationIterator::handleNextCE32(UChar32 &c, UErrorCode &errorCode) {
206 c = nextCodePoint(errorCode);
231 CollationIterator::getCE32FromBuilderData(uint32_t /*ce32*/, UErrorCode &errorCode) {
232 if(U_SUCCESS(errorCode)) { errorCode = U_INTERNAL_PROGRAM_ERROR; }
238 UErrorCode &errorCode) {
240 appendCEsFromCE32(d, c, ce32, TRUE, errorCode);
241 if(U_SUCCESS(errorCode)) {
250 UBool forward, UErrorCode &errorCode) {
255 if(U_SUCCESS(errorCode)) { errorCode = U_INTERNAL_PROGRAM_ERROR; }
258 ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode);
261 ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode);
264 if(ceBuffer.ensureAppendCapacity(2, errorCode)) {
273 if(ceBuffer.ensureAppendCapacity(length, errorCode)) {
283 if(ceBuffer.ensureAppendCapacity(length, errorCode)) {
291 ce32 = getCE32FromBuilderData(ce32, errorCode);
292 if(U_FAILURE(errorCode)) { return; }
299 if(forward) { backwardNumCodePoints(1, errorCode); }
300 ce32 = getCE32FromPrefix(d, ce32, errorCode);
301 if(forward) { forwardNumCodePoints(1, errorCode); }
316 nextCp = nextCodePoint(errorCode);
325 backwardNumCodePoints(1, errorCode);
330 nextCp = nextSkippedCodePoint(errorCode);
339 backwardNumSkipped(1, errorCode);
344 ce32 = nextCE32FromContraction(d, ce32, p + 2, defaultCE32, nextCp, errorCode);
354 appendNumericCEs(ce32, forward, errorCode);
365 ceBuffer.append(Collation::NO_CE, errorCode);
382 if(ceBuffer.ensureAppendCapacity(t == 0 ? 2 : 3, errorCode)) {
394 appendCEsFromCE32(d, U_SENTINEL, jamoCE32s[c], forward, errorCode);
395 appendCEsFromCE32(d, U_SENTINEL, jamoCE32s[19 + v], forward, errorCode);
429 ceBuffer.append(d->getCEFromOffsetCE32(c, ce32), errorCode);
437 ceBuffer.append(Collation::unassignedCEFromCodePoint(c), errorCode);
442 errorCode);
447 UErrorCode &errorCode) {
455 UChar32 c = previousCodePoint(errorCode);
464 forwardNumCodePoints(lookBehind, errorCode);
469 CollationIterator::nextSkippedCodePoint(UErrorCode &errorCode) {
472 UChar32 c = nextCodePoint(errorCode);
479 CollationIterator::backwardNumSkipped(int32_t n, UErrorCode &errorCode) {
483 backwardNumCodePoints(n, errorCode);
490 UErrorCode &errorCode) {
508 if(!USTRINGTRIE_HAS_NEXT(match) || (c = nextSkippedCodePoint(errorCode)) < 0) {
513 } else if(match == USTRINGTRIE_NO_MATCH || (nextCp = nextSkippedCodePoint(errorCode)) < 0) {
528 backwardNumSkipped(sinceMatch, errorCode);
529 c = nextSkippedCodePoint(errorCode);
535 d, suffixes, ce32, lookAhead, c, errorCode);
550 backwardNumSkipped(sinceMatch, errorCode);
558 UErrorCode &errorCode) {
559 if(U_FAILURE(errorCode)) { return 0; }
580 UChar32 nextCp = nextSkippedCodePoint(errorCode);
583 backwardNumSkipped(1, errorCode);
591 backwardNumSkipped(2, errorCode);
602 errorCode = U_MEMORY_ALLOCATION_ERROR;
609 backwardNumCodePoints(lookAhead, errorCode);
610 suffixes.firstForCodePoint(nextCodePoint(errorCode));
612 suffixes.nextForCodePoint(nextCodePoint(errorCode));
615 forwardNumCodePoints(2, errorCode);
644 if((c = nextSkippedCodePoint(errorCode)) < 0) { break; }
652 backwardNumSkipped(sinceMatch, errorCode);
662 appendCEsFromCE32(d, c, ce32, TRUE, errorCode);
685 CollationIterator::appendNumericCEs(uint32_t ce32, UBool forward, UErrorCode &errorCode) {
691 digits.append(digit, errorCode);
693 UChar32 c = nextCodePoint(errorCode);
700 backwardNumCodePoints(1, errorCode);
708 digits.append(digit, errorCode);
709 UChar32 c = previousCodePoint(errorCode);
716 forwardNumCodePoints(1, errorCode);
729 if(U_FAILURE(errorCode)) { return; }
737 appendNumericSegmentCEs(digits.data() + pos, segmentLength, errorCode);
739 } while(U_SUCCESS(errorCode) && pos < digits.length());
743 CollationIterator::appendNumericSegmentCEs(const char *digits, int32_t length, UErrorCode &errorCode) {
764 ceBuffer.append(Collation::makeCE(primary), errorCode);
774 ceBuffer.append(Collation::makeCE(primary), errorCode);
787 ceBuffer.append(Collation::makeCE(primary), errorCode);
825 ceBuffer.append(Collation::makeCE(primary), errorCode);
836 errorCode);
840 CollationIterator::previousCE(UVector32 &offsets, UErrorCode &errorCode) {
847 UChar32 c = previousCodePoint(errorCode);
850 return previousCEUnsafe(c, offsets, errorCode);
865 appendCEsFromCE32(d, c, ce32, FALSE, errorCode);
866 if(U_SUCCESS(errorCode)) {
868 offsets.addElement(getOffset(), errorCode);
872 offsets.addElement(limitOffset, errorCode);
882 CollationIterator::previousCEUnsafe(UChar32 c, UVector32 &offsets, UErrorCode &errorCode) {
899 while((c = previousCodePoint(errorCode)) >= 0) {
919 (void)nextCE(errorCode);
920 U_ASSERT(U_FAILURE(errorCode) || ceBuffer.get(ceBuffer.length - 1) != Collation::NO_CE);
927 offsets.addElement(offset, errorCode);
932 offsets.addElement(offset, errorCode);
937 offsets.addElement(offset, errorCode);
941 backwardNumCodePoints(numBackward, errorCode);
944 if(U_SUCCESS(errorCode)) {