Lines Matching refs:format
35 #include "unicode/format.h"
60 * NumberFormat helps you to format and parse numbers for any locale.
63 * decimal digits used, or whether the number format is even decimal.
65 * To format a number for the current Locale, use one of the static
73 * nf->format(myNumber, myString);
81 * the format and use it multiple times so that the system doesn't
93 * nf->format(a[i], myString);
99 * To format a number for a different Locale, specify it in the
114 * Use createInstance to get the normal number format for that country.
116 * to get the currency number format for that country. Use getPercent
117 * to get a format for displaying percentages. With this format, a
123 * use createInstance(...kNumberStyle...) to get the normal number format,
124 * createInstance(...kPercentStyle...) to get a format for displaying
126 * createInstance(...kScientificStyle...) to get a format for displaying
128 * createInstance(...kCurrencyStyle...) to get the currency number format,
130 * createInstance(...kIsoCurrencyStyle...) to get the currency number format,
132 * createInstance(...kPluralCurrencyStyle...) to get the currency number format,
133 * in which the currency is represented by its full name in plural format,
138 * format or parsing, or want to give your users more control, you can
144 * You can also use forms of the parse and format methods with
153 * can pass the FieldPosition in your format call, with field =
172 class U_I18N_API NumberFormat : public Format {
180 * support identification of all number format fields, not just those
230 * Return true if the given Format objects are semantically equal.
232 * @return true if the given Format objects are semantically equal.
235 virtual UBool operator==(const Format& other) const;
238 using Format::format;
241 * Format an object to produce a string. This method handles
246 * @param obj The object to format.
255 virtual UnicodeString& format(const Formattable& obj,
261 * Format an object to produce a string. This method handles
266 * @param obj The object to format.
270 * of fields generated by this format call. Can be
276 virtual UnicodeString& format(const Formattable& obj,
294 * See Format::parseObject() for more.
314 * Format a double number. These methods call the NumberFormat
315 * pure virtual format() methods with the default FieldPosition.
323 UnicodeString& format( double number,
327 * Format a long number. These methods call the NumberFormat
328 * pure virtual format() methods with the default FieldPosition.
336 UnicodeString& format( int32_t number,
340 * Format an int64 number. These methods call the NumberFormat
341 * pure virtual format() methods with the default FieldPosition.
349 UnicodeString& format( int64_t number,
353 * Format a double number. Concrete subclasses must implement
364 virtual UnicodeString& format(double number,
368 * Format a double number. By default, the parent function simply
381 virtual UnicodeString& format(double number,
386 * Format a double number. Subclasses must implement
393 * of fields generated by this format call.
399 virtual UnicodeString& format(double number,
404 * Format a long number. Concrete subclasses must implement
415 virtual UnicodeString& format(int32_t number,
420 * Format a long number. Concrete subclasses may override
432 virtual UnicodeString& format(int32_t number,
438 * Format an int32 number. Subclasses must implement
445 * of fields generated by this format call.
451 virtual UnicodeString& format(int32_t number,
456 * Format an int64 number. (Not abstract to retain compatibility
458 * method as it just delegates to format(int32_t number...);
468 virtual UnicodeString& format(int64_t number,
473 * Format an int64 number. (Not abstract to retain compatibility
475 * method as it just delegates to format(int32_t number...);
485 virtual UnicodeString& format(int64_t number,
490 * Format an int64 number. Subclasses must implement
497 * of fields generated by this format call.
503 virtual UnicodeString& format(int64_t number,
509 * Format a decimal number. Subclasses must implement
518 * of fields generated by this format call.
524 virtual UnicodeString& format(const StringPiece &number,
530 * Format a decimal number.
537 * @param number The number, a DigitList format Decimal Floating Point.
541 * of fields generated by this format call.
546 virtual UnicodeString& format(const DigitList &number,
552 * Format a decimal number.
559 * @param number The number, a DigitList format Decimal Floating Point.
568 virtual UnicodeString& format(const DigitList &number,
620 * This method will fail if this format is not a currency format,
638 * Return true if this format will parse numbers as integers
642 * the exact format accepted by the parse operation is locale
644 * @return true if this format will parse numbers as integers
652 * @param value set True, this format will parse numbers as integers
679 * Returns the default number format for the current default
680 * locale. The default format is one of the styles provided by
689 * Returns the default number format for the specified locale.
690 * The default format is one of the styles provided by the other
700 * Creates the specified decimal format style of the desired locale.
736 * Returns a currency format for the current default locale.
742 * Returns a currency format for the specified locale.
750 * Returns a percentage format for the current default locale.
756 * Returns a percentage format for the specified locale.
764 * Returns a scientific format for the current default locale.
770 * Returns a scientific format for the specified locale.
821 * Returns true if grouping is used in this format. For example,
832 * Set whether or not grouping will be used in this format.
833 * @param newValue True, grouping will be used in this format.
931 * amounts. This takes effect immediately, if this format is a
932 * currency format. If this format is not a currency format, then
934 * currency format.
1034 * Creates the specified number format style of the desired locale.
1050 * Creates the specified decimal format style of the desired locale.
1118 * Return a number format of the appropriate type. If the locale