Lines Matching defs:bucketIndex
371 int32_t bucketIndex = 0;
374 assertEquals("bucket index", bucketIndex, index.getBucketIndex());
379 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex);
382 " index=" + bucketIndex,
387 ++bucketIndex;
391 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex);
393 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL);
565 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status);
566 assertEquals("getBucketIndex(U+897F)", 0, bucketIndex); // underflow bucket
567 bucketIndex = index.getBucketIndex("i", status);
568 assertEquals("getBucketIndex(i)", 9, bucketIndex);
569 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status);
570 assertEquals("getBucketIndex(Greek alpha)", 27, bucketIndex);
572 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status);
573 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex);
574 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status);
575 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex);
594 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status);
595 assertEquals("getBucketIndex(U+897F)", (int32_t)((UChar)0x0058/*X*/ - (UChar)0x0041/*A*/ + 1), bucketIndex);
596 bucketIndex = index.getBucketIndex("i", status);
597 assertEquals("getBucketIndex(i)", 9, bucketIndex);
598 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status);
599 assertEquals("getBucketIndex(Greek alpha)", (int32_t)27, bucketIndex);
601 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status);
602 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex);
603 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status);
604 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex);
619 int32_t bucketIndex;
642 assertEquals(msg, testCase.bucketIndex, index.getBucketIndex(name, status));
644 assertEquals(msg, testCase.bucketIndex, immIndex->getBucketIndex(name, status));
646 assertEquals(msg, label, immIndex->getBucket(testCase.bucketIndex)->getLabel());
719 // bucketIndex = radical number, adjusted for simplified radicals in lower buckets.
720 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x4e5d), status);
721 assertEquals("getBucketIndex(U+4E5D)", 5, bucketIndex);
723 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x7527), status);
724 bucketIndex);