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_DECIMAL
UNUM_DECIMAL
UNUM_CURRENCY
UNUM_PERCENT
UNUM_SCIENTIFIC
UNUM_SPELLOUT
UNUM_ORDINAL
UNUM_DURATION
UNUM_NUMBERING_SYSTEM
UNUM_PATTERN_RULEBASED
UNUM_CURRENCY_ISO
UNUM_CURRENCY_PLURAL
UNUM_CURRENCY_ACCOUNTING
UNUM_CASH_CURRENCY
UNUM_DECIMAL_COMPACT_SHORT
UNUM_DECIMAL_COMPACT_LONG
UNUM_CURRENCY_STANDARD
UNUM_DEFAULT
UNUM_IGNORE
enum UNumberFormatRoundingMode: int;
UNUM_ROUND_CEILING
UNUM_ROUND_FLOOR
UNUM_ROUND_DOWN
UNUM_ROUND_UP
UNUM_ROUND_HALFEVEN
UNUM_ROUND_HALFDOWN
UNUM_ROUND_HALFUP
UNUM_ROUND_UNNECESSARY
UNUM_ROUND_HALF_ODD
UNUM_ROUND_HALF_CEILING
UNUM_ROUND_HALF_FLOOR
enum UNumberFormatPadPosition: int;
UNUM_PAD_BEFORE_PREFIX
UNUM_PAD_AFTER_PREFIX
UNUM_PAD_BEFORE_SUFFIX
UNUM_PAD_AFTER_SUFFIX
enum UNumberCompactStyle: int;
UNUM_SHORT
UNUM_LONG
enum UCurrencySpacing: int;
UNUM_CURRENCY_MATCH
UNUM_CURRENCY_SURROUNDING_MATCH
UNUM_CURRENCY_INSERT
enum UNumberFormatFields: int;
UNUM_INTEGER_FIELD
UNUM_FRACTION_FIELD
UNUM_DECIMAL_SEPARATOR_FIELD
UNUM_EXPONENT_SYMBOL_FIELD
UNUM_EXPONENT_SIGN_FIELD
UNUM_EXPONENT_FIELD
UNUM_GROUPING_SEPARATOR_FIELD
UNUM_CURRENCY_FIELD
UNUM_PERCENT_FIELD
UNUM_PERMILL_FIELD
UNUM_SIGN_FIELD
UNUM_MEASURE_UNIT_FIELD
UNUM_COMPACT_FIELD
enum UNumberFormatMinimumGroupingDigits: int;
UNUM_MINIMUM_GROUPING_DIGITS_AUTO
UNUM_MINIMUM_GROUPING_DIGITS_MIN2
UNumberFormat* unum_open_70(UNumberFormatStyle style, const(UChar)* pattern, int patternLength, const(char)* locale, UParseError* parseErr, UErrorCode* status);
void unum_close_70(UNumberFormat* fmt);
UNumberFormat* unum_clone_70(const(UNumberFormat)* fmt, UErrorCode* status);
int unum_format_70(const(UNumberFormat)* fmt, int number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_formatInt64_70(const(UNumberFormat)* fmt, long number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_formatDouble_70(const(UNumberFormat)* fmt, double number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_formatDoubleForFields_70(const(UNumberFormat)* format, double number, UChar* result, int resultLength, UFieldPositionIterator* fpositer, UErrorCode* status);
int unum_formatDecimal_70(const(UNumberFormat)* fmt, const(char)* number, int length, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_formatDoubleCurrency_70(const(UNumberFormat)* fmt, double number, UChar* currency, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_formatUFormattable_70(const(UNumberFormat)* fmt, const(UFormattable)* number, UChar* result, int resultLength, UFieldPosition* pos, UErrorCode* status);
int unum_parse_70(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status);
long unum_parseInt64_70(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status);
double unum_parseDouble_70(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status);
int unum_parseDecimal_70(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, char* outBuf, int outBufLength, UErrorCode* status);
double unum_parseDoubleCurrency_70(const(UNumberFormat)* fmt, const(UChar)* text, int textLength, int* parsePos, UChar* currency, UErrorCode* status);
UFormattable* unum_parseToUFormattable_70(const(UNumberFormat)* fmt, UFormattable* result, const(UChar)* text, int textLength, int* parsePos, UErrorCode* status);
void unum_applyPattern_70(UNumberFormat* format, UBool localized, const(UChar)* pattern, int patternLength, UParseError* parseError, UErrorCode* status);
const(char)* unum_getAvailable_70(int localeIndex);
int unum_countAvailable_70();
enum UNumberFormatAttribute: int;
UNUM_PARSE_INT_ONLY
UNUM_GROUPING_USED
UNUM_DECIMAL_ALWAYS_SHOWN
UNUM_MAX_INTEGER_DIGITS
UNUM_MIN_INTEGER_DIGITS
UNUM_INTEGER_DIGITS
UNUM_MAX_FRACTION_DIGITS
UNUM_MIN_FRACTION_DIGITS
UNUM_FRACTION_DIGITS
UNUM_MULTIPLIER
UNUM_GROUPING_SIZE
UNUM_ROUNDING_MODE
UNUM_ROUNDING_INCREMENT
UNUM_FORMAT_WIDTH
UNUM_PADDING_POSITION
UNUM_SECONDARY_GROUPING_SIZE
UNUM_SIGNIFICANT_DIGITS_USED
UNUM_MIN_SIGNIFICANT_DIGITS
UNUM_MAX_SIGNIFICANT_DIGITS
UNUM_LENIENT_PARSE
UNUM_SCALE
UNUM_MINIMUM_GROUPING_DIGITS
UNUM_CURRENCY_USAGE
UNUM_FORMAT_FAIL_IF_MORE_THAN_MAX_DIGITS
UNUM_PARSE_NO_EXPONENT
UNUM_PARSE_DECIMAL_MARK_REQUIRED
UNUM_PARSE_CASE_SENSITIVE
UNUM_SIGN_ALWAYS_SHOWN
int unum_getAttribute_70(const(UNumberFormat)* fmt, UNumberFormatAttribute attr);
void unum_setAttribute_70(UNumberFormat* fmt, UNumberFormatAttribute attr, int newValue);
double unum_getDoubleAttribute_70(const(UNumberFormat)* fmt, UNumberFormatAttribute attr);
void unum_setDoubleAttribute_70(UNumberFormat* fmt, UNumberFormatAttribute attr, double newValue);
enum UNumberFormatTextAttribute: int;
UNUM_POSITIVE_PREFIX
UNUM_POSITIVE_SUFFIX
UNUM_NEGATIVE_PREFIX
UNUM_NEGATIVE_SUFFIX
UNUM_PADDING_CHARACTER
UNUM_CURRENCY_CODE
UNUM_DEFAULT_RULESET
UNUM_PUBLIC_RULESETS
int unum_getTextAttribute_70(const(UNumberFormat)* fmt, UNumberFormatTextAttribute tag, UChar* result, int resultLength, UErrorCode* status);
void unum_setTextAttribute_70(UNumberFormat* fmt, UNumberFormatTextAttribute tag, const(UChar)* newValue, int newValueLength, UErrorCode* status);
int unum_toPattern_70(const(UNumberFormat)* fmt, UBool isPatternLocalized, UChar* result, int resultLength, UErrorCode* status);
enum UNumberFormatSymbol: int;
UNUM_DECIMAL_SEPARATOR_SYMBOL
UNUM_GROUPING_SEPARATOR_SYMBOL
UNUM_PATTERN_SEPARATOR_SYMBOL
UNUM_PERCENT_SYMBOL
UNUM_ZERO_DIGIT_SYMBOL
UNUM_DIGIT_SYMBOL
UNUM_MINUS_SIGN_SYMBOL
UNUM_PLUS_SIGN_SYMBOL
UNUM_CURRENCY_SYMBOL
UNUM_INTL_CURRENCY_SYMBOL
UNUM_MONETARY_SEPARATOR_SYMBOL
UNUM_EXPONENTIAL_SYMBOL
UNUM_PERMILL_SYMBOL
UNUM_PAD_ESCAPE_SYMBOL
UNUM_INFINITY_SYMBOL
UNUM_NAN_SYMBOL
UNUM_SIGNIFICANT_DIGIT_SYMBOL
UNUM_MONETARY_GROUPING_SEPARATOR_SYMBOL
UNUM_ONE_DIGIT_SYMBOL
UNUM_TWO_DIGIT_SYMBOL
UNUM_THREE_DIGIT_SYMBOL
UNUM_FOUR_DIGIT_SYMBOL
UNUM_FIVE_DIGIT_SYMBOL
UNUM_SIX_DIGIT_SYMBOL
UNUM_SEVEN_DIGIT_SYMBOL
UNUM_EIGHT_DIGIT_SYMBOL
UNUM_NINE_DIGIT_SYMBOL
UNUM_EXPONENT_MULTIPLICATION_SYMBOL
int unum_getSymbol_70(const(UNumberFormat)* fmt, UNumberFormatSymbol symbol, UChar* buffer, int size, UErrorCode* status);
void unum_setSymbol_70(UNumberFormat* fmt, UNumberFormatSymbol symbol, const(UChar)* value, int length, UErrorCode* status);
const(char)* unum_getLocaleByType_70(const(UNumberFormat)* fmt, ULocDataLocaleType type, UErrorCode* status);
void unum_setContext_70(UNumberFormat* fmt, UDisplayContext value, UErrorCode* status);
UDisplayContext unum_getContext_70(const(UNumberFormat)* fmt, UDisplayContextType type, UErrorCode* status);