Home
last modified time | relevance | path

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

/external/icu/icu4c/source/test/intltest/
Dalphaindextst.cpp375 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in ManyLocalesTest() local
377 TEST_ASSERT(lc == immIndex->getBucketCount()); in ManyLocalesTest()
388 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex); in ManyLocalesTest()
400 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest()
401 TEST_ASSERT(immIndex->getBucket(-1) == NULL); in ManyLocalesTest()
402 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest()
545 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestIndexCharactersList() local
552 joinLabelsAndAppend(*immIndex, actualIndexCharacters)); in TestIndexCharactersList()
622 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestSchSt() local
625 assertEquals("immutable getBucketCount()", 31, immIndex->getBucketCount()); in TestSchSt()
[all …]
/external/cronet/third_party/icu/source/test/intltest/
Dalphaindextst.cpp375 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in ManyLocalesTest() local
377 TEST_ASSERT(lc == immIndex->getBucketCount()); in ManyLocalesTest()
388 const AlphabeticIndex::Bucket *bucket = immIndex->getBucket(bucketIndex); in ManyLocalesTest()
400 TEST_ASSERT(immIndex->getBucketCount() == bucketIndex); in ManyLocalesTest()
401 TEST_ASSERT(immIndex->getBucket(-1) == NULL); in ManyLocalesTest()
402 TEST_ASSERT(immIndex->getBucket(bucketIndex) == NULL); in ManyLocalesTest()
545 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestIndexCharactersList() local
552 joinLabelsAndAppend(*immIndex, actualIndexCharacters)); in TestIndexCharactersList()
622 LocalPointer<AlphabeticIndex::ImmutableIndex> immIndex(index.buildImmutableIndex(status)); in TestSchSt() local
625 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/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/cronet/third_party/icu/source/i18n/
Dalphaindex.cpp268 ImmutableIndex *immIndex = new ImmutableIndex(immutableBucketList.getAlias(), coll.getAlias()); in buildImmutableIndex() local
269 if (immIndex == NULL) { in buildImmutableIndex()
276 return immIndex; in buildImmutableIndex()
/external/icu/icu4c/source/i18n/
Dalphaindex.cpp268 ImmutableIndex *immIndex = new ImmutableIndex(immutableBucketList.getAlias(), coll.getAlias()); in buildImmutableIndex() local
269 if (immIndex == NULL) { in buildImmutableIndex()
276 return immIndex; in buildImmutableIndex()