Searched refs:collator (Results 26 - 50 of 79) sorted by relevance

1234

/external/icu/icu4c/source/test/intltest/
H A Dsrchtest.h39 RuleBasedCollator * getCollator(const char *collator);
H A Dcolldata.h213 * @param collator - the collator
216 CollData(UCollator *collator, UErrorCode &status);
H A Dsvccoll.cpp50 { // try override en_US collator
58 errln("register of french collator for en_US failed on request for en_US_FOO");
80 errln("failed to unregister french collator");
85 errln("collator after unregister does not match original");
95 { // try create collator for new locale
105 errln("register of fr collator for fu_FU failed");
178 errln("collator fufu != collator frFR");
183 errln("failed to unregister french collator");
203 errln("collator afte
217 Collator* collator; member in struct:CollatorInfo
[all...]
H A Dssearch.cpp179 // Get the collator normalization flag. Default is UCOL_OFF.
254 // Open a collator and StringSearch based on the parameters
258 LocalUCollatorPointer collator(ucol_open(clocale, &status));
259 ucol_setStrength(collator.getAlias(), collatorStrength);
260 ucol_setAttribute(collator.getAlias(), UCOL_NORMALIZATION_MODE, normalize, &status);
261 ucol_setAttribute(collator.getAlias(), UCOL_ALTERNATE_HANDLING, alternateHandling, &status);
264 collator.getAlias(),
302 collator.getAlias(),
622 errcheckln(status, "Failed to create collator in offsetTest! - %s", u_errorName(status));
921 LocalUCollatorPointer collator(ucol_ope
[all...]
H A Dcolldata.cpp314 CollData::CollData(UCollator *collator, UErrorCode &status) argument
344 coll = ucol_safeClone(collator, NULL, NULL, &status);
350 coll = collator;
/external/icu/icu4c/source/i18n/
H A Dusearch.cpp145 // note for tertiary we can't use the collator->tertiaryMask, that
296 coleiter = ucol_openElements(strsrch->collator, pattern->text,
368 coleiter = ucol_openElements(strsrch->collator, pattern->text,
780 * @param collator collation sata
787 inline int32_t getNextSafeOffset(const UCollator *collator, argument
793 while (result != textlength && ucol_unsafeCP(text[result], collator)) {
838 int32_t safeoffset = getNextSafeOffset(strsrch->collator,
1164 const UCollator *collator = strsrch->collator; local
1175 if ((*end < textlength && ucol_unsafeCP(text[*end], collator)) ||
1523 getPreviousSafeOffset(const UCollator *collator, const UChar *text, int32_t textoffset) argument
1576 const UCollator *collator = strsrch->collator; local
1814 const UCollator *collator = strsrch->collator; local
2011 const UCollator *collator = strsrch->collator; local
2236 const UCollator *collator = strsrch->collator; local
2451 const UCollator *collator = strsrch->collator; local
2606 UCollator *collator = ucol_open(locale, status); local
2627 usearch_openFromCollator( const UChar *pattern, int32_t patternlength, const UChar *text, int32_t textlength, const UCollator *collator, UBreakIterator *breakiter, UErrorCode *status) argument
3007 usearch_setCollator( UStringSearch *strsrch, const UCollator *collator, UErrorCode *status) argument
[all...]
H A Dstsearch.cpp159 that.m_strsrch_->collator,
196 that.m_strsrch_->collator,
214 this->m_strsrch_->collator == thatsrch.m_strsrch_->collator);
250 // Note the const_cast. It would be cleaner if this const method returned a const collator.
251 return RuleBasedCollator::rbcFromUCollator(const_cast<UCollator *>(m_strsrch_->collator));
H A Drbnf.cpp662 , collator(NULL)
684 , collator(NULL)
706 , collator(NULL)
727 , collator(NULL)
749 , collator(NULL)
768 , collator(NULL)
832 , collator(NULL)
1266 if (!enabled && collator) {
1267 delete collator;
1268 collator
[all...]
H A Dnfrule.cpp1202 * text with a collator). If there's no match, this is 0.
1216 // get the formatter's collator and use it to create two
1219 // exception if the collator we get back from the formatter
1223 const RuleBasedCollator* collator = formatter->getCollator(); local
1224 if (collator == NULL) {
1228 LocalPointer<CollationElementIterator> strIter(collator->createCollationElementIterator(str));
1229 LocalPointer<CollationElementIterator> prefixIter(collator->createCollationElementIterator(prefix));
1326 // ugly contortions. First, use the collator to compare the
1329 collator->setStrength(Collator::PRIMARY);
1333 if (collator
1496 const RuleBasedCollator* collator = formatter->getCollator(); local
[all...]
H A Dusrchimp.h169 const UCollator *collator; member in struct:UStringSearch
194 * For tertiary we can't use the collator->tertiaryMask, that is a
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/collator/
H A DCollationFrenchTest.java13 package com.ibm.icu.dev.test.collator;
173 RuleBasedCollator collator = new RuleBasedCollator(rule);
174 collator.setFrenchCollation(true);
176 = collator.getCollationKey("a\u0325\u2f00\u2f01b\u0325");
178 = collator.getCollationKey("a\u0325\u2f01\u2f01b\u0325");
H A DCollationServiceTest.java8 package com.ibm.icu.dev.test.collator;
35 { // try override en_US collator
39 errln("register of french collator for en_US failed");
49 errln("failed to unregister french collator");
53 errln("collator after unregister does not match original");
59 { // try create collator for new locale
64 errln("register of fr collator for fu_FU failed");
98 errln("failed to unregister french collator");
102 errln("collator after unregister does not match original fu_FU");
128 Collator collator;
[all...]
H A DTestComparator.java9 package com.ibm.icu.dev.test.collator;
H A DCollationCreationMethodTest.java8 package com.ibm.icu.dev.test.collator;
37 //create a RBC from a collator reader by reading in a locale collation file
60 //this is making the assumption that the only type of collator that will be made is RBC
67 warnln("ERROR: in creation of collator of locale " + locale.getDisplayName() + ": " + e);
71 //do it several times for each collator
117 msg.append("With ").append(localeName).append(" collator\n and input string: ").append(string1).append('\n');
H A DCollationCurrencyTest.java13 package com.ibm.icu.dev.test.collator;
H A DCollationFinnishTest.java13 package com.ibm.icu.dev.test.collator;
H A DLotusCollationKoreanTest.java13 package com.ibm.icu.dev.test.collator;
H A DAlphabeticIndexTest.java7 package com.ibm.icu.dev.test.collator;
245 RuleBasedCollator collator = alphabeticIndex.getCollator();
246 collator.setStrength(Collator.IDENTICAL);
252 if (collator.compare(last,index) >= 0) {
580 RuleBasedCollator collator = alphabeticIndex.getCollator();
611 RawCollationKey rawCollationKey = collator.getRawCollationKey(name, null);
722 // The root collator provides a script-first-primary boundary contraction
1000 // There are no index characters for Kanji in the Japanese standard collator.
1016 // because it cloned the collator (which preserves frozenness)
H A DCollationRegressionTest.java13 package com.ibm.icu.dev.test.collator;
84 // Build a collator containing expanding characters
285 // Creating a default collator doesn't work when Korean is the default
296 errln("Could not create a Korean collator");
304 errln("Decomposition is not set to NO_DECOMPOSITION for Korean collator");
321 errln("Failure building a collator.");
343 errln("failure building collator:" + e);
379 errln("Failed to create collator for Locale.CANADA_FRENCH");
435 errln("Failure creating collator for Locale.CANADA_FRENCH");
531 errln("Failed to create collator fo
[all...]
/external/icu/icu4c/source/test/cintltst/
H A Dusrchtst.c60 log_err_status(*status, "Error opening collator\n");
157 * Getting the collator
159 static UCollator *getCollator(const char *collator) argument
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");
547 UCollator *collator local
578 UCollator *collator = getCollator(search.collator); local
619 UCollator *collator = getCollator(search.collator); local
775 UCollator *collator = getCollator(search->collator); local
882 UCollator *collator = getCollator(search->collator); local
1655 UCollator *collator; local
1698 UCollator *collator; local
1865 UCollator *collator = getCollator(search->collator); local
1983 UCollator *collator = getCollator(search->collator); local
2269 UCollator *collator; local
2383 UCollator *collator = NULL; local
[all...]
/external/icu/icu4c/source/i18n/unicode/
H A Dusearch.h28 * handled, e.g. for the German collator, characters &szlig; and SS will be matched
99 * Though collator attributes will be taken into consideration while
101 * attributes. These attributes can be set by getting the collator
103 * Lastly to update String Search to the new collator attributes,
219 * standard collation element comparison at the specified collator
231 * example, with a secondary-strength English collator, a plain 'e' in
250 * For example, with a secondary-strength English collator, a plain 'e'
276 * rule set. A collator will be created in the process, which will be owned by
305 * Creating a search iterator data struct using the argument collator language
306 * rule set. Note, user retains the ownership of this collator, thu
[all...]
/external/icu/icu4j/main/tests/collate/src/com/ibm/icu/dev/test/util/
H A DULocaleCollationTest.java294 Collator collator = Collator.getInstance(french);
306 List<UiListItem> newList = names.getUiList(list, false, collator);
324 Collator collator = Collator.getInstance(french);
330 names.getUiList(supported, false, collator);
/external/v8/src/
H A Di18n.js19 var AVAILABLE_SERVICES = ['collator',
33 'collator': undefined,
88 new $RegExp('^(collator|numberformat|dateformat|breakiterator)$');
164 * for a collator.
860 function initializeCollator(collator, locales, options) {
861 if (%IsInitializedIntlObject(collator)) {
869 var getOption = getGetOption(options, 'collator');
886 var locale = resolveLocale('collator', locales, options);
932 %MarkAsInitializedIntlObjectOfType(collator, 'collator', internalCollato
[all...]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/util/
H A DGlobalizationPreferences.java36 * <li>A collator (for language-sensitive sorting, searching, and matching).</li>
472 * Get a copy of the collator according to the settings.
474 * @return collator explicit or implicit.
479 if (collator == null) {
483 return (Collator) collator.clone(); // clone for safety
485 throw new ICUCloneNotSupportedException("Error in cloning collator", e);
490 * Explicitly set the collator for this object.
491 * @param collator The collator object to be passed.
496 public GlobalizationPreferences setCollator(Collator collator) { argument
1172 private Collator collator; field in class:GlobalizationPreferences
[all...]
/external/icu/icu4j/main/classes/collate/src/com/ibm/icu/text/
H A DAlphabeticIndex.java114 * RawCollationKey collationKey = collator.getRawCollationKey(name, null);
247 * Create an AlphabeticIndex that uses a specific collator.
252 * <p>The index will work directly with the supplied collator. If the caller will need to
253 * continue working with the collator it should be cloned first, so that the
254 * collator provided to the AlphabeticIndex remains unchanged after creation of the index.
256 * @param collator The collator to use to order the contents of this index.
259 public AlphabeticIndex(RuleBasedCollator collator) { argument
260 this(null, collator);
266 private AlphabeticIndex(ULocale locale, RuleBasedCollator collator) { argument
[all...]

Completed in 373 milliseconds

1234