Home
last modified time | relevance | path

Searched refs:immIndex (Results 1 – 4 of 4) sorted by relevance

/external/icu/icu4c/source/test/intltest/
Dalphaindextst.cpp368 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in ManyLocalesTest() local
370 TEST_ASSERT(lc == immIndex->getBucketCount()); in ManyLocalesTest()
381 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex); in ManyLocalesTest()
393 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest()
394 TEST_ASSERT(immIndex->getBucket(-1) == NULL); in ManyLocalesTest()
395 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest()
538 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestIndexCharactersList() local
545 joinLabelsAndAppend(*immIndex, actualIndexCharacters)); in TestIndexCharactersList()
615 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestSchSt() local
618 assertEquals("immutable getBucketCount()", 31, immIndex->getBucketCount()); in TestSchSt()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DAlphabeticIndexTest.java412 ImmutableIndex<Integer> immIndex = index.buildImmutableIndex(); in checkBuckets() local
434 labels.get(bucketIndex), immIndex.getBucket(bucketIndex).getLabel()); in checkBuckets()
436 bucket.getLabelType(), immIndex.getBucket(bucketIndex).getLabelType()); in checkBuckets()
442 bucketIndex, immIndex.getBucketIndex(name)); in checkBuckets()
467 assertEquals("immutable getBucketCount()", bucketIndex, immIndex.getBucketCount()); in checkBuckets()
469 assertNull("immutable getBucket(-1)", immIndex.getBucket(-1)); in checkBuckets()
470 assertNull("immutable getBucket(count)", immIndex.getBucket(bucketIndex)); in checkBuckets()
472 for (Bucket<Integer> bucket : immIndex) { in checkBuckets()
978 ImmutableIndex immIndex = index.buildImmutableIndex(); in TestSchSt() local
980 assertEquals("immutable getBucketCount()", 31, immIndex.getBucketCount()); in TestSchSt()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DAlphabeticIndexTest.java409 ImmutableIndex<Integer> immIndex = index.buildImmutableIndex(); in checkBuckets() local
431 labels.get(bucketIndex), immIndex.getBucket(bucketIndex).getLabel()); in checkBuckets()
433 bucket.getLabelType(), immIndex.getBucket(bucketIndex).getLabelType()); in checkBuckets()
439 bucketIndex, immIndex.getBucketIndex(name)); in checkBuckets()
464 assertEquals("immutable getBucketCount()", bucketIndex, immIndex.getBucketCount()); in checkBuckets()
466 assertNull("immutable getBucket(-1)", immIndex.getBucket(-1)); in checkBuckets()
467 assertNull("immutable getBucket(count)", immIndex.getBucket(bucketIndex)); in checkBuckets()
469 for (Bucket<Integer> bucket : immIndex) { in checkBuckets()
975 ImmutableIndex immIndex = index.buildImmutableIndex(); in TestSchSt() local
977 assertEquals("immutable getBucketCount()", 31, immIndex.getBucketCount()); in TestSchSt()
[all …]
/external/icu/icu4c/source/i18n/
Dalphaindex.cpp269 ImmutableIndex *immIndex = new ImmutableIndex(immutableBucketList.getAlias(), coll.getAlias()); in buildImmutableIndex() local
270 if (immIndex == NULL) { in buildImmutableIndex()
277 return immIndex; in buildImmutableIndex()