Lines Matching refs: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;
210 * Create and return a new UNumberFormat for formatting and parsing
211 * numbers. A UNumberFormat may be used to format numbers by calling
234 * @return A pointer to a newly created UNumberFormat, or NULL if an
240 U_STABLE UNumberFormat* U_EXPORT2
250 * Close a UNumberFormat.
251 * Once closed, a UNumberFormat may no longer be used.
256 unum_close(UNumberFormat* fmt);
264 * "Smart pointer" class, closes a UNumberFormat via unum_close().
271 U_DEFINE_LOCAL_OPEN_POINTER(LocalUNumberFormatPointer, UNumberFormat, unum_close);
278 * Open a copy of a UNumberFormat.
282 * @return A pointer to a UNumberFormat identical to fmt.
285 U_STABLE UNumberFormat* U_EXPORT2
286 unum_clone(const UNumberFormat *fmt,
290 * Format an integer using a UNumberFormat.
291 * The integer will be formatted according to the UNumberFormat's locale.
311 unum_format( const UNumberFormat* fmt,
319 * Format an int64 using a UNumberFormat.
320 * The int64 will be formatted according to the UNumberFormat's locale.
340 unum_formatInt64(const UNumberFormat *fmt,
348 * Format a double using a UNumberFormat.
349 * The double will be formatted according to the UNumberFormat's locale.
369 unum_formatDouble( const UNumberFormat* fmt,
377 * Format a decimal number using a UNumberFormat.
378 * The number will be formatted according to the UNumberFormat's locale.
402 unum_formatDecimal( const UNumberFormat* fmt,
411 * Format a double currency amount using a UNumberFormat.
412 * The double will be formatted according to the UNumberFormat's locale.
432 unum_formatDoubleCurrency(const UNumberFormat* fmt,
441 * Parse a string into an integer using a UNumberFormat.
442 * The string will be parsed according to the UNumberFormat's locale.
458 unum_parse( const UNumberFormat
465 * Parse a string into an int64 using a UNumberFormat.
466 * The string will be parsed according to the UNumberFormat's locale.
482 unum_parseInt64(const UNumberFormat* fmt,
489 * Parse a string into a double using a UNumberFormat.
490 * The string will be parsed according to the UNumberFormat's locale.
506 unum_parseDouble( const UNumberFormat* fmt,
514 * Parse a number from a string into an unformatted numeric string using a UNumberFormat.
515 * The input string will be parsed according to the UNumberFormat's locale.
539 unum_parseDecimal(const UNumberFormat* fmt,
548 * Parse a string into a double and a currency using a UNumberFormat.
549 * The string will be parsed according to the UNumberFormat's locale.
567 unum_parseDoubleCurrency(const UNumberFormat* fmt,
575 * Set the pattern used by a UNumberFormat. This can only be used
591 unum_applyPattern( UNumberFormat *format,
601 * A UNumberFormat in a locale returned by this function will perform the correct
624 /** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
674 * Get a numeric attribute associated with a UNumberFormat.
690 unum_getAttribute(const UNumberFormat* fmt,
694 * Set a numeric attribute associated with a UNumberFormat.
713 unum_setAttribute( UNumberFormat* fmt,
719 * Get a numeric attribute associated with a UNumberFormat.
733 unum_getDoubleAttribute(const UNumberFormat* fmt,
737 * Set a numeric attribute associated with a UNumberFormat.
751 unum_setDoubleAttribute( UNumberFormat* fmt,
755 /** The possible UNumberFormat text attributes @stable ICU 2.0*/
784 * Get a text attribute associated with a UNumberFormat.
802 unum_getTextAttribute( const UNumberFormat* fmt,
809 * Set a text attribute associated with a UNumberFormat.
825 unum_setTextAttribute( UNumberFormat* fmt,
832 * Extract the pattern from a UNumberFormat. The pattern will follow
848 unum_toPattern( const UNumberFormat* fmt,
940 * Get a symbol associated with a UNumberFormat.
941 * A UNumberFormat uses symbols to represent the special locale-dependent
956 unum_getSymbol(const UNumberFormat *fmt,
963 * Set a symbol associated with a UNumberFormat.
964 * A UNumberFormat uses symbols to represent the special locale-dependent
976 unum_setSymbol(UNumberFormat *fmt,
993 unum_getLocaleByType(const UNumberFormat *fmt,