Lines Matching refs:format
54 * and format numbers in any locale, including support for Western, Arabic, or
78 * // format for each locale.
85 * cout << endl << "FORMAT " << j << endl;
103 * cout << " -> " << form->format(myNumber,str) << endl;
104 * form->parse(form->format(myNumber,str), fmtable, success);
116 * // format for each locale</strong>
125 * NumberFormat* format = NumberFormat::createInstance(locale, j, success);
127 * cout << "format result " << form->format(myNumber, str) << endl;
128 * format->parse(form->format(myNumber, str), fmtable, success);
485 * <td align=left>Output of format()
567 * format() to a specific width. Padding may be specified either
578 * including prefix and suffix, determines the format width. For example, in
579 * the pattern <code>"* #0 o''clock"</code>, the format width is 10.
585 * "* ##,##,#,##0.##", the format width is 14. The initial characters "##,##,"
587 * the format width.
709 * behavior of the format.
714 * to a standard format, you can modify the format returned by
735 * @param style style of decimal format, kNumberStyle etc.
748 * behavior of the format.
753 * to a standard format, you can modify the format returned by
771 * behavior of the format.
776 * to a standard format, you can modify the format returned by
812 * Clone this Format object polymorphically. The caller owns the
818 virtual Format* clone(void) const;
821 * Return true if the given Format objects are semantically equal.
825 * @return true if the given Format objects are semantically equal.
828 virtual UBool operator==(const Format& other) const;
831 using NumberFormat::format;
834 * Format a double or long number using base-10 representation.
844 virtual UnicodeString& format(double number,
849 * Format a double or long number using base-10 representation.
855 * of fields generated by this format call.
861 virtual UnicodeString& format(double number,
867 * Format a long number using base-10 representation.
877 virtual UnicodeString& format(int32_t number,
882 * Format a long number using base-10 representation.
888 * of fields generated by this format call.
894 virtual UnicodeString& format(int32_t number,
900 * Format an int64 number using base-10 representation.
910 virtual UnicodeString& format(int64_t number,
915 * Format an int64 number using base-10 representation.
921 * of fields generated by this format call.
927 virtual UnicodeString& format(int64_t number,
933 * Format a decimal number.
942 * of fields generated by this format call.
948 virtual UnicodeString& format(const StringPiece &number,
955 * Format a decimal number.
960 * @param number The number, a DigitList format Decimal Floating Point.
964 * of fields generated by this format call.
969 virtual UnicodeString& format(const DigitList &number,
975 * Format a decimal number.
980 * @param number The number, a DigitList format Decimal Floating Point.
989 virtual UnicodeString& format(const DigitList &number,
996 * Format a Formattable using base-10 representation.
1007 virtual UnicodeString& format(const Formattable& obj,
1016 * @param obj The object to format.
1023 UnicodeString& format(const Formattable& obj,
1029 * Format a double number.
1037 UnicodeString& format(double number,
1042 * Format a long number. These methods call the NumberFormat
1043 * pure virtual format() methods with the default FieldPosition.
1051 UnicodeString& format(int32_t number,
1056 * Format an int64 number. These methods call the NumberFormat
1057 * pure virtual format() methods with the default FieldPosition.
1065 UnicodeString& format(int64_t number,
1108 * This method will fail if this format is not a currency format,
1127 * Returns the decimal format symbols, which is generally not changed
1136 * Sets the decimal format symbols, which is generally not changed
1144 * Sets the decimal format symbols, which is generally not changed
1153 * Returns the currency plural format information,
1161 * Sets the currency plural format information,
1169 * Sets the currency plural format information,
1321 * Get the width to which the output of format() is padded.
1323 * @return the format width, or zero if no padding is in effect
1334 * Set the width to which the output of format() is padded.
1338 * format(), or zero to disable padding. A negative
1350 * Get the pad character used to pad to the format width. The
1364 * Set the character used to pad to the format width. If padding
1381 * at which padding will be inserted if the result of format()
1382 * is shorter than the format width.
1398 * at which padding will be inserted if the result of format()
1399 * is shorter than the format width. This has no effect unless padding is
1431 * number format without additional changes.
1579 * of this Format object.
1591 * state of this Format object.
1602 * Apply the given pattern to this Format object. A pattern is a
1645 * Apply the given pattern to this Format object. The pattern
1679 * Apply the given pattern to this Format object.
1796 * amounts. This takes effect immediately, if this format is a
1797 * currency format. If this format is not a currency format, then
1799 * currency format through the application of a new pattern.
1816 * The resource tags we use to retrieve decimal format data from
1927 * @param isInteger if TRUE format the digits as Integer.
1998 format symbol.
2106 * is not null, then delegate to it to format currency symbols.
2133 * Following are used for currency format
2141 * Represents whether this is a currency format, and which
2142 * currency format style.
2143 * 0: not currency format type;
2155 * every currency format pattern,
2188 * the formatter style is currency plural format style.
2240 // Information needed for DecimalFormat to format/parse currency plural.
2278 DecimalFormat::format(const Formattable& obj,
2281 // Don't use Format:: - use immediate base class only,
2283 return NumberFormat::format(obj, appendTo, status);
2287 DecimalFormat::format(double number,
2290 return format(number, appendTo, pos);
2294 DecimalFormat::format(int32_t number,
2297 return format((int64_t)number, appendTo, pos);