Home | History | Annotate | Download | only in i18n

Lines Matching full:errorcode

66                            UErrorCode &errorCode) {
67 if (U_FAILURE(errorCode)) { return NULL; }
73 errorCode = U_MEMORY_ALLOCATION_ERROR;
103 UErrorCode errorCode = U_ZERO_ERROR;
104 UCollationResult cmp = coll.compare(s, *si, errorCode);
145 UErrorCode &errorCode) {
153 collatorPrimaryOnly.compare(name, bucket->lowerBoundary_, errorCode);
192 const UnicodeString &name, UErrorCode &errorCode) const {
193 return buckets_->getBucketIndex(name, *collatorPrimaryOnly_, errorCode);
255 AlphabeticIndex::ImmutableIndex *AlphabeticIndex::buildImmutableIndex(UErrorCode &errorCode) {
256 if (U_FAILURE(errorCode)) { return NULL; }
262 LocalPointer<BucketList> immutableBucketList(createBucketList(errorCode));
266 errorCode = U_MEMORY_ALLOCATION_ERROR;
271 errorCode = U_MEMORY_ALLOCATION_ERROR;
296 void AlphabeticIndex::initLabels(UVector &indexCharacters, UErrorCode &errorCode) const {
297 const Normalizer2 *nfkdNormalizer = Normalizer2::getNFKDInstance(errorCode);
298 if (U_FAILURE(errorCode)) { return; }
323 errorCode = U_MEMORY_ALLOCATION_ERROR;
330 if (collatorPrimaryOnly_->compare(*item, firstScriptBoundary, errorCode) < 0) {
332 } else if (collatorPrimaryOnly_->compare(*item, overflowBoundary, errorCode) >= 0) {
335 collatorPrimaryOnly_->compare(*item, separated(*item), errorCode) == 0) {
342 ownedString(*item, ownedItem, errorCode), ~insertionPoint, errorCode);
347 ownedString(*item, ownedItem, errorCode), insertionPoint);
352 if (U_FAILURE(errorCode)) { return; }
398 const UnicodeString &s, UVector64 &ces, UErrorCode &errorCode) {
400 coll.internalGetCEs(s, ces, errorCode);
401 if (U_FAILURE(errorCode)) { return FALSE; }
419 BucketList *AlphabeticIndex::createBucketList(UErrorCode &errorCode) const {
421 UVector indexCharacters(errorCode);
423 initLabels(indexCharacters, errorCode);
424 if (U_FAILURE(errorCode)) { return NULL; }
427 UVector64 ces(errorCode);
429 if (collatorPrimaryOnly_->getAttribute(UCOL_ALTERNATE_HANDLING, errorCode) == UCOL_SHIFTED) {
430 variableTop = collatorPrimaryOnly_->getVariableTop(errorCode);
447 LocalPointer<UVector> bucketList(new UVector(errorCode));
449 errorCode = U_MEMORY_ALLOCATION_ERROR;
457 errorCode = U_MEMORY_ALLOCATION_ERROR;
460 bucketList->addElement(bucket, errorCode);
461 if (U_FAILURE(errorCode)) { return NULL; }
471 if (collatorPrimaryOnly_->compare(current, *scriptUpperBoundary, errorCode) >= 0) {
477 errorCode) < 0) {
487 errorCode = U_MEMORY_ALLOCATION_ERROR;
490 bucketList->addElement(bucket, errorCode);
496 errorCode = U_MEMORY_ALLOCATION_ERROR;
499 bucketList->addElement(bucket, errorCode);
512 ces, errorCode) &&
525 ces, errorCode)) {
534 errorCode = U_MEMORY_ALLOCATION_ERROR;
538 bucketList->addElement(bucket, errorCode);
545 if (U_FAILURE(errorCode)) { return NULL; }
550 errorCode = U_MEMORY_ALLOCATION_ERROR;
559 errorCode = U_MEMORY_ALLOCATION_ERROR;
562 bucketList->addElement(bucket, errorCode); // final
578 if (U_FAILURE(errorCode)) { return NULL; }
582 errorCode = U_MEMORY_ALLOCATION_ERROR;
606 LocalPointer<UVector> publicBucketList(new UVector(errorCode));
608 errorCode = U_MEMORY_ALLOCATION_ERROR;
616 publicBucketList->addElement(bucket, errorCode);
619 if (U_FAILURE(errorCode)) { return NULL; }
622 errorCode = U_MEMORY_ALLOCATION_ERROR;
633 void AlphabeticIndex::initBuckets(UErrorCode &errorCode) {
634 if (U_FAILURE(errorCode) || buckets_ != NULL) {
637 buckets_ = createBucketList(errorCode);
638 if (U_FAILURE(errorCode) || inputList_ == NULL || inputList_->isEmpty()) {
644 inputList_->sortWithUComparator(recordCompareFn, collator_, errorCode);
668 collatorPrimaryOnly_->compare(r->name_, *upperBoundary, errorCode) >= 0) {
684 bucket->records_ = new UVector(errorCode);
686 errorCode = U_MEMORY_ALLOCATION_ERROR;
690 bucket->records_->addElement(r, errorCode);
767 UBool AlphabeticIndex::addChineseIndexCharacters(UErrorCode &errorCode) {
769 collatorPrimaryOnly_->internalAddContractions(BASE[0], contractions, errorCode);
770 if (U_FAILURE(errorCode) || contractions.isEmpty()) { return FALSE; }
973 UErrorCode errorCode = U_ZERO_ERROR;
974 return col->compare(*leftString, *rightString, errorCode);
987 UErrorCode errorCode = U_ZERO_ERROR;
988 return col->compare(leftRec->name_, rightRec->name_, errorCode);