185 static const Locale &U_EXPORT2 getRoot(
void);
187 static const Locale &U_EXPORT2 getEnglish(
void);
189 static const Locale &U_EXPORT2 getFrench(
void);
191 static const Locale &U_EXPORT2 getGerman(
void);
193 static const Locale &U_EXPORT2 getItalian(
void);
195 static const Locale &U_EXPORT2 getJapanese(
void);
197 static const Locale &U_EXPORT2 getKorean(
void);
199 static const Locale &U_EXPORT2 getChinese(
void);
201 static const Locale &U_EXPORT2 getSimplifiedChinese(
void);
203 static const Locale &U_EXPORT2 getTraditionalChinese(
void);
206 static const Locale &U_EXPORT2 getFrance(
void);
208 static const Locale &U_EXPORT2 getGermany(
void);
210 static const Locale &U_EXPORT2 getItaly(
void);
212 static const Locale &U_EXPORT2 getJapan(
void);
214 static const Locale &U_EXPORT2 getKorea(
void);
216 static const Locale &U_EXPORT2 getChina(
void);
218 static const Locale &U_EXPORT2 getPRC(
void);
220 static const Locale &U_EXPORT2 getTaiwan(
void);
222 static const Locale &U_EXPORT2 getUK(
void);
224 static const Locale &U_EXPORT2 getUS(
void);
226 static const Locale &U_EXPORT2 getCanada(
void);
228 static const Locale &U_EXPORT2 getCanadaFrench(
void);
264 Locale(
const char * language,
265 const char * country = 0,
266 const char * variant = 0,
267 const char * keywordsAndValues = 0);
325 #ifndef U_HIDE_SYSTEM_API
341 static const Locale& U_EXPORT2 getDefault(
void);
355 static void U_EXPORT2 setDefault(
const Locale& newLocale,
368 static Locale U_EXPORT2 createFromName(
const char *name);
378 static Locale U_EXPORT2 createCanonical(
const char* name);
385 inline const char * getLanguage( )
const;
394 inline const char * getScript( )
const;
401 inline const char * getCountry( )
const;
408 inline const char * getVariant( )
const;
418 inline const char * getName()
const;
427 const char * getBaseName()
const;
451 int32_t getKeywordValue(
const char* keywordName,
char *buffer, int32_t bufferCapacity,
UErrorCode &status)
const;
464 void setKeywordValue(
const char* keywordName,
const char* keywordValue,
UErrorCode &status);
472 const char * getISO3Language()
const;
479 const char * getISO3Country()
const;
488 uint32_t getLCID(
void)
const;
625 int32_t hashCode(
void)
const;
642 UBool isBogus(
void)
const;
652 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
662 static const char*
const* U_EXPORT2 getISOCountries();
672 static const char*
const* U_EXPORT2 getISOLanguages();
679 static UClassID U_EXPORT2 getStaticClassID();
689 #ifndef U_HIDE_INTERNAL_API
694 void setFromPOSIXID(
const char *posixID);
705 Locale& init(
const char* cLocaleID,
UBool canonicalize);
720 static Locale *getLocaleCache(
void);
725 int32_t variantBegin;
734 static const Locale &getLocale(
int locid);
740 friend Locale *locale_set_default_internal(
const char *,
UErrorCode& status);
750 Locale::getCountry()
const
756 Locale::getLanguage()
const
762 Locale::getScript()
const
768 Locale::getVariant()
const
771 return &baseName[variantBegin];
775 Locale::getName()
const
781 Locale::isBogus(
void)
const {