Lines Matching refs:Locale
27 * createDefault() to call new RuleBasedCollator(Locale&)
57 static icu::Locale* availableLocaleList = NULL;
106 CollatorFactory::getDisplayName(const Locale& objectLocale,
107 const Locale& displayLocale,
129 Locale loc;
130 // make sure the requested locale is correct
165 Locale loc("");
179 // because that will overwrite its correct built-in locale
181 // have is the requested locale). (TODO remove in 3.0) [aliu]
184 Locale canonicalLocale("");
185 Locale currentLocale("");
245 Locale desiredLocale(loc);
281 Locale * temp;
291 temp = new Locale[localeCount];
298 temp[i++] = Locale(tempKey);
328 return createInstance(Locale::getDefault(), success);
331 Collator* U_EXPORT2 Collator::createInstance(const Locale& desiredLocale,
339 Locale actualLoc;
343 // Ugly Hack Alert! If the returned locale is empty (not root,
346 // that case, the locale metadata (valid & actual) is setup
359 Collator* Collator::makeInstance(const Locale& desiredLocale,
365 // RuleBasedCollator(Locale&), this will not necessarily always be the
372 // The specific caution is this: RuleBasedCollator(Locale&) will ALWAYS
374 // The reason is that it will fall back, use the default locale, and even
376 // should in general ONLY CALL RuleBasedCollator(Locale&) IF IT KNOWS IN
377 // ADVANCE that the given locale's collation is properly implemented as a
402 Collator::createInstance(const Locale &loc,
504 const Locale* U_EXPORT2 Collator::getAvailableLocales(int32_t& count)
507 Locale *result = NULL;
517 UnicodeString& U_EXPORT2 Collator::getDisplayName(const Locale& objectLocale,
518 const Locale& displayLocale,
531 UnicodeString& U_EXPORT2 Collator::getDisplayName(const Locale& objectLocale,
534 return getDisplayName(objectLocale, Locale::getDefault(), name);
605 Collator::setLocales(const Locale& /* requestedLocale */, const Locale& /* validLocale */, const Locale& /*actualLocale*/) {
621 Collator::registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode& status)
624 return getService()->registerInstance(toAdopt, locale, status);
675 getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const;
689 Locale validLoc;
697 CFactory::getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const
703 Locale loc;
705 return _delegate->getDisplayName(loc, locale, result);
841 Collator::getKeywordValuesForLocale(const char* key, const Locale& locale,
844 UEnumeration *uenum = ucol_getKeywordValuesForLocale(key, locale.getName(),
853 Locale U_EXPORT2
854 Collator::getFunctionalEquivalent(const char* keyword, const Locale& locale,
859 keyword, locale.getName(), &isAvailable, &status);
863 return Locale::createFromName(loc);
912 Collator::internalGetShortDefinitionString(const char * /*locale*/,