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

1 2

  /external/apache-harmony/text/src/test/java/org/apache/harmony/text/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...]
CollatorTest.java 19 import java.text.Collator;
27 * @tests java.text.Collator#clone()
30 Collator c = Collator.getInstance(Locale.GERMAN);
31 Collator c2 = (Collator) c.clone();
37 * @tests java.text.Collator#compare(java.lang.Object, java.lang.Object)
40 Collator c = Collator.getInstance(Locale.FRENCH);
43 c.setStrength(Collator.IDENTICAL)
207 RuleBasedCollator collator; local
238 RuleBasedCollator collator; local
    [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");
36 collator = new RuleBasedCollator("= 1 , 2 ; 3 , 4 < 5 ; 6 , 7");
43 * ((RuleBasedCollator)collator).getCollationElementIterator("1234567");
52 // 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/icu4c/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/icu4c/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/sqlite/android/
sqlite3_android.cpp 274 UCollator* collator; member in struct:SqliteUserData
328 UCollator* collator = (UCollator*)sqlite3_user_data(context); local
411 uint32_t result = ucol_getSortKey(collator, token, -1, (uint8_t*)keybuf, sizeof(keybuf)-1);
454 static void localized_collator_dtor(UCollator* collator)
456 ucol_close(collator);
461 // This collator may be removed in the near future, so you MUST not use now.
470 UCollator* collator = ucol_open(systemLocale, &status); local
475 ucol_setAttribute(collator, UCOL_STRENGTH, UCOL_PRIMARY, &status);
482 ucol_getShortDefinitionString(collator, NULL, buf, 1024, &status);
485 err = sqlite3_create_collation_v2(handle, LOCALIZED_COLLATOR_NAME, SQLITE_UTF16, collator,
554 UCollator * collator = ucol_open(NULL, &status); local
    [all...]
  /external/chromium/chrome/browser/chromeos/options/
wifi_config_model.cc 15 #include "unicode/coll.h" // icu::Collator
37 explicit CertNameComparator(icu::Collator* collator)
38 : collator_(collator) {
52 icu::Collator* collator_;
93 scoped_ptr<icu::Collator> collator; local
95 collator.reset(
96 icu::Collator::createInstance(
100 collator.reset(NULL)
    [all...]
  /external/icu4c/i18n/unicode/
colldata.h 27 * The size of the internal buffer for the Collator's short description string.
72 * @param coll - the Collator used to collect the CEs.
264 * This class holds the Collator-specific data needed to
285 * @param collator - the collator
297 static CollData *open(UCollator *collator, UErrorCode &status);
425 CollData(UCollator *collator, char *cacheKey, int32_t cachekeyLength, UErrorCode &status);
430 static char *getCollatorKey(UCollator *collator, char *buffer, int32_t bufferLength);
usearch.h 28 * handled, e.g. for the German collator, characters &szlig; and SS will be matched
94 * Though collator attributes will be taken into consideration while
96 * attributes. These attributes can be set by getting the collator
98 * Lastly to update String Search to the new collator attributes,
186 * standard collation element comparison at the specified collator
198 * example, with a secondary-strength English collator, a plain 'e' in
212 * For example, with a secondary-strength English collator, a plain 'e'
227 * rule set. A collator will be created in the process, which will be owned by
256 * Creating a search iterator data struct using the argument collator language
257 * rule set. Note, user retains the ownership of this collator, thus the
    [all...]
  /libcore/luni/src/main/java/java/text/
Collator.java 61 * This {@code Collator} deals only with two decomposition modes, the canonical
64 * {@code java.text.Collator.FULL_DECOMPOSITION} is not supported here. If the
65 * canonical decomposition mode is set, {@code Collator} handles un-normalized
75 * // Get the Collator for US English and set its strength to PRIMARY
76 * Collator usCollator = Collator.getInstance(Locale.US);
77 * usCollator.setStrength(Collator.PRIMARY);
85 * The following example shows how to compare two strings using the collator for
91 * Collator myCollator = Collator.getInstance()
226 Collator collator = (Collator) object; local
    [all...]
  /external/icu4c/i18n/
stsearch.cpp 46 // wrapper around the internal collator and rules, which (here) are
49 // to the exposed collator (setStrength etc) _should_ modify the
50 // ucollator. thus the collator is not a copy-on-write alias, and it
56 // Alias the collator
57 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
91 // Alias the collator
92 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
119 // Alias the collator
120 m_collator_.setUCollator((UCollator *)m_strsrch_->collator);
154 // Alias the collator
    [all...]
usearch.cpp 155 // note for tertiary we can't use the collator->tertiaryMask, that
306 coleiter = ucol_openElements(strsrch->collator, pattern->text,
314 uprv_init_collIterate(strsrch->collator, pattern->text,
381 coleiter = ucol_openElements(strsrch->collator, pattern->text,
388 uprv_init_collIterate(strsrch->collator, pattern->text,
795 * @param collator collation sata
802 inline int32_t getNextSafeOffset(const UCollator *collator,
808 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
853 int32_t safeoffset = getNextSafeOffset(strsrch->collator,
1179 const UCollator *collator = strsrch->collator; local
1591 const UCollator *collator = strsrch->collator; local
1829 const UCollator *collator = strsrch->collator; local
2026 const UCollator *collator = strsrch->collator; local
2251 const UCollator *collator = strsrch->collator; local
2466 const UCollator *collator = strsrch->collator; local
2621 UCollator *collator = ucol_open(locale, status); local
    [all...]
usrchimp.h 63 const UCollator *collator; member in struct:UStringSearch
87 * For tertiary we can't use the collator->tertiaryMask, that is a
colldata.cpp 457 CollData *get(UCollator *collator, UErrorCode &status);
463 static char *getKey(UCollator *collator, char *keyBuffer, int32_t *charBufferLength);
513 CollData *CollDataCache::get(UCollator *collator, UErrorCode &status)
517 char *key = getKey(collator, keyBuffer, &keyLength);
527 newData = new CollData(collator, key, keyLength, status);
582 char *CollDataCache::getKey(UCollator *collator, char *keyBuffer, int32_t *keyBufferLength)
585 int32_t len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status);
592 len = ucol_getShortDefinitionString(collator, NULL, keyBuffer, *keyBufferLength, &status);
638 CollData::CollData(UCollator *collator, char *cacheKey, int32_t cacheKeyLength, UErrorCode &status)
691 coll = ucol_safeClone(collator, NULL, NULL, &status)
    [all...]
  /external/icu4c/test/cintltst/
usrchtst.c 60 log_err_status(*status, "Error opening collator\n");
157 * Getting the collator
159 static UCollator *getCollator(const char *collator)
161 if (collator == NULL) {
164 if (strcmp(collator, "fr") == 0) {
167 else if (strcmp(collator, "de") == 0) {
170 else if (strcmp(collator, "es") == 0) {
261 log_data_err("Opening collator failed.\n");
286 log_data_err("Opening collator failed.\n");
448 UCollator *collator = getCollator(search.collator) local
479 UCollator *collator = getCollator(search.collator); local
520 UCollator *collator = getCollator(search.collator); local
676 UCollator *collator = getCollator(search->collator); local
783 UCollator *collator = getCollator(search->collator); local
1556 UCollator *collator; local
1599 UCollator *collator; local
1766 UCollator *collator = getCollator(search->collator); local
1884 UCollator *collator = getCollator(search->collator); local
2170 UCollator *collator; local
2284 UCollator *collator = NULL; local
    [all...]
  /external/icu4c/test/intltest/
srchtest.cpp 30 dataerrln(__FILE__ " cannot test - failed to create collator."); \
48 m_en_us_ = (RuleBasedCollator *)Collator::createInstance("en_US", status);
49 m_fr_fr_ = (RuleBasedCollator *)Collator::createInstance("fr_FR", status);
50 m_de_ = (RuleBasedCollator *)Collator::createInstance("de_DE", status);
51 m_es_ = (RuleBasedCollator *)Collator::createInstance("es_ES", status);
61 errln("Collator creation failed with %s", u_errorName(status));
180 RuleBasedCollator * StringSearchTest::getCollator(const char *collator)
182 if (collator == NULL) {
185 if (strcmp(collator, "fr") == 0) {
188 else if (strcmp(collator, "de") == 0)
361 Collator *collator = getCollator(search->collator); local
418 Collator *collator = getCollator(search->collator); local
471 Collator *collator = getCollator(search->collator); local
805 RuleBasedCollator *collator = getCollator(search->collator); local
908 RuleBasedCollator *collator = getCollator(search->collator); local
1508 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1546 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
1670 RuleBasedCollator *collator = getCollator(search->collator); local
1776 RuleBasedCollator *collator = getCollator(search->collator); local
2015 Collator *collator = strsrch->getCollator(); local
2113 RuleBasedCollator *collator = new RuleBasedCollator(rules, local
    [all...]
srchtest.h 39 RuleBasedCollator * getCollator(const char *collator);
42 Collator::ECollationStrength getECollationStrength(
  /external/chromium/chrome/browser/autofill/
autofill_country.cc 376 // Returns an ICU collator -- i.e. string comparator -- appropriate for the
378 icu::Collator* GetCollatorForLocale(const std::string& locale);
380 // Returns the ICU sort key corresponding to |str| for the given |collator|.
384 const std::string GetSortKey(const icu::Collator& collator,
403 std::map<std::string, icu::Collator*> collators_;
466 const icu::Collator* collator = GetCollatorForLocale(locale); local
479 std::string sort_key = GetSortKey(*collator,
495 icu::Collator* collator = GetCollatorForLocale(locale) local
    [all...]
  /external/chromium/chrome/browser/
background_application_list_model.cc 27 explicit ExtensionNameComparator(icu::Collator* collator);
31 icu::Collator* collator_;
34 ExtensionNameComparator::ExtensionNameComparator(icu::Collator* collator)
35 : collator_(collator) {
85 scoped_ptr<icu::Collator> collator(icu::Collator::createInstance(loc, error));
87 ExtensionNameComparator(collator.get()))
    [all...]
  /development/apps/Development/src/com/android/development/
AppHwConfigList.java 34 import java.text.Collator;
149 return collator.compare(sa, sb);
151 private final Collator collator = Collator.getInstance();
AppPicker.java 39 import java.text.Collator;
135 return collator.compare(a.label, b.label);
138 private final Collator collator = Collator.getInstance();
RunningProcesses.java 32 import java.text.Collator;
140 return collator.compare(sa, sb);
142 private final Collator collator = Collator.getInstance();
  /external/webkit/Source/WebCore/icu/unicode/
usearch.h 27 * handled, e.g. for the German collator, characters &szlig; and SS will be matched
93 * Though collator attributes will be taken into consideration while
95 * attributes. These attributes can be set by getting the collator
97 * Lastly to update String Search to the new collator attributes,
180 * rule set. A collator will be created in the process, which will be owned by
209 * Creating a search iterator data struct using the argument collator language
210 * rule set. Note, user retains the ownership of this collator, thus the
212 * NOTE: string search cannot be instantiated from a collator that has
218 * @param collator used for the language rules
226 * @param status for errors if it occurs. If collator, pattern or text is NULL,
    [all...]
  /external/webkit/Source/WebCore/xml/
XSLTUnicodeSort.cpp 37 #include <wtf/unicode/Collator.h>
164 // The implementation of Collator should be lenient, and accept both "en-US" and "en_US", for example.
167 Collator collator(comp->has_lang ? (const char*)comp->lang : "en");
168 collator.setOrderLowerFirst(comp->lower_first);
201 tst = collator.collate(str1.characters(), str1.length(), str2.characters(), str2.length());
256 tst = collator.collate(str1.characters(), str1.length(), str2.characters(), str2.length());

Completed in 645 milliseconds

1 2