bindbc.icu.bindings.uloc

uloc.h
C API: Locale
License: BSL-1.0.
enum string ULOC_CHINESE;
enum string ULOC_ENGLISH;
enum string ULOC_FRENCH;
enum string ULOC_GERMAN;
enum string ULOC_ITALIAN;
enum string ULOC_JAPANESE;
enum string ULOC_KOREAN;
enum string ULOC_SIMPLIFIED_CHINESE;
enum string ULOC_TRADITIONAL_CHINESE;
Common language constants
enum string ULOC_CANADA;
enum string ULOC_CANADA_FRENCH;
enum string ULOC_CHINA;
enum string ULOC_PRC;
enum string ULOC_FRANCE;
enum string ULOC_GERMANY;
enum string ULOC_ITALY;
enum string ULOC_JAPAN;
enum string ULOC_KOREA;
enum string ULOC_TAIWAN;
enum string ULOC_UK;
enum string ULOC_US;
Common country/region constants
enum int ULOC_LANG_CAPACITY;
Maximum size of the language part of a locale ID including the terminating NULL.
enum int ULOC_COUNTRY_CAPACITY;
Maximum size of the country part of a locale ID including the terminating NULL.
enum int ULOC_FULLNAME_CAPACITY;
Maximum size of the whole locale ID including the terminating NULL and keywords.
enum int ULOC_SCRIPT_CAPACITY;
Maximum size of the script part of a locale ID including the terminating NULL.
enum int ULOC_KEYWORDS_CAPACITY;
Maximum size of keywords in a locale ID including the terminating NULL.
enum int ULOC_KEYWORD_AND_VALUES_CAPACITY;
Maximum size of keywords and their values in a locale.
enum char ULOC_KEYWORD_SEPARATOR;
enum int ULOC_KEYWORD_SEPARATOR_UNICODE;
enum char ULOC_KEYWORD_ASSIGN;
enum int ULOC_KEYWORD_ASSIGN_UNICODE;
enum char ULOC_KEYWORD_ITEM_SEPARATOR;
enum int ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE;
enum ULocDataLocaleType: int;
ULOC_ACTUAL_LOCALE
ULOC_VALID_LOCALE
const(char)* uloc_getDefault_70();
void uloc_setDefault_70(const(char)* localeID, UErrorCode* status);
int uloc_getLanguage_70(const(char)* localeID, char* language, int languageCapacity, UErrorCode* err);
int uloc_getScript_70(const(char)* localeID, char* script, int scriptCapacity, UErrorCode* err);
int uloc_getCountry_70(const(char)* localeID, char* country, int countryCapacity, UErrorCode* err);
int uloc_getVariant_70(const(char)* localeID, char* variant, int variantCapacity, UErrorCode* err);
int uloc_getName_70(const(char)* localeID, char* name, int nameCapacity, UErrorCode* err);
int uloc_canonicalize_70(const(char)* localeID, char* name, int nameCapacity, UErrorCode* err);
const(char)* uloc_getISO3Language_70(const(char)* localeID);
const(char)* uloc_getISO3Country_70(const(char)* localeID);
uint uloc_getLCID_70(const(char)* localeID);
int uloc_getDisplayLanguage_70(const(char)* locale, const(char)* displayLocale, UChar* language, int languageCapacity, UErrorCode* status);
int uloc_getDisplayScript_70(const(char)* locale, const(char)* displayLocale, UChar* script, int scriptCapacity, UErrorCode* status);
int uloc_getDisplayCountry_70(const(char)* locale, const(char)* displayLocale, UChar* country, int countryCapacity, UErrorCode* status);
int uloc_getDisplayVariant_70(const(char)* locale, const(char)* displayLocale, UChar* variant, int variantCapacity, UErrorCode* status);
int uloc_getDisplayKeyword_70(const(char)* keyword, const(char)* displayLocale, UChar* dest, int destCapacity, UErrorCode* status);
int uloc_getDisplayKeywordValue_70(const(char)* locale, const(char)* keyword, const(char)* displayLocale, UChar* dest, int destCapacity, UErrorCode* status);
int uloc_getDisplayName_70(const(char)* localeID, const(char)* inLocaleID, UChar* result, int maxResultSize, UErrorCode* err);
const(char)* uloc_getAvailable_70(int n);
int uloc_countAvailable_70();
enum ULocAvailableType: int;
DEFAULT
ONLY_LEGACY_ALIASES
WITH_LEGACY_ALIASES
UEnumeration* uloc_openAvailableByType_70(ULocAvailableType type, UErrorCode* status);
const(char*)* uloc_getISOLanguages_70();
const(char*)* uloc_getISOCountries_70();
int uloc_getParent_70(const(char)* localeID, char* parent, int parentCapacity, UErrorCode* err);
int uloc_getBaseName_70(const(char)* localeID, char* name, int nameCapacity, UErrorCode* err);
UEnumeration* uloc_openKeywords_70(const(char)* localeID, UErrorCode* status);
int uloc_getKeywordValue_70(const(char)* localeID, const(char)* keywordName, char* buffer, int bufferCapacity, UErrorCode* status);
int uloc_setKeywordValue_70(const(char)* keywordName, const(char)* keywordValue, char* buffer, int bufferCapacity, UErrorCode* status);
UBool uloc_isRightToLeft_70(const(char)* locale);
enum ULayoutType: int;
LTR
left-to-right
RTL
right-to-left
TTB
top-to-bottom
BTT
bottom-to-top
ULayoutType uloc_getCharacterOrientation_70(const(char)* localeId, UErrorCode* status);
ULayoutType uloc_getLineOrientation_70(const(char)* localeId, UErrorCode* status);
enum UAcceptResult: int;
FAILED
VALID
FALLBACK
int uloc_acceptLanguageFromHTTP_70(char* result, int resultAvailable, UAcceptResult* outResult, const(char)* httpAcceptLanguage, UEnumeration* availableLocales, UErrorCode* status);
int uloc_acceptLanguage_70(char* result, int resultAvailable, UAcceptResult* outResult, const(char)** acceptList, int acceptListCount, UEnumeration* availableLocales, UErrorCode* status);
int uloc_getLocaleForLCID_70(uint hostID, char* locale, int localeCapacity, UErrorCode* status);
int uloc_addLikelySubtags_70(const(char)* localeID, char* maximizedLocaleID, int maximizedLocaleIDCapacity, UErrorCode* err);
int uloc_minimizeSubtags_70(const(char)* localeID, char* minimizedLocaleID, int minimizedLocaleIDCapacity, UErrorCode* err);
int uloc_forLanguageTag_70(const(char)* langtag, char* localeID, int localeIDCapacity, int* parsedLength, UErrorCode* err);
int uloc_toLanguageTag_70(const(char)* localeID, char* langtag, int langtagCapacity, UBool strict, UErrorCode* err);
const(char)* uloc_toUnicodeLocaleKey_70(const(char)* keyword);
const(char)* uloc_toUnicodeLocaleType_70(const char* keyword, const char* value);
const(char)* uloc_toLegacyKey_70(const(char)* keyword);
const(char)* uloc_toLegacyType_70(const(char)* keyword, const(char)* value);