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);
267 Locale(
const char * language,
268 const char * country = 0,
269 const char * variant = 0,
270 const char * keywordsAndValues = 0);
328 #ifndef U_HIDE_SYSTEM_API
344 static const Locale& U_EXPORT2 getDefault(
void);
358 static void U_EXPORT2 setDefault(
const Locale& newLocale,
371 static Locale U_EXPORT2 createFromName(
const char *name);
381 static Locale U_EXPORT2 createCanonical(
const char* name);
388 inline const char * getLanguage( )
const;
397 inline const char * getScript( )
const;
404 inline const char * getCountry( )
const;
411 inline const char * getVariant( )
const;
421 inline const char * getName()
const;
430 const char * getBaseName()
const;
454 int32_t getKeywordValue(
const char* keywordName,
char *buffer, int32_t bufferCapacity,
UErrorCode &status)
const;
470 void setKeywordValue(
const char* keywordName,
const char* keywordValue,
UErrorCode &status);
478 const char * getISO3Language()
const;
485 const char * getISO3Country()
const;
494 uint32_t getLCID(
void)
const;
509 UBool isRightToLeft()
const;
646 int32_t hashCode(
void)
const;
663 UBool isBogus(
void)
const;
673 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
683 static const char*
const* U_EXPORT2 getISOCountries();
693 static const char*
const* U_EXPORT2 getISOLanguages();
700 static UClassID U_EXPORT2 getStaticClassID();
710 #ifndef U_HIDE_INTERNAL_API
715 void setFromPOSIXID(
const char *posixID);
726 Locale& init(
const char* cLocaleID,
UBool canonicalize);
741 static Locale *getLocaleCache(
void);
746 int32_t variantBegin;
755 static const Locale &getLocale(
int locid);
761 friend Locale *locale_set_default_internal(
const char *,
UErrorCode& status);
776 Locale::getCountry()
const
782 Locale::getLanguage()
const
788 Locale::getScript()
const
794 Locale::getVariant()
const
796 return &baseName[variantBegin];
800 Locale::getName()
const
806 Locale::isBogus(
void)
const {