Home | History | Annotate | Download | only in i18n

Lines Matching full:bucket

82 inline AlphabeticIndex::Bucket *getBucket(const UVector &list, int32_t i) {
83 return static_cast<AlphabeticIndex::Bucket *>(list[i]);
151 const AlphabeticIndex::Bucket *bucket = getBucket(*bucketList_, i);
153 collatorPrimaryOnly.compare(name, bucket->lowerBoundary_, errorCode);
160 const AlphabeticIndex::Bucket *bucket = getBucket(*bucketList_, start);
161 if (bucket->displayBucket_ != NULL) {
162 bucket = bucket->displayBucket_;
164 return bucket->displayIndex_;
196 const AlphabeticIndex::Bucket *
261 // or called after using the old-style bucket iterator API.
333 // Ignore an index character that will land in the overflow bucket.
437 Bucket *asciiBuckets[26] = {
441 Bucket *pinyinBuckets[26] = {
453 // underflow bucket
454 Bucket *bucket = new Bucket(getUnderflowLabel(), emptyString_, U_ALPHAINDEX_UNDERFLOW);
455 if (bucket == NULL) {
459 bucketList->addElement(bucket, errorCode);
484 bucket = new Bucket(getInflowLabel(), inflowBoundary, U_ALPHAINDEX_INFLOW);
485 if (bucket == NULL) {
489 bucketList->addElement(bucket, errorCode);
492 // Add a bucket with the current label.
493 bucket = new Bucket(fixLabel(current, temp), current, U_ALPHAINDEX_NORMAL);
494 if (bucket == NULL) {
498 bucketList->addElement(bucket, errorCode);
502 asciiBuckets[c - 0x41] = bucket;
505 pinyinBuckets[c - 0x41] = bucket;
515 Bucket *singleBucket = getBucket(*bucketList, i);
517 // There is no single-character bucket since the last
525 // Add an invisible bucket that redirects strings greater than the expansion
526 // to the previous single-character bucket.
529 bucket = new Bucket(emptyString_,
532 if (bucket == NULL) {
536 bucket->displayBucket_ = singleBucket;
537 bucketList->addElement(bucket, errorCode);
555 // overflow bucket
556 bucket = new Bucket(getOverflowLabel(), *scriptUpperBoundary, U_ALPHAINDEX_OVERFLOW);
557 if (bucket == NULL) {
561 bucketList->addElement(bucket, errorCode); // final
565 Bucket *asciiBucket = NULL;
590 Bucket *nextBucket = getBucket(*bucketList, i);
592 bucket = getBucket(*bucketList, i);
593 if (bucket->displayBucket_ != NULL) {
596 if (bucket->labelType_ == U_ALPHAINDEX_INFLOW) {
598 bucket->displayBucket_ = nextBucket;
602 nextBucket = bucket;
612 bucket = getBucket(*bucketList, i);
613 if (bucket->displayBucket_ == NULL) {
614 publicBucketList->addElement(bucket, errorCode);
645 // If the item doesn't go in the current bucket, we find the next bucket that contains it.
650 Bucket *currentBucket = getBucket(*buckets_->bucketList_, 0);
652 Bucket *nextBucket;
663 // if the current bucket isn't the right one, find the one that is
664 // We have a special flag for the last bucket so that we don't look any further
676 // now put the record into the bucket.
677 Bucket *bucket = currentBucket;
678 if (bucket->displayBucket_ != NULL) {
679 bucket = bucket->displayBucket_;
681 if (bucket->records_ == NULL) {
682 bucket->records_ = new UVector(errorCode);
683 if (bucket->records_ == NULL) {
688 bucket->records_->addElement(r, errorCode);
1182 // We are trying to iterate over the items in a bucket, but there is no
1183 // current bucket from the enumeration of buckets.
1233 AlphabeticIndex::Bucket::Bucket(const UnicodeString &label,
1242 AlphabeticIndex::Bucket::~Bucket() {