26#if U_SHOW_CPLUSPLUS_API
55#ifndef U_HIDE_DEPRECATED_API
76#ifndef U_HIDE_DEPRECATED_API
105#if U_SHOW_CPLUSPLUS_API
207#ifndef U_HIDE_DEPRECATED_API
275 int32_t patternCapacity,
297 int32_t separatorCapacity,
"Smart pointer" class, closes a ULocaleData via ulocdata_close().
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
#define U_DEFINE_LOCAL_OPEN_POINTER(LocalPointerClassName, Type, closeFunction)
"Smart pointer" definition macro, deletes objects via the closeFunction.
C API: Locale ID functionality similar to C++ class Locale.
U_CAPI int32_t ulocdata_getDelimiter(ULocaleData *uld, ULocaleDataDelimiterType type, UChar *result, int32_t resultLength, UErrorCode *status)
Returns one of the delimiter strings associated with a locale.
struct ULocaleData ULocaleData
A locale data object.
ULocaleDataDelimiterType
The possible types of delimiters.
@ ULOCDATA_QUOTATION_END
Quotation end.
@ ULOCDATA_DELIMITER_COUNT
One more than the highest normal ULocaleDataDelimiterType value.
@ ULOCDATA_QUOTATION_START
Quotation start.
@ ULOCDATA_ALT_QUOTATION_END
Alternate quotation end.
@ ULOCDATA_ALT_QUOTATION_START
Alternate quotation start.
U_CAPI int32_t ulocdata_getLocaleSeparator(ULocaleData *uld, UChar *separator, int32_t separatorCapacity, UErrorCode *status)
Returns locale separator associated with a locale.
U_CAPI int32_t ulocdata_getLocaleDisplayPattern(ULocaleData *uld, UChar *pattern, int32_t patternCapacity, UErrorCode *status)
Returns locale display pattern associated with a locale.
U_CAPI void ulocdata_setNoSubstitute(ULocaleData *uld, UBool setting)
Sets the "no Substitute" attribute of the locale data object.
UMeasurementSystem
Enumeration for representing the measurement systems.
@ UMS_UK
Mix of metric and imperial units used in Great Britain.
@ UMS_US
Measurement system followed in the United States of America.
@ UMS_SI
Measurement system specified by SI otherwise known as Metric system.
@ UMS_LIMIT
One more than the highest normal UMeasurementSystem value.
U_CAPI void ulocdata_getCLDRVersion(UVersionInfo versionArray, UErrorCode *status)
Return the current CLDR version used by the library.
U_CAPI void ulocdata_close(ULocaleData *uld)
Closes a locale data object.
U_CAPI UMeasurementSystem ulocdata_getMeasurementSystem(const char *localeID, UErrorCode *status)
Returns the measurement system used in the locale specified by the localeID.
U_CAPI void ulocdata_getPaperSize(const char *localeID, int32_t *height, int32_t *width, UErrorCode *status)
Returns the element gives the normal business letter size, and customary units.
ULocaleDataExemplarSetType
The possible types of exemplar character sets.
@ ULOCDATA_ES_COUNT
One more than the highest normal ULocaleDataExemplarSetType value.
@ ULOCDATA_ES_STANDARD
Basic set.
@ ULOCDATA_ES_INDEX
Index Character set.
@ ULOCDATA_ES_AUXILIARY
Auxiliary set.
@ ULOCDATA_ES_PUNCTUATION
Punctuation set.
U_CAPI ULocaleData * ulocdata_open(const char *localeID, UErrorCode *status)
Opens a locale data object for the given locale.
U_CAPI UBool ulocdata_getNoSubstitute(ULocaleData *uld)
Retrieves the current "no Substitute" value of the locale data object.
U_CAPI USet * ulocdata_getExemplarSet(ULocaleData *uld, USet *fillIn, uint32_t options, ULocaleDataExemplarSetType extype, UErrorCode *status)
Returns the set of exemplar characters for a locale.
int8_t UBool
The ICU boolean type, a signed-byte integer.
#define U_CAPI
This is used to declare a function as a public ICU C API.
char16_t UChar
The base type for UTF-16 code units and pointers.
struct USet USet
USet is the C API type corresponding to C++ class UnicodeSet.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
uint8_t UVersionInfo[U_MAX_VERSION_LENGTH]
The binary form of a version on ICU APIs is an array of 4 uint8_t.