Lines Matching refs:getBucketIndex
290 // getBucketIndex()
295 int32_t n = index->getBucketIndex(adam, status);
298 n = index->getBucketIndex(baker, status);
300 n = index->getBucketIndex(Cyrillic, status);
302 n = index->getBucketIndex(zed, status);
306 n = index->getBucketIndex();
326 n = index->getBucketIndex(adam, status);
328 assertEquals("Russian index.getBucketIndex(adam)", expectedLatinIndex, n);
329 n = index->getBucketIndex(baker, status);
330 assertEquals("Russian index.getBucketIndex(baker)", expectedLatinIndex, n);
331 n = index->getBucketIndex(Cyrillic, status);
332 assertEquals("Russian index.getBucketIndex(Cyrillic)", 1, n);
333 n = index->getBucketIndex(zed, status);
334 assertEquals("Russian index.getBucketIndex(zed)", expectedLatinIndex, n);
372 assertEquals("initial bucket index", -1, index.getBucketIndex());
376 assertEquals("bucket index", bucketIndex, index.getBucketIndex());
567 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status);
568 assertEquals("getBucketIndex(U+897F)", 0, bucketIndex); // underflow bucket
569 bucketIndex = index.getBucketIndex("i", status);
570 assertEquals("getBucketIndex(i)", 9, bucketIndex);
571 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status);
572 assertEquals("getBucketIndex(Greek alpha)", 27, bucketIndex);
574 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status);
575 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex);
576 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status);
577 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex);
596 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x897f), status);
597 assertEquals("getBucketIndex(U+897F)", (int32_t)((UChar)0x0058/*X*/ - (UChar)0x0041/*A*/ + 1), bucketIndex);
598 bucketIndex = index.getBucketIndex("i", status);
599 assertEquals("getBucketIndex(i)", 9, bucketIndex);
600 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x03B1), status);
601 assertEquals("getBucketIndex(Greek alpha)", (int32_t)27, bucketIndex);
603 bucketIndex = index.getBucketIndex(UnicodeString((UChar32)0x50005), status);
604 assertEquals("getBucketIndex(U+50005)", 27, bucketIndex);
605 bucketIndex = index.getBucketIndex(UnicodeString((UChar)0xFFFF), status);
606 assertEquals("getBucketIndex(U+FFFF)", 27, bucketIndex);
643 sprintf(msg, "getBucketIndex(%s)", testCase.name);
644 assertEquals(msg, testCase.bucketIndex, index.getBucketIndex(name, status));
645 sprintf(msg, "immutable getBucketIndex(%s)", testCase.name);
646 assertEquals(msg, testCase.bucketIndex, immIndex->getBucketIndex(name, status));
695 assertEquals(msg, overflowIndex, immIndex->getBucketIndex(UnicodeString(kanji[i]), status));
722 int32_t bucketIndex = index.getBucketIndex(UnicodeString((UChar)0x4e5d), status);
723 assertEquals("getBucketIndex(U+4E5D)", 5, bucketIndex);
725 bucketIndex = index.getBucketIndex
726 assertEquals("getBucketIndex(U+7527)", 101, bucketIndex);