Lines Matching refs:UNumberFormat
33 * UNumberFormat helps you to format and parse numbers for any locale.
47 * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, NULL, NULL, &status);
63 * UNumberFormat* nf;
86 * UNumberFormat* nf = unum_open(UNUM_DEFAULT, NULL, -1, "fr_FR", NULL, &success)
129 typedef void* UNumberFormat;
209 * Create and return a new UNumberFormat for formatting and parsing
210 * numbers. A UNumberFormat may be used to format numbers by calling
233 * @return A pointer to a newly created UNumberFormat, or NULL if an
239 U_STABLE UNumberFormat* U_EXPORT2
249 * Close a UNumberFormat.
250 * Once closed, a UNumberFormat may no longer be used.
255 unum_close(UNumberFormat* fmt);
258 * Open a copy of a UNumberFormat.
262 * @return A pointer to a UNumberFormat identical to fmt.
265 U_STABLE UNumberFormat* U_EXPORT2
266 unum_clone(const UNumberFormat *fmt,
270 * Format an integer using a UNumberFormat.
271 * The integer will be formatted according to the UNumberFormat's locale.
291 unum_format( const UNumberFormat* fmt,
299 * Format an int64 using a UNumberFormat.
300 * The int64 will be formatted according to the UNumberFormat's locale.
320 unum_formatInt64(const UNumberFormat *fmt,
328 * Format a double using a UNumberFormat.
329 * The double will be formatted according to the UNumberFormat's locale.
349 unum_formatDouble( const UNumberFormat* fmt,
357 * Format a double currency amount using a UNumberFormat.
358 * The double will be formatted according to the UNumberFormat's locale.
378 unum_formatDoubleCurrency(const UNumberFormat* fmt,
387 * Parse a string into an integer using a UNumberFormat.
388 * The string will be parsed according to the UNumberFormat's locale.
404 unum_parse( const UNumberFormat* fmt,
411 * Parse a string into an int64 using a UNumberFormat.
412 * The string will be parsed according to the UNumberFormat's locale.
428 unum_parseInt64(const UNumberFormat* fmt,
435 * Parse a string into a double using a UNumberFormat.
436 * The string will be parsed according to the UNumberFormat's locale.
452 unum_parseDouble( const UNumberFormat* fmt,
459 * Parse a string into a double and a currency using a UNumberFormat.
460 * The string will be parsed according to the UNumberFormat's locale.
478 unum_parseDoubleCurrency(const UNumberFormat* fmt,
486 * Set the pattern used by a UNumberFormat. This can only be used
502 unum_applyPattern( UNumberFormat *format,
512 * A UNumberFormat in a locale returned by this function will perform the correct
535 /** The possible UNumberFormat numeric attributes @stable ICU 2.0 */
585 * Get a numeric attribute associated with a UNumberFormat.
601 unum_getAttribute(const UNumberFormat* fmt,
605 * Set a numeric attribute associated with a UNumberFormat.
624 unum_setAttribute( UNumberFormat* fmt,
630 * Get a numeric attribute associated with a UNumberFormat.
644 unum_getDoubleAttribute(const UNumberFormat* fmt,
648 * Set a numeric attribute associated with a UNumberFormat.
662 unum_setDoubleAttribute( UNumberFormat* fmt,
666 /** The possible UNumberFormat text attributes @stable ICU 2.0*/
695 * Get a text attribute associated with a UNumberFormat.
713 unum_getTextAttribute( const UNumberFormat* fmt,
720 * Set a text attribute associated with a UNumberFormat.
736 unum_setTextAttribute( UNumberFormat* fmt,
743 * Extract the pattern from a UNumberFormat. The pattern will follow
759 unum_toPattern( const UNumberFormat* fmt,
815 * Get a symbol associated with a UNumberFormat.
816 * A UNumberFormat uses symbols to represent the special locale-dependent
831 unum_getSymbol(const UNumberFormat *fmt,
838 * Set a symbol associated with a UNumberFormat.
839 * A UNumberFormat uses symbols to represent the special locale-dependent
851 unum_setSymbol(UNumberFormat *fmt,
868 unum_getLocaleByType(const UNumberFormat *fmt,