00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef ULOC_H
00022 #define ULOC_H
00023
00024 #include "unicode/utypes.h"
00025
00197
00198
00199
00200
00201 #define ULOC_CHINESE "zh"
00202 #define ULOC_ENGLISH "en"
00203 #define ULOC_FRENCH "fr"
00204 #define ULOC_GERMAN "de"
00205 #define ULOC_ITALIAN "it"
00206 #define ULOC_JAPANESE "ja"
00207 #define ULOC_KOREAN "ko"
00208 #define ULOC_SIMPLIFIED_CHINESE "zh_CN"
00209 #define ULOC_TRADITIONAL_CHINESE "zh_TW"
00210
00211
00212
00213
00214
00215 #define ULOC_CANADA "en_CA"
00216 #define ULOC_CANADA_FRENCH "fr_CA"
00217 #define ULOC_CHINA "zh_CN"
00218 #define ULOC_PRC "zh_CN"
00219 #define ULOC_FRANCE "fr_FR"
00220 #define ULOC_GERMANY "de_DE"
00221 #define ULOC_ITALY "it_IT"
00222 #define ULOC_JAPAN "ja_JP"
00223 #define ULOC_KOREA "ko_KR"
00224 #define ULOC_TAIWAN "zh_TW"
00225 #define ULOC_UK "en_GB"
00226 #define ULOC_US "en_US"
00227
00228
00229
00230
00231
00232 #define ULOC_LANG_CAPACITY 12
00233 #define ULOC_COUNTRY_CAPACITY 4
00234 #define ULOC_FULLNAME_CAPACITY 50
00235
00236
00246 U_CAPI const char* U_EXPORT2
00247 uloc_getDefault(void);
00248
00258 U_CAPI void U_EXPORT2
00259 uloc_setDefault(const char* localeID,
00260 UErrorCode* status);
00261
00274 U_CAPI int32_t U_EXPORT2
00275 uloc_getLanguage(const char* localeID,
00276 char* language,
00277 int32_t languageCapacity,
00278 UErrorCode* err);
00279
00292 U_CAPI int32_t U_EXPORT2
00293 uloc_getCountry(const char* localeID,
00294 char* country,
00295 int32_t countryCapacity,
00296 UErrorCode* err);
00297
00310 U_CAPI int32_t U_EXPORT2
00311 uloc_getVariant(const char* localeID,
00312 char* variant,
00313 int32_t variantCapacity,
00314 UErrorCode* err);
00332 U_CAPI int32_t U_EXPORT2
00333 uloc_getName(const char* localeID,
00334 char* name,
00335 int32_t nameCapacity,
00336 UErrorCode* err);
00337
00345 U_CAPI const char* U_EXPORT2
00346 uloc_getISO3Language(const char* localeID);
00347
00348
00356 U_CAPI const char* U_EXPORT2
00357 uloc_getISO3Country(const char* localeID);
00358
00366 U_CAPI uint32_t U_EXPORT2
00367 uloc_getLCID(const char* localeID);
00368
00381 U_CAPI int32_t U_EXPORT2
00382 uloc_getDisplayLanguage(const char* locale,
00383 const char* inLocale,
00384 UChar* language,
00385 int32_t languageCapacity,
00386 UErrorCode* status);
00387
00400 U_CAPI int32_t U_EXPORT2
00401 uloc_getDisplayCountry(const char* locale,
00402 const char* inLocale,
00403 UChar* country,
00404 int32_t countryCapacity,
00405 UErrorCode* status);
00406
00407
00420 U_CAPI int32_t U_EXPORT2
00421 uloc_getDisplayVariant(const char* locale,
00422 const char* inLocale,
00423 UChar* variant,
00424 int32_t variantCapacity,
00425 UErrorCode* status);
00426
00439 U_CAPI int32_t U_EXPORT2
00440 uloc_getDisplayName(const char* localeID,
00441 const char* inLocaleID,
00442 UChar* result,
00443 int32_t maxResultSize,
00444 UErrorCode* err);
00445
00446
00457 U_CAPI const char* U_EXPORT2
00458 uloc_getAvailable(int32_t n);
00459
00466 U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
00467
00477 U_CAPI const char* const* U_EXPORT2
00478 uloc_getISOLanguages(void);
00479
00489 U_CAPI const char* const* U_EXPORT2
00490 uloc_getISOCountries(void);
00491
00505 U_CAPI int32_t U_EXPORT2
00506 uloc_getParent(const char* localeID,
00507 char* parent,
00508 int32_t parentCapacity,
00509 UErrorCode* err);
00510
00511
00512
00513
00514 #endif
00515
00516
00517