Lines Matching defs:Locale

41  * \brief C++ API: Locale ID object.
50 * A <code>Locale</code> object represents a specific geographical, political,
51 * or cultural region. An operation that requires a <code>Locale</code> to perform
52 * its task is called <em>locale-sensitive</em> and uses the <code>Locale</code>
58 * The Locale class is not suitable for subclassing.
61 * You can create a <code>Locale</code> object using the constructor in
65 * Locale( const char* language,
95 * Because a <code>Locale</code> object is just an identifier for a region,
96 * no validity check is performed when you construct a <code>Locale</code>.
98 * <code>Locale</code> you construct, you must query those resources. For
107 * The <code>Locale</code> class provides a number of convenient constants
108 * that you can use to create <code>Locale</code> objects for commonly used
109 * locales. For example, the following refers to a <code>Locale</code> object
113 * Locale::getUS()
118 * Once you've created a <code>Locale</code> you can query it for information about
141 * Locale myLocale;
158 * A <code>Locale</code> is the mechanism for identifying the kind of object
173 * static Locale* getAvailableLocales(int32_t& numLocales)
174 * static UnicodeString& getDisplayName(const Locale& objectLocale,
175 * const Locale& displayLocale,
177 * static UnicodeString& getDisplayName(const Locale& objectLocale,
185 class U_COMMON_API Locale : public UObject {
188 static const Locale &U_EXPORT2 getRoot(void);
190 static const Locale &U_EXPORT2 getEnglish(void);
192 static const Locale &U_EXPORT2 getFrench(void);
194 static const Locale &U_EXPORT2 getGerman(void);
196 static const Locale &U_EXPORT2 getItalian(void);
198 static const Locale &U_EXPORT2 getJapanese(void);
200 static const Locale &U_EXPORT2 getKorean(void);
202 static const Locale &U_EXPORT2 getChinese(void);
204 static const Locale &U_EXPORT2 getSimplifiedChinese(void);
206 static const Locale &U_EXPORT2 getTraditionalChinese(void);
209 static const Locale &U_EXPORT2 getFrance(void);
211 static const Locale &U_EXPORT2 getGermany(void);
213 static const Locale &U_EXPORT2 getItaly(void);
215 static const Locale &U_EXPORT2 getJapan(void);
217 static const Locale &U_EXPORT2 getKorea(void);
219 static const Locale &U_EXPORT2 getChina(void);
221 static const Locale &U_EXPORT2 getPRC(void);
223 static const Locale &U_EXPORT2 getTaiwan(void);
225 static const Locale &U_EXPORT2 getUK(void);
227 static const Locale &U_EXPORT2 getUS(void);
229 static const Locale &U_EXPORT2 getCanada(void);
231 static const Locale &U_EXPORT2 getCanadaFrench(void);
235 * Construct a default locale object, a Locale for the default locale ID.
241 Locale();
254 * Please note: The Java Locale class does NOT accept the form
255 * 'new Locale("en_US")' but only 'new Locale("en","US")'
267 Locale( const char * language,
273 * Initializes a Locale object from another Locale object.
275 * @param other The Locale object being copied in.
278 Locale(const Locale& other);
285 virtual ~Locale() ;
290 * @param other The Locale object being copied in.
294 Locale& operator=(const Locale& other);
303 UBool operator==(const Locale& other) const;
313 UBool operator!=(const Locale& other) const;
326 Locale *clone() const;
330 * Common methods of getting the current default Locale. Used for the
340 * @return a reference to the Locale object for the default locale ID
344 static const Locale& U_EXPORT2 getDefault(void);
352 * @param newLocale Locale to set to. If NULL, set to the value obtained
358 static void U_EXPORT2 setDefault(const Locale& newLocale,
366 * the default Locale is used.
371 static Locale U_EXPORT2 createFromName(const char *name);
381 static Locale U_EXPORT2 createCanonical(const char* name);
460 * and construct a new Locale if it differs from getName().
513 * if the locale's language code is "en", passing Locale::getFrench() for
514 * displayLocale would result in "Anglais", while passing Locale::getGerman()
520 UnicodeString& getDisplayLanguage( const Locale& displayLocale,
541 * Locale::getFrench() for displayLocale would result in "", while
542 * passing Locale::getGerman() for displayLocale would result in
548 UnicodeString& getDisplayScript( const Locale& displayLocale,
569 * Locale::getFrench() for displayLocale would result in "&Eacute;tats-Unis", while
570 * passing Locale::getGerman() for displayLocale would result in
576 UnicodeString& getDisplayCountry( const Locale& displayLocale,
596 UnicodeString& getDisplayVariant( const Locale& displayLocale,
624 UnicodeString& getDisplayName( const Locale& displayLocale,
644 * Gets the bogus state. Locale object can be bogus if it doesn't exist
653 * @return A pointer to an array of Locale objects. This array is the list
658 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
711 Locale& init(const char* cLocaleID, UBool canonicalize);
721 Locale(ELocaleType);
726 static Locale *getLocaleCache(void);
740 static const Locale &getLocale(int locid);
746 friend Locale *locale_set_default_internal(const char *, UErrorCode& status);
755 Locale::operator!=(const Locale& other) const
761 Locale::getCountry() const
767 Locale::getLanguage() const
773 Locale::getScript() const
779 Locale::getVariant() const
786 Locale::getName() const
792 Locale::isBogus(void) const {