Lines Matching defs:UNumberFormat
34 * UNumberFormat helps you to format and parse numbers for any locale.
48 * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
64 * UNumberFormat* nf;
87 * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
130 typedef void* UNumberFormat;
286 * defined by NumberFormat and UNumberFormat.
318 * Create and return a new UNumberFormat for formatting and parsing
319 * numbers. A UNumberFormat may be used to format numbers by calling
342 * @return A pointer to a newly created UNumberFormat, or NULL if an
348 U_STABLE UNumberFormat* U_EXPORT2
358 * Close a UNumberFormat.
359 * Once closed, a UNumberFormat may no longer be used.
364 unum_close(UNumberFormat* fmt);
372 * "Smart pointer" class, closes a UNumberFormat via unum_close().
379 U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberFormatPointer, UNumberFormat, unum_close);
386 * Open a copy of a UNumberFormat.
390 * @return A pointer to a UNumberFormat identical to fmt.
393 U_STABLE UNumberFormat* U_EXPORT2
394 unum_clone(const UNumberFormat *fmt,
398 * Format an integer using a UNumberFormat.
399 * The integer will be formatted according to the UNumberFormat's locale.
419 unum_format( const UNumberFormat* fmt,
427 * Format an int64 using a UNumberFormat.
428 * The int64 will be formatted according to the UNumberFormat's locale.
448 unum_formatInt64(const UNumberFormat *fmt,
456 * Format a double using a UNumberFormat.
457 * The double will be formatted according to the UNumberFormat's locale.
477 unum_formatDouble( const UNumberFormat* fmt,
485 * Format a decimal number using a UNumberFormat.
486 * The number will be formatted according to the UNumberFormat's locale.
510 unum_formatDecimal( const UNumberFormat* fmt,
519 * Format a double currency amount using a UNumberFormat.
520 * The double will be formatted according to the UNumberFormat's locale.
540 unum_formatDoubleCurrency(const UNumberFormat* fmt,
549 * Parse a string into an integer using a UNumberFormat.
550 * The string will be parsed according to the UNumberFormat's locale.
566 unum_parse( const UNumberFormat* fmt,
573 * Parse a string into an int64 using a UNumberFormat.
574 * The string will be parsed according to the UNumberFormat's locale.
590 unum_parseInt64(const UNumberFormat* fmt,
597 * Parse a string into a double using a UNumberFormat.
598 * The string will be parsed according to the UNumberFormat's locale.
614 unum_parseDouble( const UNumberFormat* fmt,
622 * Parse a number from a string into an unformatted numeric string using a UNumberFormat.
623 * The input string will be parsed according to the UNumberFormat's locale.
647 unum_parseDecimal(const UNumberFormat* fmt,
656 * Parse a string into a double and a currency using a UNumberFormat.
657 * The string will be parsed according to the UNumberFormat's locale.
675 unum_parseDoubleCurrency(const UNumberFormat* fmt,
683 * Set the pattern used by a UNumberFormat. This can only be used
699 unum_applyPattern( UNumberFormat *format,
709 * A UNumberFormat in a locale returned by this function will perform the correct
746 /** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
847 * Get a numeric attribute associated with a UNumberFormat.
864 unum_getAttribute(const UNumberFormat* fmt,
868 * Set a numeric attribute associated with a UNumberFormat.
887 unum_setAttribute( UNumberFormat* fmt,
893 * Get a numeric attribute associated with a UNumberFormat.
907 unum_getDoubleAttribute(const UNumberFormat* fmt,
911 * Set a numeric attribute associated with a UNumberFormat.
925 unum_setDoubleAttribute( UNumberFormat* fmt,
929 UNumberFormat text attributes @stable ICU 2.0*/
958 * Get a text attribute associated with a UNumberFormat.
976 unum_getTextAttribute( const UNumberFormat* fmt,
983 * Set a text attribute associated with a UNumberFormat.
999 unum_setTextAttribute( UNumberFormat* fmt,
1006 * Extract the pattern from a UNumberFormat. The pattern will follow
1022 unum_toPattern( const UNumberFormat* fmt,
1114 * Get a symbol associated with a UNumberFormat.
1115 * A UNumberFormat uses symbols to represent the special locale-dependent
1130 unum_getSymbol(const UNumberFormat *fmt,
1137 * Set a symbol associated with a UNumberFormat.
1138 * A UNumberFormat uses symbols to represent the special locale-dependent
1150 unum_setSymbol(UNumberFormat *fmt,
1167 unum_getLocaleByType(const UNumberFormat *fmt,