/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 30 private static final String COLLATION_KEYWORD = "collation"; 38 // note: in ICU 64, empty locales are shown as available for collation in TestFunctionalEquivalent() 41 … "f", "zh_TW@collation=stroke", "zh@collation=stroke", /* alias of zh_Hant_TW */ in TestFunctionalEquivalent() 42 "t", "zh_Hant_TW@collation=stroke", "zh@collation=stroke", in TestFunctionalEquivalent() 43 "f", "sv_CN@collation=pinyin", "sv", in TestFunctionalEquivalent() 44 "t", "zh@collation=pinyin", "zh", in TestFunctionalEquivalent() 45 "f", "zh_CN@collation=pinyin", "zh", /* alias of zh_Hans_CN */ in TestFunctionalEquivalent() 46 "t", "zh_Hans_CN@collation=pinyin", "zh", in TestFunctionalEquivalent() 47 "f", "zh_HK@collation=pinyin", "zh", /* alias of zh_Hant_HK */ in TestFunctionalEquivalent() 48 "t", "zh_Hant_HK@collation=pinyin", "zh", in TestFunctionalEquivalent() [all …]
|
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/ |
D | ICUResourceBundleCollationTest.java | 27 private static final String COLLATION_KEYWORD = "collation"; 35 // note: in ICU 64, empty locales are shown as available for collation in TestFunctionalEquivalent() 38 … "f", "zh_TW@collation=stroke", "zh@collation=stroke", /* alias of zh_Hant_TW */ in TestFunctionalEquivalent() 39 "t", "zh_Hant_TW@collation=stroke", "zh@collation=stroke", in TestFunctionalEquivalent() 40 "f", "sv_CN@collation=pinyin", "sv", in TestFunctionalEquivalent() 41 "t", "zh@collation=pinyin", "zh", in TestFunctionalEquivalent() 42 "f", "zh_CN@collation=pinyin", "zh", /* alias of zh_Hans_CN */ in TestFunctionalEquivalent() 43 "t", "zh_Hans_CN@collation=pinyin", "zh", in TestFunctionalEquivalent() 44 "f", "zh_HK@collation=pinyin", "zh", /* alias of zh_Hant_HK */ in TestFunctionalEquivalent() 45 "t", "zh_Hant_HK@collation=pinyin", "zh", in TestFunctionalEquivalent() [all …]
|
/external/icu/icu4c/source/i18n/ |
D | collationdatabuilder.cpp | 29 #include "collation.h" 56 ce32(0), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 60 ce32(ce), defaultCE32(Collation::NO_CE32), builtCE32(Collation::NO_CE32), in ConditionalCE32() 87 * so that the normal collation implementation can process them. 108 * Build-time collation element and character iterator. 115 * We do this so that we need not implement the collation algorithm 162 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator() 189 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs() 200 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs() 258 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData() [all …]
|
D | collationsets.cpp | 22 #include "collation.h" 36 if(ce32 == Collation::FALLBACK_CE32) { in enumTailoredRange() 58 U_ASSERT(ce32 != Collation::FALLBACK_CE32); in handleCE32() 59 if(Collation::isSpecialCE32(ce32)) { in handleCE32() 61 if(ce32 == Collation::FALLBACK_CE32) { in handleCE32() 70 if(Collation::isSelfContainedCE32(ce32) && Collation::isSelfContainedCE32(baseCE32)) { in handleCE32() 84 if(Collation::isPrefixCE32(ce32)) { in compare() 85 const UChar *p = data->contexts + Collation::indexFromCE32(ce32); in compare() 87 if(Collation::isPrefixCE32(baseCE32)) { in compare() 88 const UChar *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare() [all …]
|
D | collationdata.cpp | 22 #include "collation.h" 32 U_ASSERT(Collation::isSpecialCE32(ce32)); in getIndirectCE32() 33 int32_t tag = Collation::tagFromCE32(ce32); in getIndirectCE32() 34 if(tag == Collation::DIGIT_TAG) { in getIndirectCE32() 35 // Fetch the non-numeric-collation CE32. in getIndirectCE32() 36 ce32 = ce32s[Collation::indexFromCE32(ce32)]; in getIndirectCE32() 37 } else if(tag == Collation::LEAD_SURROGATE_TAG) { in getIndirectCE32() 38 ce32 = Collation::UNASSIGNED_CE32; in getIndirectCE32() 39 } else if(tag == Collation::U0000_TAG) { in getIndirectCE32() 48 if(Collation::isSpecialCE32(ce32)) { in getFinalCE32() [all …]
|
D | collationkeys.cpp | 19 #include "collation.h" 206 CollationKeys::LevelCallback::needToWrite(Collation::Level /*level*/) { return TRUE; } in needToWrite() 209 * Map from collation strength (UColAttributeValue) 210 * to a mask of Collation::Level bits up to that strength, 230 Collation::Level minLevel, LevelCallback &callback, in writeSortKeyUpToQuaternary() 238 levels |= Collation::CASE_LEVEL_FLAG; in writeSortKeyUpToQuaternary() 273 if(p < variableTop && p > Collation::MERGE_SEPARATOR_PRIMARY) { in writeSortKeyUpToQuaternary() 287 if((levels & Collation::QUATERNARY_LEVEL_FLAG) != 0) { in writeSortKeyUpToQuaternary() 302 } while(p < variableTop && p > Collation::MERGE_SEPARATOR_PRIMARY); in writeSortKeyUpToQuaternary() 308 if(p > Collation::NO_CE_PRIMARY && (levels & Collation::PRIMARY_LEVEL_FLAG) != 0) { in writeSortKeyUpToQuaternary() [all …]
|
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/coll/ |
D | CollationDataBuilder.java | 39 * Collation element modifier. Interface class for a modifier 44 /** Returns a new CE to replace the non-special input CE32, or else Collation.NO_CE. */ 46 /** Returns a new CE to replace the input CE, or else Collation.NO_CE. */ 76 trie = new Trie2Writable(Collation.FALLBACK_CE32, Collation.FFFD_CE32); in initForTailoring() 84 trie.set(c, Collation.FALLBACK_CE32); in initForTailoring() 91 int hangulCE32 = Collation.makeCE32FromTagAndIndex(Collation.HANGUL_TAG, 0); in initForTailoring() 116 return Collation.isAssignedCE32(trie.get(c)); in isAssigned() 131 if(cesLength < 0 || cesLength > Collation.MAX_EXPANSION_LENGTH) { in encodeCEs() 148 if((ce0 & 0xffffffffff00ffL) == Collation.COMMON_SECONDARY_CE && in encodeCEs() 149 (ce1 & 0xffffffff00ffffffL) == Collation.COMMON_TERTIARY_CE && in encodeCEs() [all …]
|
D | TailoredSet.java | 65 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 75 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 76 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 78 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 87 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 99 if (Collation.isPrefixCE32(ce32)) { in compare() 100 int dataIndex = Collation.indexFromCE32(ce32); in compare() 102 if (Collation.isPrefixCE32(baseCE32)) { in compare() 103 int baseIndex = Collation.indexFromCE32(baseCE32); in compare() 109 } else if (Collation.isPrefixCE32(baseCE32)) { in compare() [all …]
|
D | ContractionsAndExpansions.java | 35 private long[] ces = new long[Collation.MAX_EXPANSION_LENGTH]; 79 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 104 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 114 if ((ce32 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32() 117 sink.handleCE(Collation.ceFromSimpleCE32(ce32)); in handleCE32() 121 switch (Collation.tagFromCE32(ce32)) { in handleCE32() 122 case Collation.FALLBACK_TAG: in handleCE32() 124 case Collation.RESERVED_TAG_3: in handleCE32() 125 case Collation.BUILDER_DATA_TAG: in handleCE32() 126 case Collation.LEAD_SURROGATE_TAG: in handleCE32() [all …]
|
D | CollationCompare.java | 10 * C++ version created on: 2012feb14 with new and old collation code 38 if (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary() 54 … } while (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary() 62 … if (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary() 78 … } while (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary() 88 return (leftPrimary < rightPrimary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary() 90 if (leftPrimary == Collation.NO_CE_PRIMARY) { in compareUpToQuaternary() 114 … return (leftSecondary < rightSecondary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary() 116 if (leftSecondary == Collation.NO_CE_WEIGHT16) { in compareUpToQuaternary() 129 while ((p = left.getCE(leftLimit) >>> 32) > Collation.MERGE_SEPARATOR_PRIMARY in compareUpToQuaternary() [all …]
|
D | CollationData.java | 24 * Collation data container. 28 * Includes data for the collation base (root/default), aliased if this is not the base. 53 Collation.hasCE32Tag(getCE32(c), Collation.DIGIT_TAG); in isDigit() 81 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32() 82 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32() 83 if(tag == Collation.DIGIT_TAG) { in getIndirectCE32() 84 // Fetch the non-numeric-collation CE32. in getIndirectCE32() 85 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32() 86 } else if(tag == Collation.LEAD_SURROGATE_TAG) { in getIndirectCE32() 87 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32() [all …]
|
D | CollationIterator.java | 23 * Collation element iterator and abstract character iterator. 203 // Compare the iterator state but not the collation data (trie & data fields): in equals() 238 * Returns the next collation element. 251 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE() 260 if(t == Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE() 262 return ceBuffer.set(cesIndex++, Collation.NO_CE); in nextCE() 267 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE() 275 if(t == Collation.LONG_PRIMARY_CE32_LOW_BYTE) { in nextCE() 278 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 288 while(nextCE() != Collation.NO_CE) { in fetchCEs() [all …]
|
D | CollationKeys.java | 22 // collation features. 265 private static final int SEC_COMMON_LOW = Collation.COMMON_BYTE; 283 private static final int TER_ONLY_COMMON_LOW = Collation.COMMON_BYTE; 289 private static final int TER_LOWER_FIRST_COMMON_LOW = Collation.COMMON_BYTE; 295 private static final int TER_UPPER_FIRST_COMMON_LOW = Collation.COMMON_BYTE + 0x80; 310 * Map from collation strength (UColAttributeValue) to a mask of Collation.Level bits up to that 338 levels |= Collation.CASE_LEVEL_FLAG; in writeSortKeyUpToQuaternary() 357 SortKeyLevel cases = getSortKeyLevel(levels, Collation.CASE_LEVEL_FLAG); in writeSortKeyUpToQuaternary() 358 SortKeyLevel secondaries = getSortKeyLevel(levels, Collation.SECONDARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary() 359 SortKeyLevel tertiaries = getSortKeyLevel(levels, Collation.TERTIARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary() [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/ |
D | CollationDataBuilder.java | 40 * Collation element modifier. Interface class for a modifier 45 /** Returns a new CE to replace the non-special input CE32, or else Collation.NO_CE. */ 47 /** Returns a new CE to replace the input CE, or else Collation.NO_CE. */ 77 trie = new Trie2Writable(Collation.FALLBACK_CE32, Collation.FFFD_CE32); in initForTailoring() 85 trie.set(c, Collation.FALLBACK_CE32); in initForTailoring() 92 int hangulCE32 = Collation.makeCE32FromTagAndIndex(Collation.HANGUL_TAG, 0); in initForTailoring() 117 return Collation.isAssignedCE32(trie.get(c)); in isAssigned() 132 if(cesLength < 0 || cesLength > Collation.MAX_EXPANSION_LENGTH) { in encodeCEs() 149 if((ce0 & 0xffffffffff00ffL) == Collation.COMMON_SECONDARY_CE && in encodeCEs() 150 (ce1 & 0xffffffff00ffffffL) == Collation.COMMON_TERTIARY_CE && in encodeCEs() [all …]
|
D | TailoredSet.java | 67 if (ce32 == Collation.FALLBACK_CE32) { in enumTailoredRange() 77 assert (ce32 != Collation.FALLBACK_CE32); in handleCE32() 78 if (Collation.isSpecialCE32(ce32)) { in handleCE32() 80 if (ce32 == Collation.FALLBACK_CE32) { in handleCE32() 89 if (Collation.isSelfContainedCE32(ce32) && Collation.isSelfContainedCE32(baseCE32)) { in handleCE32() 101 if (Collation.isPrefixCE32(ce32)) { in compare() 102 int dataIndex = Collation.indexFromCE32(ce32); in compare() 104 if (Collation.isPrefixCE32(baseCE32)) { in compare() 105 int baseIndex = Collation.indexFromCE32(baseCE32); in compare() 111 } else if (Collation.isPrefixCE32(baseCE32)) { in compare() [all …]
|
D | ContractionsAndExpansions.java | 39 private long[] ces = new long[Collation.MAX_EXPANSION_LENGTH]; 86 if (ce32 == Collation.FALLBACK_CE32) { in enumCnERange() 111 if (ce32 == Collation.FALLBACK_CE32) { in forCodePoint() 121 if ((ce32 & 0xff) < Collation.SPECIAL_CE32_LOW_BYTE) { in handleCE32() 124 sink.handleCE(Collation.ceFromSimpleCE32(ce32)); in handleCE32() 128 switch (Collation.tagFromCE32(ce32)) { in handleCE32() 129 case Collation.FALLBACK_TAG: in handleCE32() 131 case Collation.RESERVED_TAG_3: in handleCE32() 132 case Collation.BUILDER_DATA_TAG: in handleCE32() 133 case Collation.LEAD_SURROGATE_TAG: in handleCE32() [all …]
|
D | CollationCompare.java | 11 * C++ version created on: 2012feb14 with new and old collation code 42 if (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary() 58 … } while (leftPrimary < variableTop && leftPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary() 66 … if (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY) { in compareUpToQuaternary() 82 … } while (rightPrimary < variableTop && rightPrimary > Collation.MERGE_SEPARATOR_PRIMARY); in compareUpToQuaternary() 92 return (leftPrimary < rightPrimary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary() 94 if (leftPrimary == Collation.NO_CE_PRIMARY) { in compareUpToQuaternary() 118 … return (leftSecondary < rightSecondary) ? Collation.LESS : Collation.GREATER; in compareUpToQuaternary() 120 if (leftSecondary == Collation.NO_CE_WEIGHT16) { in compareUpToQuaternary() 133 while ((p = left.getCE(leftLimit) >>> 32) > Collation.MERGE_SEPARATOR_PRIMARY in compareUpToQuaternary() [all …]
|
D | CollationData.java | 25 * Collation data container. 29 * Includes data for the collation base (root/default), aliased if this is not the base. 55 Collation.hasCE32Tag(getCE32(c), Collation.DIGIT_TAG); in isDigit() 83 assert(Collation.isSpecialCE32(ce32)); in getIndirectCE32() 84 int tag = Collation.tagFromCE32(ce32); in getIndirectCE32() 85 if(tag == Collation.DIGIT_TAG) { in getIndirectCE32() 86 // Fetch the non-numeric-collation CE32. in getIndirectCE32() 87 ce32 = ce32s[Collation.indexFromCE32(ce32)]; in getIndirectCE32() 88 } else if(tag == Collation.LEAD_SURROGATE_TAG) { in getIndirectCE32() 89 ce32 = Collation.UNASSIGNED_CE32; in getIndirectCE32() [all …]
|
D | CollationIterator.java | 24 * Collation element iterator and abstract character iterator. 205 // Compare the iterator state but not the collation data (trie & data fields): in equals() 240 * Returns the next collation element. 253 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { // Forced-inline of isSpecialCE32(ce32). in nextCE() 262 if(t == Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE() 264 return ceBuffer.set(cesIndex++, Collation.NO_CE); in nextCE() 269 if(t < Collation.SPECIAL_CE32_LOW_BYTE) { in nextCE() 277 if(t == Collation.LONG_PRIMARY_CE32_LOW_BYTE) { in nextCE() 280 ((long)(ce32 - t) << 32) | Collation.COMMON_SEC_AND_TER_CE); in nextCE() 290 while(nextCE() != Collation.NO_CE) { in fetchCEs() [all …]
|
D | CollationKeys.java | 26 // collation features. 275 private static final int SEC_COMMON_LOW = Collation.COMMON_BYTE; 293 private static final int TER_ONLY_COMMON_LOW = Collation.COMMON_BYTE; 299 private static final int TER_LOWER_FIRST_COMMON_LOW = Collation.COMMON_BYTE; 305 private static final int TER_UPPER_FIRST_COMMON_LOW = Collation.COMMON_BYTE + 0x80; 320 * Map from collation strength (UColAttributeValue) to a mask of Collation.Level bits up to that 348 levels |= Collation.CASE_LEVEL_FLAG; in writeSortKeyUpToQuaternary() 367 SortKeyLevel cases = getSortKeyLevel(levels, Collation.CASE_LEVEL_FLAG); in writeSortKeyUpToQuaternary() 368 SortKeyLevel secondaries = getSortKeyLevel(levels, Collation.SECONDARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary() 369 SortKeyLevel tertiaries = getSortKeyLevel(levels, Collation.TERTIARY_LEVEL_FLAG); in writeSortKeyUpToQuaternary() [all …]
|
/external/icu/icu4c/source/i18n/unicode/ |
D | ucoleitr.h | 49 * in the given collation object. 50 * For example, consider the following in Slovak and in traditional Spanish collation: 55 * And in German phonebook collation, 82 * ucol_next() returns the collation order of the next. 83 * ucol_prev() returns the collation order of the previous character. 84 * The Collation Element Iterator moves only in one direction between calls to 89 * ucol_prev or ucol_next, the first or last collation order will be returned. 94 * collation orders with the value 0 are ignored. 95 * Character based on the comparison level of the collator. A collation order 97 * type of the collation order is <strong>int32_t</strong>. [all …]
|
D | sortkey.h | 49 * Collation keys are generated by the Collator class. Use the CollationKey objects 84 * long lists of words by retrieving collation keys with Collator::getCollationKey(). 85 * You can then cache the collation keys and compare them using CollationKey::compareTo(). 90 * collation rules, and the way in which secondary and tertiary differences 104 * This creates an empty collation key based on the null string. An empty 105 * collation key contains no sorting information. When comparing two empty 106 * collation keys, the result is Collator::EQUAL. Comparing empty collation key 107 * with non-empty collation key is always Collator::LESS. 114 * Creates a collation key based on the collation key values. 115 * @param values the collation key values [all …]
|
/external/icu/libandroidicu/include/unicode/ |
D | ucoleitr.h | 49 * in the given collation object. 50 * For example, consider the following in Slovak and in traditional Spanish collation: 55 * And in German phonebook collation, 82 * ucol_next() returns the collation order of the next. 83 * ucol_prev() returns the collation order of the previous character. 84 * The Collation Element Iterator moves only in one direction between calls to 89 * ucol_prev or ucol_next, the first or last collation order will be returned. 94 * collation orders with the value 0 are ignored. 95 * Character based on the comparison level of the collator. A collation order 97 * type of the collation order is <strong>int32_t</strong>. [all …]
|
/external/icu/libicu/cts_headers/unicode/ |
D | ucoleitr.h | 49 * in the given collation object. 50 * For example, consider the following in Slovak and in traditional Spanish collation: 55 * And in German phonebook collation, 82 * ucol_next() returns the collation order of the next. 83 * ucol_prev() returns the collation order of the previous character. 84 * The Collation Element Iterator moves only in one direction between calls to 89 * ucol_prev or ucol_next, the first or last collation order will be returned. 94 * collation orders with the value 0 are ignored. 95 * Character based on the comparison level of the collator. A collation order 97 * type of the collation order is <strong>int32_t</strong>. [all …]
|
/external/cldr/common/bcp47/ |
D | collation.xml | 12 <key name="co" description="Collation type key" alias="collation"> 17 … <type name="ducet" description="The default Unicode collation element table order" since="2.0.1"/> 25 <type name="search" description="Special collation type for string search" since="1.9"/> 26 …<type name="searchjl" description="Special collation type for Korean initial consonant search" sin… 34 … <key name="ka" description="Collation parameter key for alternate handling" alias="colAlternate"> 35 …<type name="noignore" description="Variable collation elements are not reset to ignorable" alias="… 36 …<type name="shifted" description="Variable collation elements are reset to zero at levels one thro… 39 …<key name="kb" description="Collation parameter key for backward collation weight" alias="colBackw… 44 <key name="kc" description="Collation parameter key for case level" alias="colCaseLevel"> 49 … <key name="kf" description="Collation parameter key for ordering by case" alias="colCaseFirst"> [all …]
|