Lines Matching refs:format
15 * \brief C++ API: Rule Based Number Format
86 * <p>For larger numbers, we can use the preceding set of rules to format the ones place, and
102 * isolate the number's ones digit, format it using this same set of rules, and place the
178 * <p>The above syntax suffices only to format positive integers. To format negative numbers,
184 * where the base value would be. This rule is used to format all negative numbers. the
185 * >> token here means "find the number's absolute value, format it with these
213 * are <em>public:</em> the caller can specify that they be used to format and parse numbers.
288 * on whether it is used to format a number's integral part (or the whole number) or a
289 * number's fractional part. Using a rule set to format a rule's fractional part makes it a
292 * <p>Which rule is used to format a number is defined according to one of the following
348 * <td>Divide the number by the rule's divisor and format the remainder</td>
353 * <td>Find the absolute value of the number and format the result</td>
358 * <td>Isolate the number's fractional part and format it.</td>
368 * <td>Divide the number by the rule's divisor and format the remainder,
380 * <td>Divide the number by the rule's divisor and format the quotient</td>
390 * <td>Isolate the number's integral part and format it.</td>
395 * <td>Multiply the number by the rule's base value and format the result.</td>
400 * <td>Format the number unchanged</td>
442 * <td>Perform the mathematical operation on the number, and format the result using the
447 * <td>Perform the mathematical operation on the number, and format the result using a
452 * <td>Perform the mathematical operation on the number, and format the result using the rule
457 * format the result one digit at a time using the rule set containing the current rule.</li>
459 * fraction rule set, format the result using the default rule set for this formatter.</li>
642 virtual Format* clone(void) const;
645 * Return true if the given Format objects are semantically equal.
648 * @return true if the given Format objects are semantically equal.
651 virtual UBool operator==(const Format& other) const;
725 using NumberFormat::format;
729 * @param number The number to format.
735 virtual UnicodeString& format(int32_t number,
741 * @param number The number to format.
747 virtual UnicodeString& format(int64_t number,
752 * @param number The number to format.
758 virtual UnicodeString& format(double number,
764 * @param number The number to format.
765 * @param ruleSetName The name of the rule set to format the number with.
773 virtual UnicodeString& format(int32_t number,
780 * @param number The number to format.
781 * @param ruleSetName The name of the rule set to format the number with.
789 virtual UnicodeString& format(int64_t number,
796 * @param number The number to format.
797 * @param ruleSetName The name of the rule set to format the number with.
805 virtual UnicodeString& format(double number,
813 * @param obj The number to format.
820 virtual UnicodeString& format(const Formattable& obj,
825 * Redeclared Format method.
832 UnicodeString& format(const Formattable& obj,
843 UnicodeString& format(double number,
853 UnicodeString& format(int32_t number,
876 * Redeclared Format method.
979 void format(double number, NFRuleSet& ruleSet);
1009 RuleBasedNumberFormat::format(const Formattable& obj,
1013 // Don't use Format:: - use immediate base class only,
1018 return NumberFormat::format(obj, result, status);
1022 RuleBasedNumberFormat::format(double number, UnicodeString& output) const {
1024 return format(number, output, pos);
1028 RuleBasedNumberFormat::format(int32_t number, UnicodeString& output) const {
1030 return format(number, output, pos);