/third_party/icu/icu4c/source/samples/coll/ |
D | coll.cpp | 60 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 …]
|
/third_party/skia/third_party/externals/icu/source/samples/coll/ |
D | coll.cpp | 60 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 …]
|
/third_party/icu/icu4c/source/samples/strsrch/ |
D | strsrch.cpp | 64 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 …]
|
/third_party/skia/third_party/externals/icu/source/samples/strsrch/ |
D | strsrch.cpp | 64 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 …]
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 97 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 …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/text/ |
D | RbnfScannerProviderImpl.java | 99 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 …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/collator/ |
D | CollationThaiTest.java | 16 package ohos.global.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 …]
|
D | CollationThreadTest.java | 11 package ohos.global.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()
|
D | CollationAPITest.java | 16 package ohos.global.icu.dev.test.collator; 929 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); 930 int decomp = collator.getDecomposition(); 931 int strength = collator.getStrength(); 932 boolean alt = collator.isAlternateHandlingShifted(); 933 boolean caselevel = collator.isCaseLevel(); 934 boolean french = collator.isFrenchCollation(); 935 boolean hquart = collator.isHiraganaQuaternary(); 936 boolean lowercase = collator.isLowerCaseFirst(); 937 boolean uppercase = collator.isUpperCaseFirst(); [all …]
|
D | CollationChineseTest.java | 16 package ohos.global.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()
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/ |
D | CollationThaiTest.java | 15 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 …]
|
D | CollationThreadTest.java | 10 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()
|
D | CollationAPITest.java | 15 package com.ibm.icu.dev.test.collator; 926 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); 927 int decomp = collator.getDecomposition(); 928 int strength = collator.getStrength(); 929 boolean alt = collator.isAlternateHandlingShifted(); 930 boolean caselevel = collator.isCaseLevel(); 931 boolean french = collator.isFrenchCollation(); 932 boolean hquart = collator.isHiraganaQuaternary(); 933 boolean lowercase = collator.isLowerCaseFirst(); 934 boolean uppercase = collator.isUpperCaseFirst(); [all …]
|
D | CollationChineseTest.java | 15 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()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | srchtest.cpp | 183 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 …]
|
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/search/ |
D | SearchTest.java | 57 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 …]
|
/third_party/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/search/ |
D | SearchTest.java | 54 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 …]
|
/third_party/icu/icu4c/source/test/cintltst/ |
D | usrchtst.c | 163 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 …]
|
/third_party/node/deps/icu-small/source/i18n/ |
D | usearch.cpp | 277 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() 344 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable() 466 ucol_getLocaleByType(strsrch->collator, ULOC_VALID_LOCALE, &status), in getBreakIterator() 560 UCollator *collator = ucol_open(locale, status); in usearch_open() local 564 collator, breakiter, status); in usearch_open() 567 if (collator) { in usearch_open() 568 ucol_close(collator); in usearch_open() 586 const UCollator *collator, in usearch_openFromCollator() argument 599 if (pattern == nullptr || text == nullptr || collator == nullptr) { in usearch_openFromCollator() 605 if(ucol_getAttribute(collator, UCOL_NUMERIC_COLLATION, status) == UCOL_ON) { in usearch_openFromCollator() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | usearch.cpp | 277 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() 344 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable() 466 ucol_getLocaleByType(strsrch->collator, ULOC_VALID_LOCALE, &status), in getBreakIterator() 560 UCollator *collator = ucol_open(locale, status); in usearch_open() local 564 collator, breakiter, status); in usearch_open() 567 if (collator) { in usearch_open() 568 ucol_close(collator); in usearch_open() 586 const UCollator *collator, in usearch_openFromCollator() argument 599 if (pattern == nullptr || text == nullptr || collator == nullptr) { in usearch_openFromCollator() 605 if(ucol_getAttribute(collator, UCOL_NUMERIC_COLLATION, status) == UCOL_ON) { in usearch_openFromCollator() [all …]
|
/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/text/ |
D | CollationElementIterator.java | 192 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()
|
D | LocaleDisplayNames.java | 264 …c List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) { in getUiList() argument 265 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf)); in getUiList() 359 private final Comparator<Object> collator; field in LocaleDisplayNames.UiListItem.UiListItemComparator 361 UiListItemComparator(Comparator<Object> collator, boolean useSelf) { in UiListItemComparator() argument 362 this.collator = collator; in UiListItemComparator() 367 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf) in compare() 368 : collator.compare(o1.nameInDisplayLocale, o2.nameInDisplayLocale); in compare()
|
/third_party/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/ |
D | CollationElementIterator.java | 197 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()
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/text/ |
D | LocaleDisplayNames.java | 285 …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()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | usearch.cpp | 302 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternCETable() 374 coleiter = ucol_openElements(strsrch->collator, pattern->text, in initializePatternPCETable() 793 inline int32_t getNextSafeOffset(const UCollator *collator, in getNextSafeOffset() argument 799 while (result != textlength && ucol_unsafeCP(text[result], collator)) { in getNextSafeOffset() 844 int32_t safeoffset = getNextSafeOffset(strsrch->collator, in checkExtraMatchAccents() 1170 const UCollator *collator = strsrch->collator; in checkNextExactContractionMatch() local 1181 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) || in checkNextExactContractionMatch() 1183 && ucol_unsafeCP(text[*start + 1], collator))) { in checkNextExactContractionMatch() 1529 inline uint32_t getPreviousSafeOffset(const UCollator *collator, in getPreviousSafeOffset() argument 1534 while (result != 0 && ucol_unsafeCP(text[result - 1], collator)) { in getPreviousSafeOffset() [all …]
|