Home | History | Annotate | Download | only in intltest

Lines Matching refs:Collator

44     Collator* frcol = Collator::createInstance(FR, status);
45 Collator* uscol = Collator::createInstance(US, status);
53 { // try override en_US collator
54 Collator *clone = frcol->clone();
55 URegistryKey key = Collator::registerInstance(frcol, US, status);
59 Collator* ncol = Collator::createInstance(US_FOO, status);
61 errln("register of french collator for en_US failed on request for en_US_FOO");
82 if (!Collator::unregister(key, status)) {
83 errln("failed to unregister french collator");
86 ncol = Collator::createInstance(US, status);
88 errln("collator after unregister does not match original");
94 frcol = Collator::createInstance(FR, status);
98 { // try create collator for new locale
102 Collator* fucol = Collator::createInstance(fu_FU, status);
103 Collator *clone = frcol->clone();
104 URegistryKey key = Collator::registerInstance(frcol, fu_FU, status);
106 Collator* ncol = Collator::createInstance(fu_FU_FOO, status);
108 errln("register of fr collator for fu_FU failed");
113 StringEnumeration* localeEnum = Collator::getAvailableLocales();
156 Collator::getDisplayName(fu_FU, displayName);
167 Collator::getDisplayName(fu_FU, fu_FU, displayName);
179 if (*Collator::fromUCollator(fufu.getAlias()) !=
180 *Collator::fromUCollator(frFR.getAlias())) {
181 errln("collator fufu != collator frFR");
185 if (!Collator::unregister(key, status)) {
186 errln("failed to unregister french collator");
204 ncol = Collator::createInstance(fu_FU, status);
206 errln("collator after unregister does not match original fu_FU");
220 Collator* collator;
223 CollatorInfo(const Locale& locale, Collator* collatorToAdopt, Hashtable* displayNamesToAdopt);
228 CollatorInfo::CollatorInfo(const Locale& _locale, Collator* _collator, Hashtable* _displayNames)
230 , collator(_collator)
233 collator->setLocales(locale, locale, locale);
237 delete collator;
289 virtual Collator* createCollator(const Locale& loc) {
292 return ci->collator->clone();
366 Collator* frcol = Collator::createInstance(Locale::getFrance(), status);
367 Collator* gecol = Collator::createInstance(Locale::getGermany(), status);
368 Collator* jpcol = Collator::createInstance(Locale::getJapan(), status);
395 Collator* uscol = Collator::createInstance(Locale::getUS(), status);
396 Collator* fucol = Collator::createInstance(fu_FU, status);
401 URegistryKey key = Collator::registerFactory(factory, status);
406 Collator* ncol = Collator::createInstance(Locale::getUS(), status);
412 ncol = Collator::createInstance(fu_FU_FOO, status);
431 StringEnumeration* localeEnum = Collator::getAvailableLocales();
449 Collator::getDisplayName(fu_FU, name);
454 Collator::getDisplayName(fu_FU, fu_FU_FOO, name);
459 if (!Collator::unregister(key, status)) {
464 ncol = Collator::createInstance(fu_FU, status);
466 errln("collator after unregister does not match original fu_FU");
543 * Check the integrity of the results of Collator::getAvailableLocales().
548 StringEnumeration *iter = Collator::getAvailableLocales();
569 StringEnumeration *iter = Collator::getKeywords(ec);
575 iter = Collator::getKeywordValues(KW[0], ec);
582 Locale equiv = Collator::getFunctionalEquivalent("collation",
590 equiv = Collator::getFunctionalEquivalent("collation",
598 equiv = Collator::getFunctionalEquivalent("collation",
606 equiv = Collator::getFunctionalEquivalent("collation",