Lines Matching refs:locale
52 * A subclass of Key that implements a locale fallback mechanism.
53 * The first locale to search for is the locale provided by the
54 * client, and the fallback locale to search for is the current
55 * default locale. If a prefix is present, the currentDescriptor
56 * includes it before the locale proper, separated by "/". This
59 * <p>Canonicalization adjusts the locale string so that the
93 * PrimaryID is the user's requested locale string,
95 * fallbackID is the current default locale's string in
130 * Convenience method to return the locale corresponding to the (canonical) original ID.
132 virtual Locale& canonicalLocale(Locale& result) const;
135 * Convenience method to return the locale corresponding to the (canonical) current ID.
137 virtual Locale& currentLocale(Locale& result) const;
188 * <p>'Visible' indicates that the specific locale(s) supported by
252 * Return a localized name for the locale represented by id.
254 virtual UnicodeString& getDisplayName(const UnicodeString& id, const Locale& locale, UnicodeString& result) const;
261 virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCode& status) const;
297 * A LocaleKeyFactory that just returns a single object for a kind/locale.
308 const UnicodeString& locale,
313 const Locale& locale,
323 * Override of superclass method. Returns the service object if kind/locale match. Service is not used.
335 * Return true if this id is equal to the locale name.
361 * A LocaleKeyFactory that creates a service based on the ICU locale data.
393 * Return the supported IDs. This is the set of all locale names in ICULocaleData.
399 * for the locale, ignoring kind, and service.
401 virtual UObject* handleCreate(const Locale& loc, int32_t kind, const ICUService* service, UErrorCode& status) const;
426 Locale fallbackLocale;
447 // no, causes ambiguities since both UnicodeString and Locale have constructors that take a const char*
460 * get(Locale, int, Locale[]) with KIND_ANY for kind and null for
463 UObject* get(const Locale& locale, UErrorCode& status) const;
467 * get(Locale, int, Locale[]) with a null actualReturn.
469 UObject* get(const Locale& locale, int32_t kind, UErrorCode& status) const;
473 * get(Locale, String, Locale[]) with a null kind.
475 UObject* get(const Locale& locale, Locale* actualReturn, UErrorCode& status) const;
479 * createKey(Locale.toString(), kind) to create a key, calls getKey, and then
481 * getKey (stripping any prefix) into a Locale.
483 UObject* get(const Locale& locale, int32_t kind, Locale* actualReturn, UErrorCode& status) const;
487 * registerObject(Object, Locale, int32_t kind, int coverage)
490 virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, UErrorCode& status);
494 * registerObject(Object, Locale, int kind, int coverage)
497 virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, int32_t kind, UErrorCode& status);
503 virtual URegistryKey registerInstance(UObject* objToAdopt, const Locale& locale, int32_t kind, int32_t coverage, UErrorCode& status);
508 * Since both UnicodeString and Locale have constructors that take const char*, adding a public
513 virtual URegistryKey registerInstance(UObject* objToAdopt, const UnicodeString& locale, UBool visible, UErrorCode& status);
524 * Return the name of the current fallback locale. If it has changed since this was