HomeSort by relevance Sort by last modified time
    Searched refs:AlphabeticIndex (Results 1 - 8 of 8) sorted by null

  /libcore/luni/src/test/java/libcore/icu/
AlphabeticIndexTest.java 22 private static AlphabeticIndex.ImmutableIndex createIndex(Locale locale) {
23 return new AlphabeticIndex(locale).addLabels(Locale.US)
27 private static void assertHasLabel(AlphabeticIndex.ImmutableIndex ii, String string, String expectedLabel) {
35 AlphabeticIndex.ImmutableIndex en = createIndex(Locale.ENGLISH);
41 AlphabeticIndex.ImmutableIndex ja = createIndex(Locale.JAPANESE);
68 AlphabeticIndex.ImmutableIndex ko = createIndex(Locale.KOREAN);
78 AlphabeticIndex.ImmutableIndex cs = createIndex(new Locale("cs"));
92 AlphabeticIndex.ImmutableIndex fr = createIndex(Locale.FRENCH);
99 AlphabeticIndex.ImmutableIndex da = createIndex(new Locale("da"));
108 AlphabeticIndex.ImmutableIndex de = createIndex(Locale.GERMAN)
    [all...]
  /external/icu4c/i18n/unicode/
alphaindex.h 82 * AlphabeticIndex supports the creation of a UI index appropriate for a given language.
110 * The AlphabeticIndex class is not intended for public subclassing.
126 * AlphabeticIndex index = new AlphabeticIndex(desiredLocale, status);
159 * <p>Callers can also use the AlphabeticIndex::ImmutableIndex, or the AlphabeticIndex itself,
160 * to support sorting on a client that doesn't support AlphabeticIndex functionality.
163 * The corresponding AlphabeticIndex methods are not thread-safe because
168 * <li>The AlphabeticIndex bucket iterator or ImmutableIndex.getBucket(0..getBucketCount-1)
187 class U_I18N_API AlphabeticIndex: public UObject
    [all...]
  /libcore/luni/src/main/native/
libcore_icu_AlphabeticIndex.cpp 17 #define LOG_TAG "AlphabeticIndex"
28 static AlphabeticIndex* fromPeer(jlong peer) {
29 return reinterpret_cast<AlphabeticIndex*>(static_cast<uintptr_t>(peer));
34 AlphabeticIndex* ai = new AlphabeticIndex(getLocale(env, javaLocale), status);
35 if (maybeThrowIcuException(env, "AlphabeticIndex", status)) {
46 AlphabeticIndex* ai = fromPeer(peer);
51 AlphabeticIndex* ai = fromPeer(peer);
54 maybeThrowIcuException(env, "AlphabeticIndex::setMaxLabelCount", status);
58 AlphabeticIndex* ai = fromPeer(peer)
    [all...]
  /libcore/luni/src/main/java/libcore/icu/
AlphabeticIndex.java 22 * Exposes icu4c's AlphabeticIndex.
24 public final class AlphabeticIndex {
28 * thread safe snapshot view of an AlphabeticIndex at the moment it was
78 * Creates a new AlphabeticIndex for the given locale.
80 public AlphabeticIndex(Locale locale) {
104 public synchronized AlphabeticIndex setMaxLabelCount(int count) {
117 public synchronized AlphabeticIndex addLabels(Locale locale) {
126 public synchronized AlphabeticIndex addLabelRange(int codePointStart, int codePointEnd) {
155 * Returns an ImmutableIndex created from this AlphabeticIndex.
  /external/icu4c/i18n/
alphaindex.cpp 59 delete static_cast<AlphabeticIndex::Record *>(obj);
81 inline AlphabeticIndex::Bucket *getBucket(const UVector &list, int32_t i) {
82 return static_cast<AlphabeticIndex::Bucket *>(list[i]);
85 inline AlphabeticIndex::Record *getRecord(const UVector &list, int32_t i) {
86 return static_cast<AlphabeticIndex::Record *>(list[i]);
153 const AlphabeticIndex::Bucket *bucket = getBucket(*bucketList_, i);
162 const AlphabeticIndex::Bucket *bucket = getBucket(*bucketList_, start);
175 AlphabeticIndex::ImmutableIndex::~ImmutableIndex() {
181 AlphabeticIndex::ImmutableIndex::getBucketCount() const {
186 AlphabeticIndex::ImmutableIndex::getBucketIndex
    [all...]
  /external/icu4c/test/intltest/
alphaindextst.cpp 30 UnicodeString joinLabelsAndAppend(AlphabeticIndex::ImmutableIndex &index, UnicodeString &dest) {
32 const AlphabeticIndex::Bucket *bucket;
52 if (exec) logln("TestSuite AlphabeticIndex: ");
85 AlphabeticIndex *index = new AlphabeticIndex(Locale::getEnglish(), status);
99 index = new AlphabeticIndex(coll, status);
111 index = new AlphabeticIndex(Locale::getEnglish(), status);
128 index = new AlphabeticIndex(Locale::getEnglish(), status);
130 AlphabeticIndex &aip = index->addLabels(Locale::getJapanese(), status);
141 index = new AlphabeticIndex(Locale::getGerman(), status)
    [all...]
uobjtest.cpp 487 TESTCLASSID_NONE_CTOR(AlphabeticIndex, (Locale::getEnglish(), status));
  /packages/providers/ContactsProvider/src/com/android/providers/contacts/
ContactLocaleUtils.java 38 import libcore.icu.AlphabeticIndex;
39 import libcore.icu.AlphabeticIndex.ImmutableIndex;
62 * labels: uses ICU AlphabeticIndex for labels and extends by labeling
74 // AlphabeticIndex.getBucketLabel() uses a binary search across
85 mAlphabeticIndex = new AlphabeticIndex(locale)
105 * Returns the bucket index for the specified string. AlphabeticIndex
110 * the bucket indexes returned by AlphabeticIndex in order to make room
147 * Returns the number of buckets in use (one more than AlphabeticIndex
157 * number bucket; for all others, the AlphabeticIndex label is returned.
201 // Determine which bucket AlphabeticIndex is lumping unclassifie
    [all...]

Completed in 408 milliseconds