U_CAPI UNumberFormat* unum_open (UNumberFormatStyle style, const char* locale, UErrorCode* status)

Open a new UNumberFormat for formatting and parsing numbers

Documentation

Open a new UNumberFormat for formatting and parsing numbers. A UNumberFormat may be used to format numbers in calls to unum_format, and to parse numbers in calls to unum_parse.
Returns:
A pointer to a UNumberFormat to use for formatting numbers, or 0 if an error occurred.
Parameters:
style - The type of number format to open: one of UNUM_DECIMAL, UNUM_CURRENCY, UNUM_PERCENT, UNUM_SPELLOUT, or UNUM_DEFAULT
locale - The locale specifying the formatting conventions
status - A pointer to an UErrorCode to receive any errors
See Also:
unum_openPattern

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de