Home
last modified time | relevance | path

Searched full:collation (Results 1 – 25 of 2373) sorted by relevance

12345678910>>...95

/aosp_15_r20/external/cronet/third_party/icu/source/i18n/
H A Dcollationdatabuilder.cpp29 #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.
120 * Build-time collation element and character iterator.
127 * We do this so that we need not implement the collation algorithm
174 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator()
201 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
212 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
271 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
[all …]
H A Dcollationsets.cpp22 #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 char16_t *p = data->contexts + Collation::indexFromCE32(ce32); in compare()
87 if(Collation::isPrefixCE32(baseCE32)) { in compare()
88 const char16_t *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
[all …]
H A Dcollationiterator.cpp24 #include "collation.h"
174 // Compare the iterator state but not the collation data (trie & data fields): in operator ==()
199 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) { in fetchCEs()
209 return (c < 0) ? Collation::FALLBACK_CE32 : data->getCE32(c); in handleNextCE32()
246 return Collation::NO_CE_PRIMARY; in nextCEFromCE32()
253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
255 case Collation::FALLBACK_TAG: in appendCEsFromCE32()
256 case Collation::RESERVED_TAG_3: in appendCEsFromCE32()
259 case Collation::LONG_PRIMARY_TAG: in appendCEsFromCE32()
[all …]
/aosp_15_r20/external/icu/icu4c/source/i18n/
H A Dcollationdatabuilder.cpp29 #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.
120 * Build-time collation element and character iterator.
127 * We do this so that we need not implement the collation algorithm
174 jamoCE32s[j] = Collation::makeCE32FromTagAndIndex(Collation::BUILDER_DATA_TAG, jamo) | in DataBuilderCollationIterator()
201 if(ce32 == Collation::FALLBACK_CE32) { in fetchCEs()
212 if(cesLength < Collation::MAX_EXPANSION_LENGTH) { in fetchCEs()
271 U_ASSERT(Collation::hasCE32Tag(ce32, Collation::BUILDER_DATA_TAG)); in getCE32FromBuilderData()
[all …]
H A Dcollationsets.cpp22 #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 char16_t *p = data->contexts + Collation::indexFromCE32(ce32); in compare()
87 if(Collation::isPrefixCE32(baseCE32)) { in compare()
88 const char16_t *q = baseData->contexts + Collation::indexFromCE32(baseCE32); in compare()
[all …]
H A Dcollationiterator.cpp24 #include "collation.h"
174 // Compare the iterator state but not the collation data (trie & data fields): in operator ==()
199 while(U_SUCCESS(errorCode) && nextCE(errorCode) != Collation::NO_CE) { in fetchCEs()
209 return (c < 0) ? Collation::FALLBACK_CE32 : data->getCE32(c); in handleNextCE32()
246 return Collation::NO_CE_PRIMARY; in nextCEFromCE32()
253 while(Collation::isSpecialCE32(ce32)) { in appendCEsFromCE32()
254 switch(Collation::tagFromCE32(ce32)) { in appendCEsFromCE32()
255 case Collation::FALLBACK_TAG: in appendCEsFromCE32()
256 case Collation::RESERVED_TAG_3: in appendCEsFromCE32()
259 case Collation::LONG_PRIMARY_TAG: in appendCEsFromCE32()
[all …]
/aosp_15_r20/external/icu/android_icu4j/src/main/java/android/icu/impl/coll/
H A DCollationDataBuilder.java40 * 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 …]
H A DCollationIterator.java24 * 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 …]
H A DTailoredSet.java67 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 …]
/aosp_15_r20/external/icu/icu4j/main/collate/src/main/java/com/ibm/icu/impl/coll/
H A DCollationDataBuilder.java39 * 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 …]
H A DCollationIterator.java23 * 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 …]
H A DTailoredSet.java65 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 …]
/aosp_15_r20/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
H A DICUResourceBundleCollationTest.java30 private static final String COLLATION_KEYWORD = "collation";
37 // note: in ICU 64, empty locales are shown as available for collation in TestFunctionalEquivalent()
40 … "f", "zh_TW@collation=stroke", "zh@collation=stroke", /* alias of zh_Hant_TW */ in TestFunctionalEquivalent()
41 "t", "zh_Hant_TW@collation=stroke", "zh@collation=stroke", in TestFunctionalEquivalent()
42 "f", "sv_CN@collation=pinyin", "sv", in TestFunctionalEquivalent()
43 "t", "zh@collation=pinyin", "zh", in TestFunctionalEquivalent()
44 "f", "zh_CN@collation=pinyin", "zh", /* alias of zh_Hans_CN */ in TestFunctionalEquivalent()
45 "t", "zh_Hans_CN@collation=pinyin", "zh", in TestFunctionalEquivalent()
46 "f", "zh_HK@collation=pinyin", "zh", /* alias of zh_Hant_HK */ in TestFunctionalEquivalent()
47 "t", "zh_Hant_HK@collation=pinyin", "zh", in TestFunctionalEquivalent()
[all …]
/aosp_15_r20/external/icu/icu4j/main/collate/src/test/java/com/ibm/icu/dev/test/util/
H A DICUResourceBundleCollationTest.java27 private static final String COLLATION_KEYWORD = "collation";
34 // note: in ICU 64, empty locales are shown as available for collation in TestFunctionalEquivalent()
37 … "f", "zh_TW@collation=stroke", "zh@collation=stroke", /* alias of zh_Hant_TW */ in TestFunctionalEquivalent()
38 "t", "zh_Hant_TW@collation=stroke", "zh@collation=stroke", in TestFunctionalEquivalent()
39 "f", "sv_CN@collation=pinyin", "sv", in TestFunctionalEquivalent()
40 "t", "zh@collation=pinyin", "zh", in TestFunctionalEquivalent()
41 "f", "zh_CN@collation=pinyin", "zh", /* alias of zh_Hans_CN */ in TestFunctionalEquivalent()
42 "t", "zh_Hans_CN@collation=pinyin", "zh", in TestFunctionalEquivalent()
43 "f", "zh_HK@collation=pinyin", "zh", /* alias of zh_Hant_HK */ in TestFunctionalEquivalent()
44 "t", "zh_Hant_HK@collation=pinyin", "zh", in TestFunctionalEquivalent()
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/module-lib/i18n.module.public.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/public/i18n.module.intra.core.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/system/i18n.module.public.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/public/stable.i18n.module.platform.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/public/i18n.module.public.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/prebuilts/runtime/mainline/i18n/sdk/sdk_library/public/legacy.i18n.module.platform.api_stub_sources/android/icu/text/
H A DCollationElementIterator.java17 * each iteration is a 32-bit collation element (CE) that defines the
21 * <p>For illustration, consider the following in Slovak and in traditional Spanish collation:
24 * "ca" -&gt; the first collation element is CE('c') and the second
25 * collation element is CE('a').
26 * "cha" -&gt; the first collation element is CE('ch') and the second
27 * collation element is CE('a').
30 * And in German phonebook collation,
34 * iterator returns two collation elements for the single character '&#230;'
36 * "&#230;b" -&gt; the first collation element is collation_element('a'), the
37 * second collation element is collation_element('e'), and the
[all …]
/aosp_15_r20/external/cldr/docs/ldml/
H A Dtr35-collation.md3 # Unicode Locale Data Markup Language (LDML)<br/>Part 5: Collation
15 This is a partial document, describing only those parts of the LDML that are relevant for collation
43 * Part 5: [Collation](tr35-collation.md#Contents) (sorting, searching, grouping)
49 ## <a name="Contents" href="#Contents">Contents of Part 5, Collation</a>
51 * [CLDR Collation](#CLDR_Collation)
52 * [CLDR Collation Algorithm](#CLDR_Collation_Algorithm)
58 * [Root Collation](#Root_Collation)
63 * [Root Collation Data Files](#Root_Data_Files)
64 * [Root Collation Data File Formats](#Root_Data_File_Formats)
68 * [Collation Tailorings](#Collation_Tailorings)
[all …]
/aosp_15_r20/external/icu/libicu/cts_headers/unicode/
H A Ducoleitr.h49 * 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 …]
/aosp_15_r20/external/icu/icu4c/source/i18n/unicode/
H A Ducoleitr.h49 * 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 …]
/aosp_15_r20/external/icu/libandroidicu/include/unicode/
H A Ducoleitr.h49 * 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 …]
/aosp_15_r20/external/cronet/third_party/icu/source/i18n/unicode/
H A Ducoleitr.h49 * 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 …]

12345678910>>...95