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
00241 U_CAPI const char* U_EXPORT2
00242 uloc_getDefault(void);
00243
00253 U_CAPI void U_EXPORT2
00254 uloc_setDefault(const char* localeID,
00255 UErrorCode* status);
00256
00270 U_CAPI int32_t U_EXPORT2
00271 uloc_getLanguage(const char* localeID,
00272 char* language,
00273 int32_t languageCapacity,
00274 UErrorCode* err);
00275
00289 U_CAPI int32_t U_EXPORT2
00290 uloc_getCountry(const char* localeID,
00291 char* country,
00292 int32_t countryCapacity,
00293 UErrorCode* err);
00294
00308 U_CAPI int32_t U_EXPORT2
00309 uloc_getVariant(const char* localeID,
00310 char* variant,
00311 int32_t variantCapacity,
00312 UErrorCode* err);
00331 U_CAPI int32_t U_EXPORT2
00332 uloc_getName(const char* localeID,
00333 char* name,
00334 int32_t nameCapacity,
00335 UErrorCode* err);
00336
00344 U_CAPI const char* U_EXPORT2
00345 uloc_getISO3Language(const char* localeID);
00346
00347
00356 U_CAPI const char* U_EXPORT2
00357 uloc_getISO3Country(const char* localeID);
00358
00367 U_CAPI uint32_t U_EXPORT2
00368 uloc_getLCID(const char* localeID);
00369
00382 U_CAPI int32_t U_EXPORT2
00383 uloc_getDisplayLanguage(const char* locale,
00384 const char* inLocale,
00385 UChar* language,
00386 int32_t languageCapacity,
00387 UErrorCode* status);
00388
00402 U_CAPI int32_t U_EXPORT2
00403 uloc_getDisplayCountry(const char* locale,
00404 const char* inLocale,
00405 UChar* country,
00406 int32_t countryCapacity,
00407 UErrorCode* status);
00408
00409
00423 U_CAPI int32_t U_EXPORT2
00424 uloc_getDisplayVariant(const char* locale,
00425 const char* inLocale,
00426 UChar* variant,
00427 int32_t variantCapacity,
00428 UErrorCode* status);
00429
00443 U_CAPI int32_t U_EXPORT2
00444 uloc_getDisplayName(const char* localeID,
00445 const char* inLocaleID,
00446 UChar* result,
00447 int32_t maxResultSize,
00448 UErrorCode* err);
00449
00450
00462 U_CAPI const char* U_EXPORT2
00463 uloc_getAvailable(int32_t n);
00464
00471 U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
00472
00482 U_CAPI const char* const* U_EXPORT2
00483 uloc_getISOLanguages(void);
00484
00494 U_CAPI const char* const* U_EXPORT2
00495 uloc_getISOCountries(void);
00496
00497 #ifdef ICU_ULOC_USE_DEPRECATES
00498
00504 #define uloc_getDataDirectory u_getDataDirectory
00505
00512 #define uloc_setDataDirectory u_setDataDirectory
00513 #endif
00514
00515
00516 int32_t U_EXPORT2
00517 uloc_getParent(const char* localeID,
00518 char* parent,
00519 int32_t parentCapacity,
00520 UErrorCode* err);
00521
00522
00523
00524
00525 #endif
00526
00527
00528