Lines Matching defs:BucketList
122 // The BucketList is not in the anonymous namespace because only Clang
125 class BucketList : public UObject {
127 BucketList(UVector *bucketList, UVector *publicBucketList)
128 : bucketList_(bucketList), immutableVisibleList_(publicBucketList) {
137 virtual ~BucketList();
172 BucketList::~BucketList() {
256 // In C++, the ImmutableIndex must own its copy of the BucketList,
261 LocalPointer<BucketList> immutableBucketList(createBucketList(errorCode));
419 BucketList *AlphabeticIndex::createBucketList(UErrorCode &errorCode) const {
453 LocalPointer<UVector> bucketList(new UVector(errorCode));
454 if (bucketList.isNull()) {
458 bucketList->setDeleter(uprv_deleteUObject);
466 bucketList->addElement(bucket, errorCode);
488 if (skippedScript && bucketList->size() > 1) {
496 bucketList->addElement(bucket, errorCode);
505 bucketList->addElement(bucket, errorCode);
520 for (int32_t i = bucketList->size() - 2;; --i) {
521 Bucket *singleBucket = getBucket(*bucketList, i);
542 bucketList->addElement(bucket, errorCode);
550 if (bucketList->size() == 1) {
552 BucketList *bl = new BucketList(bucketList.getAlias(), bucketList.getAlias());
557 bucketList.orphan();
566 bucketList->addElement(bucket, errorCode); // final
584 BucketList *bl = new BucketList(bucketList.getAlias(), bucketList.getAlias());
589 bucketList.orphan();
594 int32_t i = bucketList->size() - 1;
595 Bucket *nextBucket = getBucket(*bucketList, i);
597 bucket = getBucket(*bucketList, i);
611 if (bucketList.isNull()) {
616 // This vector shares its objects with the bucketList.
617 for (int32_t i = 0; i < bucketList->size(); ++i) {
618 bucket = getBucket(*bucketList, i);
624 BucketList *bl = new BucketList(bucketList.getAlias(), publicBucketList.getAlias());
629 bucketList.orphan();