Home
last modified time | relevance | path

Searched refs:collator (Results 1 – 25 of 151) sorted by relevance

1234567

/external/icu/icu4c/source/samples/coll/
Dcoll.cpp60 UCollator * collator = 0; variable
149 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1); in strcmp()
170 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator()
174 collator = ucol_open(opt_locale, &status); in processCollator()
189 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator()
192 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator()
195 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator()
199 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator()
203 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator()
206 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator()
[all …]
/external/cronet/third_party/icu/source/samples/coll/
Dcoll.cpp60 UCollator * collator = 0; variable
149 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1); in strcmp()
170 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator()
174 collator = ucol_open(opt_locale, &status); in processCollator()
189 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator()
192 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator()
195 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator()
199 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator()
203 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator()
206 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator()
[all …]
/external/cronet/third_party/icu/source/samples/strsrch/
Dstrsrch.cpp64 UCollator * collator = 0; variable
160 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator()
164 collator = ucol_open(opt_locale, &status); in processCollator()
179 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator()
182 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator()
185 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator()
189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator()
193 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator()
196 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator()
202 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); in processCollator()
[all …]
/external/icu/icu4c/source/samples/strsrch/
Dstrsrch.cpp64 UCollator * collator = 0; variable
160 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY, in processCollator()
164 collator = ucol_open(opt_locale, &status); in processCollator()
179 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status); in processCollator()
182 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status); in processCollator()
185 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST, in processCollator()
189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST, in processCollator()
193 ucol_setAttribute(collator, UCOL_CASE_LEVEL, UCOL_ON, &status); in processCollator()
196 ucol_setAttribute(collator, UCOL_ALTERNATE_HANDLING, UCOL_SHIFTED, in processCollator()
202 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); in processCollator()
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/impl/text/
DRbnfScannerProviderImpl.java99 RuleBasedCollator collator = null; in createScanner() local
105 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); in createScanner()
107 String rules = collator.getRules() + extras; in createScanner()
108 collator = new RuleBasedCollator(rules); in createScanner()
110 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in createScanner()
119 collator = null; in createScanner()
123 return new RbnfLenientScannerImpl(collator); in createScanner()
127 private final RuleBasedCollator collator; field in RbnfScannerProviderImpl.RbnfLenientScannerImpl
130 this.collator = rbc; in RbnfLenientScannerImpl()
134 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable()
[all …]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/
DRbnfScannerProviderImpl.java97 RuleBasedCollator collator = null; in createScanner() local
103 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale()); in createScanner()
105 String rules = collator.getRules() + extras; in createScanner()
106 collator = new RuleBasedCollator(rules); in createScanner()
108 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in createScanner()
117 collator = null; in createScanner()
121 return new RbnfLenientScannerImpl(collator); in createScanner()
125 private final RuleBasedCollator collator; field in RbnfScannerProviderImpl.RbnfLenientScannerImpl
128 this.collator = rbc; in RbnfLenientScannerImpl()
132 CollationElementIterator iter = collator.getCollationElementIterator(s); in allIgnorable()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
DCollationThaiTest.java16 package android.icu.dev.test.collator;
228 RuleBasedCollator collator; in TestInvalidThai() local
231 collator = getThaiCollator(); in TestInvalidThai()
243 if (collator.compare(tests[i], tests[j]) > 0) { in TestInvalidThai()
250 = collator.getCollationElementIterator(tests[i]); in TestInvalidThai()
288 RuleBasedCollator collator; in TestReordering() local
290 collator = getThaiCollator(); in TestReordering()
295 compareArray(collator, tests); in TestReordering()
300 collator = new RuleBasedCollator(rule); in TestReordering()
305 compareArray(collator, testcontraction); in TestReordering()
[all …]
DCollationThreadTest.java11 package android.icu.dev.test.collator;
29 final Collator collator = Collator.getInstance(new Locale("pl", "", ""));
140 sort(temporaryData, collator); in sort() argument
153 private static void sort(String[] data, Collator collator) { in sort() argument
154 Arrays.sort(data, collator); in sort()
192 private Collator collator; field in CollationThreadTest.Test
197 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() argument
200 this.collator = collator; in Test()
216 sort(this.data, this.collator); in run()
DCollationAPITest.java16 package android.icu.dev.test.collator;
931 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance();
932 int decomp = collator.getDecomposition();
933 int strength = collator.getStrength();
934 boolean alt = collator.isAlternateHandlingShifted();
935 boolean caselevel = collator.isCaseLevel();
936 boolean french = collator.isFrenchCollation();
937 boolean hquart = collator.isHiraganaQuaternary();
938 boolean lowercase = collator.isLowerCaseFirst();
939 boolean uppercase = collator.isUpperCaseFirst();
[all …]
DCollationChineseTest.java16 package android.icu.dev.test.collator;
42 RuleBasedCollator collator = null; in TestPinYin() local
44 collator = (RuleBasedCollator)Collator.getInstance( in TestPinYin()
51 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1); in TestPinYin()
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
DCollationThaiTest.java15 package com.ibm.icu.dev.test.collator;
225 RuleBasedCollator collator; in TestInvalidThai() local
228 collator = getThaiCollator(); in TestInvalidThai()
240 if (collator.compare(tests[i], tests[j]) > 0) { in TestInvalidThai()
247 = collator.getCollationElementIterator(tests[i]); in TestInvalidThai()
285 RuleBasedCollator collator; in TestReordering() local
287 collator = getThaiCollator(); in TestReordering()
292 compareArray(collator, tests); in TestReordering()
297 collator = new RuleBasedCollator(rule); in TestReordering()
302 compareArray(collator, testcontraction); in TestReordering()
[all …]
DCollationThreadTest.java10 package com.ibm.icu.dev.test.collator;
26 final Collator collator = Collator.getInstance(new Locale("pl", "", ""));
137 sort(temporaryData, collator); in sort() argument
150 private static void sort(String[] data, Collator collator) { in sort() argument
151 Arrays.sort(data, collator); in sort()
189 private Collator collator; field in CollationThreadTest.Test
194 Test(String name, String[] data, Collator collator, Random r, Control control) { in Test() argument
197 this.collator = collator; in Test()
213 sort(this.data, this.collator); in run()
DCollationAPITest.java15 package com.ibm.icu.dev.test.collator;
928 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance();
929 int decomp = collator.getDecomposition();
930 int strength = collator.getStrength();
931 boolean alt = collator.isAlternateHandlingShifted();
932 boolean caselevel = collator.isCaseLevel();
933 boolean french = collator.isFrenchCollation();
934 boolean hquart = collator.isHiraganaQuaternary();
935 boolean lowercase = collator.isLowerCaseFirst();
936 boolean uppercase = collator.isUpperCaseFirst();
[all …]
DCollationChineseTest.java15 package com.ibm.icu.dev.test.collator;
39 RuleBasedCollator collator = null; in TestPinYin() local
41 collator = (RuleBasedCollator)Collator.getInstance( in TestPinYin()
48 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1); in TestPinYin()
/external/sqlite/android/
Dsqlite3_android.cpp237 UCollator* collator; member
292 UCollator* collator = (UCollator*)sqlite3_user_data(context);
375 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1);
419 static void localized_collator_dtor(UCollator* collator) in localized_collator_dtor() argument
421 ucol_close(collator); in localized_collator_dtor()
439 UCollator* collator = ucol_open(systemLocale, &status); in register_localized_collators() local
444 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status); in register_localized_collators()
451 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator, in register_localized_collators()
454 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF8, collator, in register_localized_collators()
464 …err = sqlite3_create_function(handle, "_TOKENIZE", 4, SQLITE_UTF16, collator, tokenize, NULL, NULL… in register_localized_collators()
[all …]
/external/cldr/tools/cldr-code/src/main/java/org/unicode/cldr/util/
DReferenceStringSearch.java33 private RuleBasedCollator collator = (RuleBasedCollator) Collator.getInstance(ULocale.ROOT); field in ReferenceStringSearch
103 return collator; in getCollator()
110 public ReferenceStringSearch setCollator(RuleBasedCollator collator) { in setCollator() argument
111 this.collator = collator; in setCollator()
112 targetIterator = new CollationElementIterator2(collator); in setCollator()
170 … CollationElementIterator2 keyIterator = new CollationElementIterator2(collator).setText(key); in setKey()
405 public CollationElementIterator2(RuleBasedCollator collator) { in CollationElementIterator2() argument
408 … variableTop = !collator.isAlternateHandlingShifted() ? -1 : collator.getVariableTop() | 0xFFFF; in CollationElementIterator2()
410 switch (collator.getStrength()) { in CollationElementIterator2()
421 keyIterator = collator.getCollationElementIterator(""); in CollationElementIterator2()
/external/cronet/third_party/icu/source/test/intltest/
Dsrchtest.cpp183 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) in getCollator() argument
185 if (collator == NULL) { in getCollator()
188 if (strcmp(collator, "fr") == 0) { in getCollator()
191 else if (strcmp(collator, "de") == 0) { in getCollator()
194 else if (strcmp(collator, "es") == 0) { in getCollator()
467 Collator *collator = getCollator(search->collator); in assertEqual() local
489 collator->setStrength(getECollationStrength(search->strength)); in assertEqual()
490 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual()
498 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
509 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
[all …]
/external/icu/icu4c/source/test/intltest/
Dsrchtest.cpp183 RuleBasedCollator * StringSearchTest::getCollator(const char *collator) in getCollator() argument
185 if (collator == NULL) { in getCollator()
188 if (strcmp(collator, "fr") == 0) { in getCollator()
191 else if (strcmp(collator, "de") == 0) { in getCollator()
194 else if (strcmp(collator, "es") == 0) { in getCollator()
467 Collator *collator = getCollator(search->collator); in assertEqual() local
489 collator->setStrength(getECollationStrength(search->strength)); in assertEqual()
490 strsrch = new StringSearch(pattern, text, (RuleBasedCollator *)collator, in assertEqual()
498 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
509 collator->setStrength(getECollationStrength(UCOL_TERTIARY)); in assertEqual()
[all …]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/
DSearchTest.java54 this.collator = coll; in SearchData()
63 String collator; field in SearchTest.SearchData
558 RuleBasedCollator getCollator(String collator) { in getCollator() argument
559 if (collator == null) { in getCollator()
561 } if (collator.equals("fr")) { in getCollator()
563 } else if (collator.equals("de")) { in getCollator()
565 } else if (collator.equals("es")) { in getCollator()
583 Collator collator = getCollator(search.collator); in assertCanonicalEqual() local
593 collator.setStrength(search.strength); in assertCanonicalEqual()
594 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in assertCanonicalEqual()
[all …]
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/search/
DSearchTest.java57 this.collator = coll; in SearchData()
66 String collator; field in SearchTest.SearchData
561 RuleBasedCollator getCollator(String collator) { in getCollator() argument
562 if (collator == null) { in getCollator()
564 } if (collator.equals("fr")) { in getCollator()
566 } else if (collator.equals("de")) { in getCollator()
568 } else if (collator.equals("es")) { in getCollator()
586 Collator collator = getCollator(search.collator); in assertCanonicalEqual() local
596 collator.setStrength(search.strength); in assertCanonicalEqual()
597 collator.setDecomposition(Collator.CANONICAL_DECOMPOSITION); in assertCanonicalEqual()
[all …]
/external/cronet/third_party/icu/source/test/cintltst/
Dusrchtst.c163 static UCollator *getCollator(const char *collator) in getCollator() argument
165 if (collator == NULL) { in getCollator()
168 if (strcmp(collator, "fr") == 0) { in getCollator()
171 else if (strcmp(collator, "de") == 0) { in getCollator()
174 else if (strcmp(collator, "es") == 0) { in getCollator()
560 UCollator *collator = getCollator(search.collator); in assertEqual() local
568 ucol_setStrength(collator, search.strength); in assertEqual()
569 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqual()
577 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
581 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
[all …]
/external/icu/icu4c/source/test/cintltst/
Dusrchtst.c163 static UCollator *getCollator(const char *collator) in getCollator() argument
165 if (collator == NULL) { in getCollator()
168 if (strcmp(collator, "fr") == 0) { in getCollator()
171 else if (strcmp(collator, "de") == 0) { in getCollator()
174 else if (strcmp(collator, "es") == 0) { in getCollator()
560 UCollator *collator = getCollator(search.collator); in assertEqual() local
568 ucol_setStrength(collator, search.strength); in assertEqual()
569 strsrch = usearch_openFromCollator(pattern, -1, text, -1, collator, in assertEqual()
577 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
581 ucol_setStrength(collator, UCOL_TERTIARY); in assertEqual()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DLocaleDisplayNames.java285 …c List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { in getUiList() argument
286 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); in getUiList()
394 private final Comparator<Object> collator; field in LocaleDisplayNames.UiListItem.UiListItemComparator
396 UiListItemComparator(Comparator<Object> collator, boolean useSelf) { in UiListItemComparator() argument
397 this.collator = collator; in UiListItemComparator()
402 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf) in compare()
403 : collator.compare(o1.nameInDisplayLocale, o2.nameInDisplayLocale); in compare()
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
DCollationElementIterator.java197 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() argument
199 rbc_ = collator; in CollationElementIterator()
216 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() argument
217 this(collator); in CollationElementIterator()
240 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument
241 this(collator); in CollationElementIterator()
256 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument
257 this(collator); in CollationElementIterator()
/external/icu/android_icu4j/src/main/java/android/icu/text/
DCollationElementIterator.java192 private CollationElementIterator(RuleBasedCollator collator) { in CollationElementIterator() argument
194 rbc_ = collator; in CollationElementIterator()
210 CollationElementIterator(String source, RuleBasedCollator collator) { in CollationElementIterator() argument
211 this(collator); in CollationElementIterator()
233 CollationElementIterator(CharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument
234 this(collator); in CollationElementIterator()
248 CollationElementIterator(UCharacterIterator source, RuleBasedCollator collator) { in CollationElementIterator() argument
249 this(collator); in CollationElementIterator()

1234567