HomeSort by relevance Sort by last modified time
    Searched refs:collator (Results 1 - 25 of 174) sorted by null

1 2 3 4 5 6 7

  /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/text/
CollationKeyTest.java 20 import java.text.Collator;
31 Collator collator = Collator.getInstance(); local
32 collator.setStrength(Collator.PRIMARY);
33 CollationKey key1 = collator.getCollationKey("abc");
34 CollationKey key2 = collator.getCollationKey("ABC");
44 Collator collator = Collator.getInstance() local
55 Collator collator = Collator.getInstance(); local
66 Collator collator = Collator.getInstance(); local
78 Collator collator = Collator.getInstance(); local
91 Collator collator = Collator.getInstance(); local
    [all...]
  /libcore/benchmarks/src/benchmarks/regression/
CollatorBenchmark.java 19 import java.text.Collator;
25 private static final RuleBasedCollator collator = (RuleBasedCollator) field in class:CollatorBenchmark
26 Collator.getInstance(Locale.US);
29 collator.setStrength(Collator.PRIMARY);
31 collator.compare("abcde", "abcdf");
32 collator.compare("abcde", "abcde");
33 collator.compare("abcdf", "abcde");
38 collator.setStrength(Collator.SECONDARY)
    [all...]
  /libcore/luni/src/test/java/libcore/java/text/
OldCollationKeyTest.java 20 import java.text.Collator;
29 Collator collator = Collator.getInstance(); local
30 collator.setStrength(Collator.PRIMARY);
31 CollationKey key1 = collator.getCollationKey("abc");
35 collator = new RuleBasedCollator("&0 = 1 , 2 ; 3 , 4 < 5 ; 6 , 7");
38 * ((RuleBasedCollator)collator).getCollationElementIterator("1234567");
47 // bytes = collator.getCollationKey("1234567").toByteArray()
    [all...]
CollatorTest.java 21 import java.text.Collator;
29 Collator collator = Collator.getInstance(); local
30 collator.setStrength(Collator.PRIMARY);
31 assertEquals(Collator.PRIMARY, collator.getStrength());
32 collator.setStrength(Collator.SECONDARY)
    [all...]
  /external/icu/android_icu4j/src/main/tests/android/icu/dev/test/collator/
