bindbc.icu.bindings.unum
unum.h
C API: Compatibility APIs for number formatting.
License:
BSL-1.0.
- alias
UNumberFormat= void*; - enum
UNumberFormatStyle: int; -
UNUM_PATTERN_DECIMALUNUM_DECIMALUNUM_CURRENCYUNUM_PERCENTUNUM_SCIENTIFICUNUM_SPELLOUTUNUM_ORDINALUNUM_DURATIONUNUM_NUMBERING_SYSTEMUNUM_PATTERN_RULEBASEDUNUM_CURRENCY_ISOUNUM_CURRENCY_PLURALUNUM_CURRENCY_ACCOUNTINGUNUM_CASH_CURRENCYUNUM_DECIMAL_COMPACT_SHORTUNUM_DECIMAL_COMPACT_LONGUNUM_CURRENCY_STANDARDUNUM_DEFAULTUNUM_IGNORE
- enum
UNumberFormatPadPosition: int; -
UNUM_PAD_BEFORE_PREFIXUNUM_PAD_AFTER_PREFIXUNUM_PAD_BEFORE_SUFFIXUNUM_PAD_AFTER_SUFFIX
- enum
UNumberCompactStyle: int; -
UNUM_SHORTUNUM_LONG
- enum
UCurrencySpacing: int; -
UNUM_CURRENCY_MATCHUNUM_CURRENCY_SURROUNDING_MATCHUNUM_CURRENCY_INSERT
- enum
UNumberFormatFields: int; -
UNUM_INTEGER_FIELDUNUM_FRACTION_FIELDUNUM_DECIMAL_SEPARATOR_FIELDUNUM_EXPONENT_SYMBOL_FIELDUNUM_EXPONENT_SIGN_FIELDUNUM_EXPONENT_FIELDUNUM_GROUPING_SEPARATOR_FIELDUNUM_CURRENCY_FIELDUNUM_PERCENT_FIELDUNUM_PERMILL_FIELDUNUM_SIGN_FIELDUNUM_MEASURE_UNIT_FIELDUNUM_COMPACT_FIELDUNUM_APPROXIMATELY_SIGN_FIELD
- enum
UNumberFormatMinimumGroupingDigits: int; -
UNUM_MINIMUM_GROUPING_DIGITS_AUTOUNUM_MINIMUM_GROUPING_DIGITS_MIN2
- UNumberFormat*
unum_open_74(UNumberFormatStyle style, const(UChar)* pattern, int patternLength, const(char)* locale, UParseError* parseErr, UErrorCode* status); - void
unum_close_74(UNumberFormat* fmt); - UNumberFormat*
unum_clone_74(const(UNumberFormat)* fmt, UErrorCode* status); - int
unum_format_74(const(UNumberFormat)* fmt, int number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_formatInt64_74(const(UNumberFormat)* fmt, long number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_formatDouble_74(const(UNumberFormat)* fmt, double number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_formatDoubleForFields_74(const(UNumberFormat)* format, double number, UChar* result, int resultLength, UFieldPositionIterator* fpositer, UErrorCode* status); - int
unum_formatDecimal_74(const(UNumberFormat)* fmt, const(char)* number, int length, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_formatDoubleCurrency_74(const(UNumberFormat)* fmt, double number, UChar* currency, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_formatUFormattable_74(const(UNumberFormat)* fmt, const(UFormattable)* number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status); - int
unum_parse_74(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status); - long
unum_parseInt64_74(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status); - double
unum_parseDouble_74(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status); - int
unum_parseDecimal_74(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, char* outBuf, int outBufLength, UErrorCode* status); - double
unum_parseDoubleCurrency_74(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UChar* currency, UErrorCode* status); - UFormattable*
unum_parseToUFormattable_74(const(UNumberFormat)* fmt, UFormattable* result, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status); - void
unum_applyPattern_74(UNumberFormat* format, UBool localized, const(UChar)* pattern, int patternLength, UParseError* parseError, UErrorCode* status); - const(char)*
unum_getAvailable_74(int localeIndex); - int
unum_countAvailable_74(); - enum
UNumberFormatAttribute: int; -
UNUM_PARSE_INT_ONLYUNUM_GROUPING_USEDUNUM_DECIMAL_ALWAYS_SHOWNUNUM_MAX_INTEGER_DIGITSUNUM_MIN_INTEGER_DIGITSUNUM_INTEGER_DIGITSUNUM_MAX_FRACTION_DIGITSUNUM_MIN_FRACTION_DIGITSUNUM_FRACTION_DIGITSUNUM_MULTIPLIERUNUM_GROUPING_SIZEUNUM_ROUNDING_MODEUNUM_ROUNDING_INCREMENTUNUM_FORMAT_WIDTHUNUM_PADDING_POSITIONUNUM_SECONDARY_GROUPING_SIZEUNUM_SIGNIFICANT_DIGITS_USEDUNUM_MIN_SIGNIFICANT_DIGITSUNUM_MAX_SIGNIFICANT_DIGITSUNUM_LENIENT_PARSEUNUM_SCALEUNUM_MINIMUM_GROUPING_DIGITSUNUM_CURRENCY_USAGEUNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITSUNUM_PARSE_NO_EXPONENTUNUM_PARSE_DECIMAL_MARK_REQUIREDUNUM_PARSE_CASE_SENSITIVEUNUM_SIGN_ALWAYS_SHOWN
- bool
unum_hasAttribute_74(const(UNumberFormat)* fmt, UNumberFormatAttribute attr); - int
unum_getAttribute_74(const(UNumberFormat)* fmt, UNumberFormatAttribute attr); - void
unum_setAttribute_74(UNumberFormat* fmt, UNumberFormatAttribute attr, int newValue); - double
unum_getDoubleAttribute_74(const(UNumberFormat)* fmt, UNumberFormatAttribute attr); - void
unum_setDoubleAttribute_74(UNumberFormat* fmt, UNumberFormatAttribute attr, double newValue); - enum
UNumberFormatTextAttribute: int; -
UNUM_POSITIVE_PREFIXUNUM_POSITIVE_SUFFIXUNUM_NEGATIVE_PREFIXUNUM_NEGATIVE_SUFFIXUNUM_PADDING_CHARACTERUNUM_CURRENCY_CODEUNUM_DEFAULT_RULESETUNUM_PUBLIC_RULESETS
- int
unum_getTextAttribute_74(const(UNumberFormat)* fmt, UNumberFormatTextAttribute tag, UChar* result, int resultLength, UErrorCode* status); - void
unum_setTextAttribute_74(UNumberFormat* fmt, UNumberFormatTextAttribute tag, const(UChar)* newValue, int newValueLength, UErrorCode* status); - int
unum_toPattern_74(const(UNumberFormat)* fmt, UBool isPatternLocalized, UChar* result, int resultLength, UErrorCode* status); - enum
UNumberFormatSymbol: int; -
UNUM_DECIMAL_SEPARATOR_SYMBOLUNUM_GROUPING_SEPARATOR_SYMBOLUNUM_PATTERN_SEPARATOR_SYMBOLUNUM_PERCENT_SYMBOLUNUM_ZERO_DIGIT_SYMBOLUNUM_DIGIT_SYMBOLUNUM_MINUS_SIGN_SYMBOLUNUM_PLUS_SIGN_SYMBOLUNUM_CURRENCY_SYMBOLUNUM_INTL_CURRENCY_SYMBOLUNUM_MONETARY_SEPARATOR_SYMBOLUNUM_EXPONENTIAL_SYMBOLUNUM_PERMILL_SYMBOLUNUM_PAD_ESCAPE_SYMBOLUNUM_INFINITY_SYMBOLUNUM_NAN_SYMBOLUNUM_SIGNIFICANT_DIGIT_SYMBOLUNUM_MONETARY_GROUPING_SEPARATOR_SYMBOLUNUM_ONE_DIGIT_SYMBOLUNUM_TWO_DIGIT_SYMBOLUNUM_THREE_DIGIT_SYMBOLUNUM_FOUR_DIGIT_SYMBOLUNUM_FIVE_DIGIT_SYMBOLUNUM_SIX_DIGIT_SYMBOLUNUM_SEVEN_DIGIT_SYMBOLUNUM_EIGHT_DIGIT_SYMBOLUNUM_NINE_DIGIT_SYMBOLUNUM_EXPONENT_MULTIPLICATION_SYMBOL
- int
unum_getSymbol_74(const(UNumberFormat)* fmt, UNumberFormatSymbol symbol, UChar* buffer, int size, UErrorCode* status); - void
unum_setSymbol_74(UNumberFormat* fmt, UNumberFormatSymbol symbol, const(UChar)* value, int length, UErrorCode* status); - const(char)*
unum_getLocaleByType_74(const(UNumberFormat)* fmt, ULocDataLocaleType type, UErrorCode* status); - void
unum_setContext_74(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status); - UDisplayContext
unum_getContext_74(const(UNumberFormat)* fmt, UDisplayContextType type, UErrorCode* status);