Lines Matching refs:format
35 #include "unicode/format.h"
57 * NumberFormat helps you to format and parse numbers for any locale.
60 * decimal digits used, or whether the number format is even decimal.
62 * To format a number for the current Locale, use one of the static
70 * nf->format(myNumber, myString);
75 * the format and use it multiple times so that the system doesn't
87 * nf->format(a[i], myString);
93 * To format a number for a different Locale, specify it in the
108 * Use createInstance to get the normal number format for that country.
110 * to get the currency number format for that country. Use getPercent
111 * to get a format for displaying percentages. With this format, a
117 * use createInstance(...kNumberStyle...) to get the normal number format,
118 * createInstance(...kPercentStyle...) to get a format for displaying
120 * createInstance(...kScientificStyle...) to get a format for displaying
122 * createInstance(...kCurrencyStyle...) to get the currency number format,
124 * createInstance(...kIsoCurrencyStyle...) to get the currency number format,
126 * createInstance(...kPluralCurrencyStyle...) to get the currency number format,
127 * in which the currency is represented by its full name in plural format,
132 * format or parsing, or want to give your users more control, you can
138 * You can also use forms of the parse and format methods with
147 * can pass the FieldPosition in your format call, with field =
166 class U_I18N_API NumberFormat : public Format {
174 * support identification of all number format fields, not just those
224 * Return true if the given Format objects are semantically equal.
226 * @return true if the given Format objects are semantically equal.
229 virtual UBool operator==(const Format& other) const;
232 using Format::format;
235 * Format an object to produce a string. This method handles
240 * @param obj The object to format.
249 virtual UnicodeString& format(const Formattable& obj,
255 * Format an object to produce a string. This method handles
260 * @param obj The object to format.
264 * of fields generated by this format call. Can be
270 virtual UnicodeString& format(const Formattable& obj,
288 * See Format::parseObject() for more.
308 * Format a double number. These methods call the NumberFormat
309 * pure virtual format() methods with the default FieldPosition.
317 UnicodeString& format( double number,
321 * Format a long number. These methods call the NumberFormat
322 * pure virtual format() methods with the default FieldPosition.
330 UnicodeString& format( int32_t number,
334 * Format an int64 number. These methods call the NumberFormat
335 * pure virtual format() methods with the default FieldPosition.
343 UnicodeString& format( int64_t number,
347 * Format a double number. Concrete subclasses must implement
358 virtual UnicodeString& format(double number,
362 * Format a double number. By default, the parent function simply
375 virtual UnicodeString& format(double number,
380 * Format a double number. Subclasses must implement
387 * of fields generated by this format call.
393 virtual UnicodeString& format(double number,
398 * Format a long number. Concrete subclasses must implement
409 virtual UnicodeString& format(int32_t number,
414 * Format a long number. Concrete subclasses may override
426 virtual UnicodeString& format(int32_t number,
432 * Format an int32 number. Subclasses must implement
439 * of fields generated by this format call.
445 virtual UnicodeString& format(int32_t number,
450 * Format an int64 number. (Not abstract to retain compatibility
452 * method as it just delegates to format(int32_t number...);
462 virtual UnicodeString& format(int64_t number,
467 * Format an int64 number. (Not abstract to retain compatibility
469 * method as it just delegates to format(int32_t number...);
479 virtual UnicodeString& format(int64_t number,
484 * Format an int64 number. Subclasses must implement
491 * of fields generated by this format call.
497 virtual UnicodeString& format(int64_t number,
503 * Format a decimal number. Subclasses must implement
512 * of fields generated by this format call.
518 virtual UnicodeString& format(const StringPiece &number,
524 * Format a decimal number.
531 * @param number The number, a DigitList format Decimal Floating Point.
535 * of fields generated by this format call.
540 virtual UnicodeString& format(const DigitList &number,
546 * Format a decimal number.
553 * @param number The number, a DigitList format Decimal Floating Point.
562 virtual UnicodeString& format(const DigitList &number,
570 * Redeclared Format method.
579 UnicodeString& format(const Formattable& obj,
629 * This method will fail if this format is not a currency format,
647 * Return true if this format will parse numbers as integers
651 * the exact format accepted by the parse operation is locale
653 * @return true if this format will parse numbers as integers
661 * @param value set True, this format will parse numbers as integers
688 * Returns the default number format for the current default
689 * locale. The default format is one of the styles provided by
698 * Returns the default number format for the specified locale.
699 * The default format is one of the styles provided by the other
709 * Creates the specified decimal format style of the desired locale.
721 * Returns a currency format for the current default locale.
727 * Returns a currency format for the specified locale.
735 * Returns a percentage format for the current default locale.
741 * Returns a percentage format for the specified locale.
749 * Returns a scientific format for the current default locale.
755 * Returns a scientific format for the specified locale.
800 * Returns true if grouping is used in this format. For example,
811 * Set whether or not grouping will be used in this format.
812 * @param newValue True, grouping will be used in this format.
910 * amounts. This takes effect immediately, if this format is a
911 * currency format. If this format is not a currency format, then
913 * currency format.
991 * Creates the specified decimal format style of the desired locale.
1051 * Return a number format of the appropriate type. If the locale
1116 NumberFormat::format(const Formattable& obj,
1119 return Format::format(obj, appendTo, status);