Home
last modified time | relevance | path

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

/external/icu/android_icu4j/src/main/java/android/icu/text/
DAlphabeticIndex.java423 List<String> indexCharacters = new ArrayList<String>(); in initLabels() local
453 … int insertionPoint = Collections.binarySearch(indexCharacters, item, collatorPrimaryOnly); in initLabels()
455 indexCharacters.add(~insertionPoint, item); in initLabels()
457 String itemAlreadyIn = indexCharacters.get(insertionPoint); in initLabels()
459 indexCharacters.set(insertionPoint, item); in initLabels()
467 final int size = indexCharacters.size() - 1; in initLabels()
471 for (Iterator<String> it = indexCharacters.iterator(); it.hasNext();) { in initLabels()
483 return indexCharacters; in initLabels()
958 List<String> indexCharacters = initLabels(); in createBucketList() local
985 for (String current : indexCharacters) { in createBucketList()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DAlphabeticIndex.java442 List<String> indexCharacters = new ArrayList<String>(); in initLabels() local
472 … int insertionPoint = Collections.binarySearch(indexCharacters, item, collatorPrimaryOnly); in initLabels()
474 indexCharacters.add(~insertionPoint, item); in initLabels()
476 String itemAlreadyIn = indexCharacters.get(insertionPoint); in initLabels()
478 indexCharacters.set(insertionPoint, item); in initLabels()
486 final int size = indexCharacters.size() - 1; in initLabels()
490 for (Iterator<String> it = indexCharacters.iterator(); it.hasNext();) { in initLabels()
502 return indexCharacters; in initLabels()
1004 List<String> indexCharacters = initLabels(); in createBucketList() local
1031 for (String current : indexCharacters) { in createBucketList()
/external/icu/icu4c/source/i18n/
Dalphaindex.cpp294 void AlphabeticIndex::initLabels(UVector &indexCharacters, UErrorCode &errorCode) const { in initLabels() argument
337 int32_t insertionPoint = binarySearch(indexCharacters, *item, *collatorPrimaryOnly_); in initLabels()
339 indexCharacters.insertElementAt( in initLabels()
342 const UnicodeString &itemAlreadyIn = *getString(indexCharacters, insertionPoint); in initLabels()
344 indexCharacters.setElementAt( in initLabels()
354 int32_t size = indexCharacters.size() - 1; in initLabels()
358 for (int32_t i = 0; i < indexCharacters.size();) { in initLabels()
362 indexCharacters.removeElementAt(i); in initLabels()
419 UVector indexCharacters(errorCode); in createBucketList() local
420 indexCharacters.setDeleter(uprv_deleteUObject); in createBucketList()
[all …]
/external/icu/icu4c/source/i18n/unicode/
Dalphaindex.h684 void initLabels(UVector &indexCharacters, UErrorCode &errorCode) const;