Home | History | Annotate | Download | only in unicode

Lines Matching refs:number

31  * \brief C++ API: Compatibility APIs for number formatting.
60 * Abstract base class for all number formats. Provides interface for
61 * formatting and parsing a number. Also provides methods for
62 * determining which locales have number formats, and what their names
70 * decimal digits used, or whether the number format is even decimal.
72 * To format a number for the current Locale, use one of the static
101 * for (int32_t number: {123, 3333, -1234567}) {
102 * nf->format(number, myString);
107 * To format a number for a different Locale, specify it in the
118 * Use \c createInstance() to get the normal number format for a \c Locale.
120 * to get the currency number format for that country. Use \c createPercentInstance()
124 * The type of number formatting can be specified by passing a 'style' parameter to \c createInstance().
126 * \c createInstance(locale, UNUM_DECIMAL, errorCode) to get the normal number format,\n
128 * \c createInstance(locale, UNUM_SCIENTIFIC, errorCode) to get a format for displaying scientific number,\n
129 * \c createInstance(locale, UNUM_CURRENCY, errorCode) to get the currency number format,
131 * \c createInstance(locale, UNUM_CURRENCY_ISO, errorCode) to get the currency number format,
133 * \c createInstance(locale, UNUM_CURRENCY_PLURAL, errorCode) to get the currency number format,
196 * Return U_FORMAT_INEXACT_ERROR if number does not format exactly.
205 * a formatted number should be returned.
208 * support identification of all number format fields, not just those
342 * Format a double number. These methods call the NumberFormat
345 * @param number The value to be formatted.
351 UnicodeString& format( double number,
355 * Format a long number. These methods call the NumberFormat
358 * @param number The value to be formatted.
364 UnicodeString& format( int32_t number,
368 * Format an int64 number. These methods call the NumberFormat
371 * @param number The value to be formatted.
377 UnicodeString& format( int64_t number,
381 * Format a double number. Concrete subclasses must implement
384 * @param number The value to be formatted.
392 virtual UnicodeString& format(double number,
396 * Format a double number. By default, the parent function simply
400 number The value to be formatted.
409 virtual UnicodeString& format(double number,
414 * Format a double number. Subclasses must implement
417 * @param number The value to be formatted.
427 virtual UnicodeString& format(double number,
432 * Format a long number. Concrete subclasses must implement
435 * @param number The value to be formatted.
443 virtual UnicodeString& format(int32_t number,
448 * Format a long number. Concrete subclasses may override
451 * @param number The value to be formatted.
460 virtual UnicodeString& format(int32_t number,
466 * Format an int32 number. Subclasses must implement
469 * @param number The value to be formatted.
479 virtual UnicodeString& format(int32_t number,
484 * Format an int64 number. (Not abstract to retain compatibility
486 * method as it just delegates to format(int32_t number...);
488 * @param number The value to be formatted.
496 virtual UnicodeString& format(int64_t number,
501 * Format an int64 number. (Not abstract to retain compatibility
503 * method as it just delegates to format(int32_t number...);
505 * @param number The value to be formatted.
514 virtual UnicodeString& format(int64_t number,
519 * Format an int64 number. Subclasses must implement
522 * @param number The value to be formatted.
532 virtual UnicodeString& format(int64_t number,
538 * Format a decimal number. Subclasses must implement
539 * this method. The syntax of the unformatted number is a "numeric string"
543 * @param number The unformatted number, as a string, to be formatted.
553 virtual UnicodeString& format(StringPiece number,
561 * Format a decimal number.
562 * The number is a DecimalQuantity wrapper onto a floating point decimal number.
563 * The default implementation in NumberFormat converts the decimal number
568 * @param number The number, a DecimalQuantity format Decimal Floating Point.
577 virtual UnicodeString& format(const number::impl::DecimalQuantity &number,
583 * Format a decimal number.
584 * The number is a DecimalQuantity wrapper onto a floating point decimal number.
585 * The default implementation in NumberFormat converts the decimal number
590 * @param number The number, a DecimalQuantity format Decimal Floating Point.
599 virtual UnicodeString& format(const number::impl::DecimalQuantity &number,
712 * {@link icu::number::NumberFormatter} instead of NumberFormat.
723 * {@link icu::number::NumberFormatter} instead of NumberFormat.
733 * {@link icu::number::NumberFormatter} instead of NumberFormat.
772 * {@link icu::number::NumberFormatter} instead of NumberFormat.
781 * {@link icu::number::NumberFormatter} instead of NumberFormat.
792 * {@link icu::number::NumberFormatter} instead of NumberFormat.
801 * {@link icu::number::NumberFormatter} instead of NumberFormat.
812 * {@link icu::number::NumberFormatter} instead of NumberFormat.
821 * {@link icu::number::NumberFormatter} instead of NumberFormat.
873 * in the English locale, with grouping on, the number 1234567
891 * Returns the maximum number of digits allowed in the integer portion of a
892 * number.
893 * @return the maximum number of digits allowed in the integer portion of a
894 * number.
901 * Sets the maximum number of digits allowed in the integer portion of a
902 * number. maximumIntegerDigits must be >= minimumIntegerDigits. If the
907 * @param newValue the new value for the maximum number of digits
908 * allowed in the integer portion of a number.
915 * Returns the minimum number of digits allowed in the integer portion of a
916 * number.
917 * @return the minimum number of digits allowed in the integer portion of a
918 * number.
925 * Sets the minimum number of digits allowed in the integer portion of a
926 * number. minimumIntegerDigits must be <= maximumIntegerDigits. If the
937 * Returns the maximum number of digits allowed in the fraction portion of a
938 * number.
939 * @return the maximum number of digits allowed in the fraction portion of a
940 * number.
947 * Sets the maximum number of digits allowed in the fraction portion of a
948 * number. maximumFractionDigits must be >= minimumFractionDigits. If the
959 * Returns the minimum number of digits allowed in the fraction portion of a
960 * number.
961 * @return the minimum number of digits allowed in the fraction portion of a
962 * number.
969 * Sets the minimum number of digits allowed in the fraction portion of a
970 * number. minimumFractionDigits must be <= maximumFractionDigits. If the
1098 * Creates the specified number format style of the desired locale.
1152 * A NumberFormatFactory is used to register new number formats. The factory
1177 * Return the locale names directly supported by this factory. The number of names
1184 * Return a number format of the appropriate type. If the locale