Lines Matching refs:Locale
29 * createDefault() to call new RuleBasedCollator(Locale&)
82 * The <code>Collator</code> class performs locale-sensitive string
98 * Like other locale-sensitive classes, you can use the static factory method,
100 * <code>Collator</code> object for a given locale. You will only need to
106 * <code>Collator</code> for the default locale.
110 * // Compare two strings in the default locale
125 * The exact assignment of strengths to language features is locale dependant.
135 * Collator* usCollator = Collator::createInstance(Locale::US, success);
162 * <strong>Note:</strong> <code>Collator</code>s with different Locale,
172 * @see Locale
280 * Creates the Collator object for the current default locale.
281 * The default locale is determined by Locale::getDefault.
286 * U_USING_FALLBACK_ERROR indicates that a fall back locale was used. For
288 * used. U_USING_DEFAULT_ERROR indicates that the default locale data was
289 * used; neither the requested locale nor any of its fall back locales
294 * @return the collation object of the default locale.(for example, en_US)
295 * @see Locale#getDefault
301 * Gets the table-based collation object for the desired locale. The
302 * resource of the desired locale will be loaded by ResourceLoader.
303 * Locale::ENGLISH is the base collation table and all other languages are
309 * U_USING_FALLBACK_ERROR indicates that a fall back locale was used. For
311 * used. U_USING_DEFAULT_ERROR indicates that the default locale data was
312 * used; neither the requested locale nor any of its fall back locales
315 * @param loc The locale ID for which to open a collator.
318 * locale.
319 * @see Locale
323 static Collator* U_EXPORT2 createInstance(const Locale& loc, UErrorCode& err);
332 * locale even when ICU is updated.
333 * The same locale and version guarantees the same sort keys and
337 * <tt>createInstance(const Locale&, UErrorCode&) instead.</tt></p>
339 * @param loc The locale ID for which to open a collator.
349 static Collator *createInstance(const Locale &loc, UVersionInfo version, UErrorCode &err);
426 * . Collator::createInstance(Locale::US, status);
551 * Gets the locale of the Collator
553 * @param type can be either requested, valid or actual locale. For more
557 * @return locale where the collation data lives. If the collator
558 * was instantiated from rules, locale is empty.
562 virtual Locale getLocale(ULocDataLocaleType type, UErrorCode& status) const = 0;
617 * Collator*myCollation = Collator::createInstance(Locale::US, status);
692 * Get name of the object for the desired Locale, in the desired langauge
694 * @param displayLocale specifies the desired locale for output
696 * @return display-able name of the object for the object locale in the
700 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
701 const Locale& displayLocale,
705 * Get name of the object for the desired Locale, in the langauge of the
706 * default locale.
709 * @return name of the object for the desired locale in the default language
712 static UnicodeString& U_EXPORT2 getDisplayName(const Locale& objectLocale,
722 * @param count the output parameter of number of elements in the locale list
726 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
731 * condition) this will return null. If there is no locale data, an empty enumeration
743 * @return a string enumeration over locale strings. The caller is
763 * Given a key and a locale, returns an array of string values in a preferred
765 * the open (creation) of the service with the locale formed from the input locale
767 * input locale alone.
770 * @param locale the locale
772 * with the given locale in preferred order. Otherwise,
773 * it will return all the available values for the locale.
775 * @return a string enumeration over keyword values for the given key and the locale.
778 static StringEnumeration* U_EXPORT2 getKeywordValuesForLocale(const char* keyword, const Locale& locale,
782 * Return the functionally equivalent locale for the given
783 * requested locale, with respect to given keyword, for the
794 * href="http://icu-project.org/userguide/locale.html#services">
798 * @param locale the requested locale
800 * indicates whether the requested locale was 'available' to the
801 * collation service. A locale is defined as 'available' if it
802 * physically exists within the collation locale data.
804 * @return the functionally equivalent collation locale, or the root
805 * locale upon error.
808 static Locale U_EXPORT2 getFunctionalEquivalent(const char* keyword, const Locale& locale,
815 * @param locale the locale with which the collator will be associated
820 static URegistryKey U_EXPORT2 registerInstance(Collator* toAdopt, const Locale& locale, UErrorCode& status);
1066 * @param requestedLocale the requested locale
1067 * @param validLocale the valid locale
1068 * @param actualLocale the actual locale
1071 virtual void setLocales(const LocaleLocale& validLocale, const Locale& actualLocale);
1085 * locale and the attribute set and produces a string that can be used for opening
1095 * @param locale a locale that will appear as a collators locale in the resulting
1096 * short string definition. If NULL, the locale will be harvested
1107 virtual int32_t internalGetShortDefinitionString(const char *locale,
1122 static Collator* makeInstance(const Locale& desiredLocale,
1145 * If standard locale display names are sufficient, Collator instances can
1172 * Return a collator for the provided locale. If the locale
1174 * @param loc the locale identifying the collator to be created.
1175 * @return a new collator if the locale is supported, otherwise NULL.
1178 virtual Collator* createCollator(const Locale& loc) = 0;
1184 * @param objectLocale the locale identifying the collator
1185 * @param displayLocale the locale for which the display name of the collator should be localized
1190 virtual UnicodeString& getDisplayName(const Locale& objectLocale,
1191 const Locale& displayLocale,
1195 * Return an array of all the locale names directly supported by this factory.