Lines Matching refs:Locale

41  * \brief C++ API: Locale ID object.
45 * A <code>Locale</code> object represents a specific geographical, political,
46 * or cultural region. An operation that requires a <code>Locale</code> to perform
47 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
53 * The Locale class is not suitable for subclassing.
56 * You can create a <code>Locale</code> object using the constructor in
60 * Locale( const char* language,
90 * Because a <code>Locale</code> object is just an identifier for a region,
91 * no validity check is performed when you construct a <code>Locale</code>.
93 * <code>Locale</code> you construct, you must query those resources. For
102 * The <code>Locale</code> class provides a number of convenient constants
103 * that you can use to create <code>Locale</code> objects for commonly used
104 * locales. For example, the following refers to a <code>Locale</code> object
108 * Locale::getUS()
113 * Once you've created a <code>Locale</code> you can query it for information about
136 * Locale myLocale;
153 * A <code>Locale</code> is the mechanism for identifying the kind of object
168 * static Locale* getAvailableLocales(int32_t& numLocales)
169 * static UnicodeString& getDisplayName(const Locale& objectLocale,
170 * const Locale& displayLocale,
172 * static UnicodeString& getDisplayName(const Locale& objectLocale,
181 class U_COMMON_API Locale : public UObject {
184 static const Locale &U_EXPORT2 getRoot(void);
186 static const Locale &U_EXPORT2 getEnglish(void);
188 static const Locale &U_EXPORT2 getFrench(void);
190 static const Locale &U_EXPORT2 getGerman(void);
192 static const Locale &U_EXPORT2 getItalian(void);
194 static const Locale &U_EXPORT2 getJapanese(void);
196 static const Locale &U_EXPORT2 getKorean(void);
198 static const Locale &U_EXPORT2 getChinese(void);
200 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
202 static const Locale &U_EXPORT2 getTraditionalChinese(void);
205 static const Locale &U_EXPORT2 getFrance(void);
207 static const Locale &U_EXPORT2 getGermany(void);
209 static const Locale &U_EXPORT2 getItaly(void);
211 static const Locale &U_EXPORT2 getJapan(void);
213 static const Locale &U_EXPORT2 getKorea(void);
215 static const Locale &U_EXPORT2 getChina(void);
217 static const Locale &U_EXPORT2 getPRC(void);
219 static const Locale &U_EXPORT2 getTaiwan(void);
221 static const Locale &U_EXPORT2 getUK(void);
223 static const Locale &U_EXPORT2 getUS(void);
225 static const Locale &U_EXPORT2 getCanada(void);
227 static const Locale &U_EXPORT2 getCanadaFrench(void);
231 * Construct a default locale object, a Locale for the default locale ID.
237 Locale();
250 * Please note: The Java Locale class does NOT accept the form
251 * 'new Locale("en_US")' but only 'new Locale("en","US")'
263 Locale( const char * language,
269 * Initializes a Locale object from another Locale object.
271 * @param other The Locale object being copied in.
274 Locale(const Locale& other);
281 virtual ~Locale() ;
286 * @param other The Locale object being copied in.
290 Locale& operator=(const Locale& other);
299 UBool operator==(const Locale& other) const;
309 UBool operator!=(const Locale& other) const;
322 Locale *clone() const;
325 * Common methods of getting the current default Locale. Used for the
335 * @return a reference to the Locale object for the default locale ID
339 static const Locale& U_EXPORT2 getDefault(void);
347 * @param newLocale Locale to set to. If NULL, set to the value obtained
353 static void U_EXPORT2 setDefault(const Locale& newLocale,
360 * the default Locale is used.
365 static Locale U_EXPORT2 createFromName(const char *name);
375 static Locale U_EXPORT2 createCanonical(const char* name);
504 * if the locale's language code is "en", passing Locale::getFrench() for
505 * displayLocale would result in "Anglais", while passing Locale::getGerman()
511 UnicodeString& getDisplayLanguage( const Locale& displayLocale,
532 * Locale::getFrench() for displayLocale would result in "", while
533 * passing Locale::getGerman() for displayLocale would result in
539 UnicodeString& getDisplayScript( const Locale& displayLocale,
560 * Locale::getFrench() for displayLocale would result in "&Eacute;tats-Unis", while
561 * passing Locale::getGerman() for displayLocale would result in
567 UnicodeString& getDisplayCountry( const Locale& displayLocale,
587 UnicodeString& getDisplayVariant( const Locale& displayLocale,
615 UnicodeString& getDisplayName( const Locale& displayLocale,
635 * Gets the bogus state. Locale object can be bogus if it doesn't exist
644 * @return A pointer to an array of Locale objects. This array is the list
649 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
699 Locale& init(const char* cLocaleID, UBool canonicalize);
709 Locale(ELocaleType);
714 static Locale *getLocaleCache(void);
728 static const Locale &getLocale(int locid);
738 Locale::operator!=(const Locale& other) const
744 Locale::getCountry() const
750 Locale::getLanguage() const
756 Locale::getScript() const
762 Locale::getVariant() const
769 Locale::getName() const
775 Locale::isBogus(void) const {