• Home
  • Raw
  • Download

Lines Matching refs:bucketIndex

373         int32_t bucketIndex = 0;  in ManyLocalesTest()  local
376 assertEquals("bucket index", bucketIndex, index.getBucketIndex()); in ManyLocalesTest()
381 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex); in ManyLocalesTest()
384 " index=" + bucketIndex, in ManyLocalesTest()
389 ++bucketIndex; in ManyLocalesTest()
393 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest()
395 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest()
567 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status); in TestHaniFirst() local
568 assertEquals("getBucketIndex(U+897F)", 0, bucketIndex); // underflow bucket in TestHaniFirst()
569 bucketIndex = index.getBucketIndex("i", status); in TestHaniFirst()
570 assertEquals("getBucketIndex(i)", 9, bucketIndex); in TestHaniFirst()
571 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status); in TestHaniFirst()
572 assertEquals("getBucketIndex(Greek alpha)", 27, bucketIndex); in TestHaniFirst()
574 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status); in TestHaniFirst()
575 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex); in TestHaniFirst()
576 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status); in TestHaniFirst()
577 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex); in TestHaniFirst()
596 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status); in TestPinyinFirst() local
597 …als("getBucketIndex(U+897F)", (int32_t)((UChar)0x0058/*X*/ - (UChar)0x0041/*A*/ + 1), bucketIndex); in TestPinyinFirst()
598 bucketIndex = index.getBucketIndex("i", status); in TestPinyinFirst()
599 assertEquals("getBucketIndex(i)", 9, bucketIndex); in TestPinyinFirst()
600 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status); in TestPinyinFirst()
601 assertEquals("getBucketIndex(Greek alpha)", (int32_t)27, bucketIndex); in TestPinyinFirst()
603 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status); in TestPinyinFirst()
604 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex); in TestPinyinFirst()
605 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status); in TestPinyinFirst()
606 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex); in TestPinyinFirst()
621 int32_t bucketIndex; in TestSchSt() member
644 assertEquals(msg, testCase.bucketIndex, index.getBucketIndex(name, status)); in TestSchSt()
646 assertEquals(msg, testCase.bucketIndex, immIndex->getBucketIndex(name, status)); in TestSchSt()
648 assertEquals(msg, label, immIndex->getBucket(testCase.bucketIndex)->getLabel()); in TestSchSt()
722 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x4e5d), status); in TestChineseUnihan() local
723 assertEquals("getBucketIndex(U+4E5D)", 5, bucketIndex); in TestChineseUnihan()
725 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x7527), status); in TestChineseUnihan()
726 assertEquals("getBucketIndex(U+7527)", 101, bucketIndex); in TestChineseUnihan()