Home | History | Annotate | Download | only in unicode

Lines Matching refs:number

15  * \brief C++ API: Rule Based Number Format
61 * The RuleBasedNumberFormat class formats numbers according to a set of rules. This number formatter is
66 * other complicated formatting tasks, such as formatting a number of seconds as hours,
102 * isolate the number's ones digit, format it using this same set of rules, and place the
104 * the number being formatted is an even multiple of 10 (the hyphen is a literal hyphen; 24
107 * <p>For even larger numbers, we can actually look up several parts of the number in the
118 * can change this). To fill in the substitutions, the formatter divides the number being
183 * <p>This is called a <em>negative-number rule,</em> and is identified by &quot;-x&quot;
185 * &gt;&gt; token here means &quot;find the number's absolute value, format it with these
194 * negative-number rule first and then through this rule). Here, the &lt;&lt; token refers to
195 * the number's integral part, and the &gt;&gt; to the number's fractional part. The
218 * The body of <tt>%%lenient-parse</tt> isn't a set of number-formatting rules, but a <tt>RuleBasedCollator</tt>
237 * number expressed using ASCII digits. <em>bv</em> may contain spaces, period, and commas,
264 * <td>The rule is a negative-number rule.</td>
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
296 * <li>If the rule set includes a master rule (and the number was passed in as a <tt>double</tt>),
297 * use the master rule.&nbsp; (If the number being formatted was passed in as a <tt>long</tt>,
299 * <li>If the number is negative, use the negative-number rule.</li>
300 * <li>If the number has a fractional part and is greater than 1, use the improper fraction
302 * <li>If the number has a fractional part and is between 0 and 1, use the proper fraction
305 * to the number. If that rule has two substitutions, its base value is not an even multiple
306 * of its divisor, and the number <em>is</em> an even multiple of the rule's divisor, use the
313 * <li>Ignore negative-number and fraction rules.</li>
314 * <li>For each rule in the list, multiply the number being formatted (which will always be
320 * denominator produces the fraction closest in value to the number being formatted wins.) If
333 * the number being formatted.</p>
337 * number being formatted. An optional <em>substitution descriptor </em>specifies how the
348 * <td>Divide the number by the rule's divisor and format the remainder</td>
352 * <td>in negative-number rule</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>
384 * <td>in negative-number rule</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>
405 * <td>Omit the optional text if the number is an even multiple of the rule's divisor</td>
409 * <td>in negative-number rule</td>
415 * <td>Omit the optional text if the number is between 0 and 1 (same as specifying both an
421 * <td>Omit the optional text if the number is an integer (same as specifying both an x.x
432 * <td>Omit the optional text if multiplying the number by the rule's base value yields 1.</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
602 * an ordinal suffix from the desired language to the end of a number (e.g. "123rd"),
665 * Return the number of public rule set names.
666 * @return the number of public rule set names.
681 * Return the number of locales for which we have localized rule set display names.
682 * @return the number of locales for which we have localized rule set display names.
728 * Formats the specified 32-bit number using the default ruleset.
729 * @param number The number to format.
732 * @return A textual representation of the number.
735 virtual UnicodeString& format(int32_t number,
740 * Formats the specified 64-bit number using the default ruleset.
741 * @param number The number to format.
744 * @return A textual representation of the number.
747 virtual UnicodeString& format(int64_t number,
751 * Formats the specified number using the default ruleset.
752 * @param number The number to format.
755 * @return A textual representation of the number.
758 virtual UnicodeString& format(double number,
763 * Formats the specified number using the named ruleset.
764 * @param number The number to format.
765 * @param ruleSetName The name of the rule set to format the number with.
770 * @return A textual representation of the number.
773 virtual UnicodeString& format(int32_t number,
779 * Formats the specified 64-bit number using the named ruleset.
780 * @param number The number to format.
781 * @param ruleSetName The name of the rule set to format the number with.
786 * @return A textual representation of the number.
789 virtual UnicodeString& format(int64_t number,
795 * Formats the specified number using the named ruleset.
796 * @param number The number to format.
797 * @param ruleSetName The name of the rule set to format the number with.
802 * @return A textual representation of the number.
805 virtual UnicodeString& format(double number,
812 * Formats the specified number using the default ruleset.
813 * @param obj The number to format.
817 * @return A textual representation of the number.
838 * @param number the double value to be formatted.
843 UnicodeString& format(double number,
848 * @param number the long value to be formatted.
853 UnicodeString& format(int32_t number,
1000 void format(double number, NFRuleSet& ruleSet);
1041 RuleBasedNumberFormat::format(double number, UnicodeString& output) const {
1043 return format(number, output, pos);
1047 RuleBasedNumberFormat::format(int32_t number, UnicodeString& output) const {
1049 return format(number, output, pos);