CollationChineseTest.java 14 package android.icu.dev.test.collator;
19 import android.icu.text.Collator;
39 RuleBasedCollator collator = null; local
41 collator = (RuleBasedCollator)Collator.getInstance(
44 warnln("ERROR: in creation of collator of zh__PINYIN locale");
48 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1);
CollationThreadTest.java 9 package android.icu.dev.test.collator;
16 import android.icu.text.Collator;
28 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); typedefs
139 sort(temporaryData, collator);
152 private static void sort(String[] data, Collator collator) {
153 Arrays.sort(data, collator);
191 private Collator collator field in class:CollationThreadTest.Test
    [all...]
CollationThaiTest.java 14 package android.icu.dev.test.collator;
26 import android.icu.text.Collator;
87 warnln("could not construct Thai collator");
121 * sorted order, and confirm that the collator compares each line as
129 warnln("could not construct Thai collator");
223 RuleBasedCollator collator; local
226 collator = getThaiCollator();
229 warnln("could not construct Thai collator");
238 if (collator.compare(tests[i], tests[j]) > 0) {
245 = collator.getCollationElementIterator(tests[i])
282 RuleBasedCollator collator; local
316 Collator collator; field in class:CollationThaiTest.StrCmp
    [all...]
TestAll.java 8 package android.icu.dev.test.collator;
59 public static final String CLASS_TARGET_NAME = "Collator";
CollationAPITest.java 14 package android.icu.dev.test.collator;
29 import android.icu.text.Collator;
30 import android.icu.text.Collator.CollatorFactory;
50 * - Collator.getCollationKey
57 Collator col = Collator.getInstance();
58 col.setStrength(Collator.TERTIARY);
97 col = Collator.getInstance();
99 errln("Collator.getInstance() failed");
101 if (col.getStrength() != Collator.TERTIARY)
836 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); local
    [all...]
  /external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
CollationChineseTest.java 13 package com.ibm.icu.dev.test.collator;
18 import com.ibm.icu.text.Collator;
35 RuleBasedCollator collator = null; local
37 collator = (RuleBasedCollator)Collator.getInstance(
40 warnln("ERROR: in creation of collator of zh__PINYIN locale");
44 CollationTest.doTest(this, collator, seq[i], seq[i + 1], -1);
TestAll.java 7 package com.ibm.icu.dev.test.collator;
55 public static final String CLASS_TARGET_NAME = "Collator";
CollationThreadTest.java 8 package com.ibm.icu.dev.test.collator;
15 import com.ibm.icu.text.Collator;
24 final Collator collator = Collator.getInstance(new Locale("pl", "", "")); typedefs
135 sort(temporaryData, collator);
148 private static void sort(String[] data, Collator collator) {
149 Arrays.sort(data, collator);
187 private Collator collator field in class:CollationThreadTest.Test
    [all...]
CollationThaiTest.java 13 package com.ibm.icu.dev.test.collator;
25 import com.ibm.icu.text.Collator;
83 warnln("could not construct Thai collator");
117 * sorted order, and confirm that the collator compares each line as
125 warnln("could not construct Thai collator");
219 RuleBasedCollator collator; local
222 collator = getThaiCollator();
225 warnln("could not construct Thai collator");
234 if (collator.compare(tests[i], tests[j]) > 0) {
241 = collator.getCollationElementIterator(tests[i])
278 RuleBasedCollator collator; local
312 Collator collator; field in class:CollationThaiTest.StrCmp
    [all...]
CollationAPITest.java 13 package com.ibm.icu.dev.test.collator;
28 import com.ibm.icu.text.Collator;
29 import com.ibm.icu.text.Collator.CollatorFactory;
46 * - Collator.getCollationKey
53 Collator col = Collator.getInstance();
54 col.setStrength(Collator.TERTIARY);
93 col = Collator.getInstance();
95 errln("Collator.getInstance() failed");
97 if (col.getStrength() != Collator.TERTIARY)
832 RuleBasedCollator collator = (RuleBasedCollator)Collator.getInstance(); local
    [all...]
  /external/icu/icu4j/eclipse-build/plugins.template/com.ibm.icu.base/src/com/ibm/icu/text/
Collator.java 16 * {@icuenhanced java.text.Collator}.{@icu _usage_}
18 * <p>Collator performs locale-sensitive string comparison. A concrete
67 * Unlike the JDK, ICU4J's Collator deals only with 2 decomposition modes,
69 * The compatibility decomposition mode, java.text.Collator.FULL_DECOMPOSITION
71 * decomposition mode is set, the Collator handles un-normalized text properly,
83 * // Get the Collator for US English and set its strength to PRIMARY
84 * Collator usCollator = Collator.getInstance(Locale.US);
85 * usCollator.setStrength(Collator.PRIMARY);
91 * Collator for the default locale
121 private final java.text.Collator collator; field in class:Collator
    [all...]
  /external/icu/icu4c/source/samples/coll/
coll.cpp 54 UCollator * collator = 0; variable
143 UCollationResult result = ucol_strcoll(collator, source, -1, target, -1);
154 * Creates a collator
158 // Set up an ICU collator
164 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
168 collator = ucol_open(opt_locale, &status);
171 fprintf(stderr, "Collator creation failed.: %d\n", status);
183 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
186 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
189 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
    [all...]
  /external/icu/icu4c/source/samples/strsrch/
strsrch.cpp 59 UCollator * collator = 0; variable
146 * Creates a collator
150 // Set up an ICU collator
155 collator = ucol_openRules(rules, -1, UCOL_OFF, UCOL_TERTIARY,
159 collator = ucol_open(opt_locale, &status);
162 fprintf(stderr, "Collator creation failed.: %d\n", status);
174 ucol_setAttribute(collator, UCOL_NORMALIZATION_MODE, UCOL_ON, &status);
177 ucol_setAttribute(collator, UCOL_FRENCH_COLLATION, UCOL_ON, &status);
180 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_LOWER_FIRST,
184 ucol_setAttribute(collator, UCOL_CASE_FIRST, UCOL_UPPER_FIRST,
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/impl/text/
RbnfScannerProviderImpl.java 16 import android.icu.text.Collator;
24 * implementation behind setLenientParseMode, which is based on Collator.
60 * The Collator used is determined by the locale that was
63 * end of the default collator for the locale, enabling additional equivalences
97 RuleBasedCollator collator = null; local
99 // create a default collator based on the locale,
100 // then pull out that collator's rules, append any additional
102 // collator based on the combination of those rules
103 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale())
125 private final RuleBasedCollator collator; field in class:RbnfScannerProviderImpl.RbnfLenientScannerImpl
    [all...]
  /external/icu/icu4j/main/classes/collate/src/com/ibm/icu/impl/text/
RbnfScannerProviderImpl.java 15 import com.ibm.icu.text.Collator;
23 * implementation behind setLenientParseMode, which is based on Collator.
58 * The Collator used is determined by the locale that was
61 * end of the default collator for the locale, enabling additional equivalences
95 RuleBasedCollator collator = null; local
97 // create a default collator based on the locale,
98 // then pull out that collator's rules, append any additional
100 // collator based on the combination of those rules
101 collator = (RuleBasedCollator)Collator.getInstance(locale.toLocale())
123 private final RuleBasedCollator collator; field in class:RbnfScannerProviderImpl.RbnfLenientScannerImpl
    [all...]
  /packages/apps/Settings/src/com/android/settings/applications/
PermissionsSummaryHelper.java 23 import java.text.Collator;
58 Collator collator = Collator.getInstance();
59 collator.setStrength(Collator.PRIMARY);
60 Collections.sort(grantedStandardLabels, collator);
  /external/sqlite/android/
sqlite3_android.cpp 226 UCollator* collator; member in struct:SqliteUserData
280 UCollator* collator = (UCollator*)sqlite3_user_data(context); local
363 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1);
406 static void localized_collator_dtor(UCollator* collator)
408 ucol_close(collator);
413 // This collator may be removed in the near future, so you MUST not use now.
422 UCollator* collator = ucol_open(systemLocale, &status); local
427 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
434 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status);
437 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator,
500 UCollator * collator = ucol_open(NULL, &status); local
    [all...]
  /external/v8/test/intl/collator/
normalization.js 42 var collator = Intl.Collator([], {normalization: false}); variable
44 assertEquals(0, collator.compare(toCompare[0], toCompare[1]));
45 assertFalse(collator.resolvedOptions().hasOwnProperty('normalization'));
48 collator = Intl.Collator(['de-u-kk-false']);
50 assertEquals(0, collator.compare(toCompare[0], toCompare[1]));
51 assertFalse(collator.resolvedOptions().hasOwnProperty('normalization'));
54 collator = Intl.Collator();
    [all...]
  /external/v8/src/
i18n.cc 468 icu::Collator* CreateICUCollator(
472 // Make collator from options.
473 icu::Collator* collator = NULL; local
475 collator = icu::Collator::createInstance(icu_locale, status);
478 delete collator;
485 collator->setAttribute(
492 collator->setAttribute(UCOL_NORMALIZATION_MODE, UCOL_ON, status);
497 collator->setAttribute(UCOL_CASE_FIRST, UCOL_UPPER_FIRST, status)
860 icu::Collator* collator = CreateICUCollator(isolate, icu_locale, options); local
    [all...]
  /external/icu/android_icu4j/src/main/java/android/icu/text/
CollationElementIterator.java 88 * the comparison level of the collator. The method previous() returns the
90 * the collator. The Collation Element Iterator moves only in one direction
101 * @see Collator
190 private CollationElementIterator(RuleBasedCollator collator) {
192 rbc_ = collator;
202 * collator. If the source string is empty, NULLORDER will be
206 * @param collator the RuleBasedCollator
208 CollationElementIterator(String source, RuleBasedCollator collator) {
209 this(collator);
212 // Note: The constructors should take settings & tailoring, not a collator,
    [all...]
LocaleDisplayNames.java 242 * @param collator how to collate?should normally be Collator.getInstance(getDisplayLocale())
251 public List<UiListItem> getUiList(Set<ULocale> localeSet, boolean inSelf, Comparator<Object> collator) {
252 return getUiListCompareWholeItems(localeSet, UiListItem.getComparator(collator, inSelf));
345 * @param comparator (meant for strings, but because Java Collator doesn't have &lt;String&gt;...)
354 private final Comparator<Object> collator; field in class:LocaleDisplayNames.UiListItem.UiListItemComparator
356 UiListItemComparator(Comparator<Object> collator, boolean useSelf) {
357 this.collator = collator;
361 int result = useSelf ? collator.compare(o1.nameInSelf, o2.nameInSelf)
    [all...]

Completed in 3007 milliseconds

1 2 3 4 5 6 7