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);
263 Locale(
const char * language,
264 const char * country = 0,
265 const char * variant = 0,
266 const char * keywordsAndValues = 0);
324 #ifndef U_HIDE_SYSTEM_API
340 static const Locale& U_EXPORT2 getDefault(
void);
354 static void U_EXPORT2 setDefault(
const Locale& newLocale,
367 static Locale U_EXPORT2 createFromName(
const char *name);
377 static Locale U_EXPORT2 createCanonical(
const char* name);
384 inline const char * getLanguage( )
const;
393 inline const char * getScript( )
const;
400 inline const char * getCountry( )
const;
407 inline const char * getVariant( )
const;
417 inline const char * getName()
const;
426 const char * getBaseName()
const;
450 int32_t getKeywordValue(
const char* keywordName,
char *buffer, int32_t bufferCapacity,
UErrorCode &status)
const;
452 #ifndef U_HIDE_DRAFT_API
464 void setKeywordValue(
const char* keywordName,
const char* keywordValue,
UErrorCode &status);
473 const char * getISO3Language()
const;
480 const char * getISO3Country()
const;
489 uint32_t getLCID(
void)
const;
626 int32_t hashCode(
void)
const;
643 UBool isBogus(
void)
const;
653 static const Locale* U_EXPORT2 getAvailableLocales(int32_t& count);
663 static const char*
const* U_EXPORT2 getISOCountries();
673 static const char*
const* U_EXPORT2 getISOLanguages();
680 static UClassID U_EXPORT2 getStaticClassID();
690 #ifndef U_HIDE_INTERNAL_API
695 void setFromPOSIXID(
const char *posixID);
706 Locale& init(
const char* cLocaleID,
UBool canonicalize);
721 static Locale *getLocaleCache(
void);
726 int32_t variantBegin;
735 static const Locale &getLocale(
int locid);
741 friend Locale *locale_set_default_internal(
const char *,
UErrorCode& status);
772 return &baseName[variantBegin];