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
00182
00183
00184
00185
00186 #define ULOC_CHINESE "zh"
00187 #define ULOC_ENGLISH "en"
00188 #define ULOC_FRENCH "fr"
00189 #define ULOC_GERMAN "de"
00190 #define ULOC_ITALIAN "it"
00191 #define ULOC_JAPANESE "ja"
00192 #define ULOC_KOREAN "ko"
00193 #define ULOC_SIMPLIFIED_CHINESE "zh_CN"
00194 #define ULOC_TRADITIONAL_CHINESE "zh_TW"
00195
00196
00197
00198
00199
00200 #define ULOC_CANADA "en_CA"
00201 #define ULOC_CANADA_FRENCH "fr_CA"
00202 #define ULOC_CHINA "zh_CN"
00203 #define ULOC_PRC "zh_CN"
00204 #define ULOC_FRANCE "fr_FR"
00205 #define ULOC_GERMANY "de_DE"
00206 #define ULOC_ITALY "it_IT"
00207 #define ULOC_JAPAN "ja_JP"
00208 #define ULOC_KOREA "ko_KR"
00209 #define ULOC_TAIWAN "zh_TW"
00210 #define ULOC_UK "en_GB"
00211 #define ULOC_US "en_US"
00212
00213
00214
00215
00226 U_CAPI const char* U_EXPORT2
00227 uloc_getDefault(void);
00228
00238 U_CAPI void U_EXPORT2
00239 uloc_setDefault(const char* localeID,
00240 UErrorCode* status);
00241
00255 U_CAPI int32_t U_EXPORT2
00256 uloc_getLanguage(const char* localeID,
00257 char* language,
00258 int32_t languageCapacity,
00259 UErrorCode* err);
00260
00274 U_CAPI int32_t U_EXPORT2
00275 uloc_getCountry(const char* localeID,
00276 char* country,
00277 int32_t countryCapacity,
00278 UErrorCode* err);
00279
00293 U_CAPI int32_t U_EXPORT2
00294 uloc_getVariant(const char* localeID,
00295 char* variant,
00296 int32_t variantCapacity,
00297 UErrorCode* err);
00311 U_CAPI int32_t U_EXPORT2
00312 uloc_getName(const char* localeID,
00313 char* name,
00314 int32_t nameCapacity,
00315 UErrorCode* err);
00316
00324 U_CAPI const char* U_EXPORT2
00325 uloc_getISO3Language(const char* localeID);
00326
00327
00336 U_CAPI const char* U_EXPORT2
00337 uloc_getISO3Country(const char* localeID);
00338
00347 U_CAPI uint32_t U_EXPORT2
00348 uloc_getLCID(const char* localeID);
00349
00362 U_CAPI int32_t U_EXPORT2
00363 uloc_getDisplayLanguage(const char* locale,
00364 const char* inLocale,
00365 UChar* language,
00366 int32_t languageCapacity,
00367 UErrorCode* status);
00368
00382 U_CAPI int32_t U_EXPORT2
00383 uloc_getDisplayCountry(const char* locale,
00384 const char* inLocale,
00385 UChar* country,
00386 int32_t countryCapacity,
00387 UErrorCode* status);
00388
00389
00403 U_CAPI int32_t U_EXPORT2
00404 uloc_getDisplayVariant(const char* locale,
00405 const char* inLocale,
00406 UChar* variant,
00407 int32_t variantCapacity,
00408 UErrorCode* status);
00409
00423 U_CAPI int32_t U_EXPORT2
00424 uloc_getDisplayName(const char* localeID,
00425 const char* inLocaleID,
00426 UChar* result,
00427 int32_t maxResultSize,
00428 UErrorCode* err);
00429
00430
00442 U_CAPI const char* U_EXPORT2
00443 uloc_getAvailable(int32_t n);
00444
00451 U_CAPI int32_t U_EXPORT2 uloc_countAvailable(void);
00452
00462 U_CAPI const char* const* U_EXPORT2
00463 uloc_getISOLanguages(void);
00464
00474 U_CAPI const char* const* U_EXPORT2
00475 uloc_getISOCountries(void);
00476
00483 #define uloc_getDataDirectory u_getDataDirectory
00484
00491 #define uloc_setDataDirectory u_setDataDirectory
00492
00493
00494 int32_t U_EXPORT2
00495 uloc_getParent(const char* localeID,
00496 char* parent,
00497 int32_t parentCapacity,
00498 UErrorCode* err);
00499
00500
00501
00502
00503 #endif
00504
00505
00506