/external/icu/icu4c/source/test/intltest/ |
H A D | srchtest.h | 39 RuleBasedCollator * getCollator(const char *collator);
|
H A D | colldata.h | 213 * @param collator - the collator 216 CollData(UCollator *collator, UErrorCode &status);
|
H A D | svccoll.cpp | 50 { // 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 D | ssearch.cpp | 179 // 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 D | colldata.cpp | 314 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 D | usearch.cpp | 145 // 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 D | stsearch.cpp | 159 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 D | rbnf.cpp | 662 , 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 D | nfrule.cpp | 1202 * 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 D | usrchimp.h | 169 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 D | CollationFrenchTest.java | 13 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 D | CollationServiceTest.java | 8 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 D | TestComparator.java | 9 package com.ibm.icu.dev.test.collator;
|
H A D | CollationCreationMethodTest.java | 8 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 D | CollationCurrencyTest.java | 13 package com.ibm.icu.dev.test.collator;
|
H A D | CollationFinnishTest.java | 13 package com.ibm.icu.dev.test.collator;
|
H A D | LotusCollationKoreanTest.java | 13 package com.ibm.icu.dev.test.collator;
|
H A D | AlphabeticIndexTest.java | 7 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 D | CollationRegressionTest.java | 13 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 D | usrchtst.c | 60 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 D | usearch.h | 28 * handled, e.g. for the German collator, characters ß 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 D | ULocaleCollationTest.java | 294 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 D | i18n.js | 19 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 D | GlobalizationPreferences.java | 36 * <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 D | AlphabeticIndex.java | 114 * 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...] |