Lines Matching refs:format
70 * and format numbers in any locale, including support for Western, Arabic, or
94 * // format for each locale.
101 * cout << endl << "FORMAT " << j << endl;
119 * cout << " -> " << form->format(myNumber,str) << endl;
120 * form->parse(form->format(myNumber,str), fmtable, success);
132 * // format for each locale</strong>
141 * NumberFormat* format = NumberFormat::createInstance(locale, j, success);
143 * cout << "format result " << form->format(myNumber, str) << endl;
144 * format->parse(form->format(myNumber, str), fmtable, success);
502 * <td align=left>Output of format()
584 * format() to a specific width. Padding may be specified either
595 * including prefix and suffix, determines the format width. For example, in
596 * the pattern <code>"* #0 o''clock"</code>, the format width is 10.
602 * "* ##,##,#,##0.##", the format width is 14. The initial characters "##,##,"
604 * the format width.
678 * Return U_FORMAT_INEXACT_ERROR if number does not format exactly.
730 * behavior of the format.
735 * to a standard format, you can modify the format returned by
757 format
806 * behavior of the format.
811 * to a standard format, you can modify the format returned by
829 * behavior of the format.
834 * to a standard format, you can modify the format returned by
870 * Clone this Format object polymorphically. The caller owns the
876 virtual Format* clone(void) const;
879 * Return true if the given Format objects are semantically equal.
883 * @return true if the given Format objects are semantically equal.
886 virtual UBool operator==(const Format& other) const;
889 using NumberFormat::format;
892 * Format a double or long number using base-10 representation.
902 virtual UnicodeString& format(double number,
908 * Format a double or long number using base-10 representation.
919 virtual UnicodeString& format(double number,
925 * Format a double or long number using base-10 representation.
931 * of fields generated by this format call.
937 virtual UnicodeString& format(double number,
943 * Format a long number using base-10 representation.
953 virtual UnicodeString& format(int32_t number,
958 * Format a long number using base-10 representation.
968 virtual UnicodeString& format(int32_t number,
974 * Format a long number using base-10 representation.
980 * of fields generated by this format call.
986 virtual UnicodeString& format(int32_t number,
992 * Format an int64 number using base-10 representation.
1002 virtual UnicodeString& format(int64_t number,
1007 * Format an int64 number using base-10 representation.
1017 virtual UnicodeString& format(int64_t number,
1023 * Format an int64 number using base-10 representation.
1029 * of fields generated by this format call.
1035 virtual UnicodeString& format(int64_t number,
1041 * Format a decimal number.
1050 * of fields generated by this format call.
1056 virtual UnicodeString& format(const StringPiece &number,
1063 * Format a decimal number.
1068 * @param number The number, a DigitList format Decimal Floating Point.
1072 * of fields generated by this format call.
1077 virtual UnicodeString& format(const DigitList &number,
1083 * Format a decimal number.
1088 * @param number The number, a DigitList format Decimal Floating Point.
1097 virtual UnicodeString& format(const DigitList &number,
1104 * Format a Formattable using base-10 representation.
1115 virtual UnicodeString& format(const Formattable& obj,
1124 * @param obj The object to format.
1131 UnicodeString& format(const Formattable& obj,
1137 * Format a double number.
1145 UnicodeString& format(double number,
1150 * Format a long number. These methods call the NumberFormat
1151 * pure virtual format() methods with the default FieldPosition.
1159 UnicodeString& format(int32_t number,
1164 * Format an int64 number. These methods call the NumberFormat
1165 * pure virtual format() methods with the default FieldPosition.
1173 UnicodeString& format(int64_t number,
1217 * This method will fail if this format is not a currency format,
1235 * Returns the decimal format symbols, which is generally not changed
1244 * Sets the decimal format symbols, which is generally not changed
1252 * Sets the decimal format symbols, which is generally not changed
1261 * Returns the currency plural format information,
1269 * Sets the currency plural format information,
1277 * Sets the currency plural format information,
1429 * Get the width to which the output of format() is padded.
1431 * @return the format width, or zero if no padding is in effect
1442 * Set the width to which the output of format() is padded.
1446 * format(), or zero to disable padding. A negative
1458 * Get the pad character used to pad to the format width. The
1472 * Set the character used to pad to the format width. If padding
1489 * at which padding will be inserted if the result of format()
1490 * is shorter than the format width.
1506 * at which padding will be inserted if the result of format()
1507 * is shorter than the format width. This has no effect unless padding is
1539 * number format without additional changes.
1687 * of this Format object.
1699 * state of this Format object.
1710 * Apply the given pattern to this Format object. A pattern is a
1753 * Apply the given pattern to this Format object. The pattern
1787 * Apply the given pattern to this Format object.
1904 * amounts. This takes effect immediately, if this format is a
1905 * currency format. If this format is not a currency format, then
1907 * currency format through the application of a new pattern.
1924 * The resource tags we use to retrieve decimal format data from
2035 * @param isInteger if TRUE format the digits as Integer.
2121 * Get a decimal format symbol.
2231 * is not null, then delegate to it to format currency symbols.
2263 * Following are used for currency format
2271 * Represents whether this is a currency format, and which
2272 * currency format style.
2273 * 0: not currency format type;
2285 * every currency format pattern,
2318 * the formatter style is currency plural format style.
2370 // Information needed for DecimalFormat to format/parse currency plural.
2428 DecimalFormat::format(const Formattable& obj,
2431 // Don't use Format:: - use immediate base class only,
2433 return NumberFormat::format(obj, appendTo, status);
2437 DecimalFormat::format(double number,
2440 return format(number, appendTo, pos);
2444 DecimalFormat::format(int32_t number,
2447 return format((int64_t)number, appendTo, pos);