Home | History | Annotate | Download | only in i18n

Lines Matching refs:number

56     virtual int64_t transformNumber(int64_t number) const { return number; }
57 virtual double transformNumber(double number) const { return number; }
100 virtual int64_t transformNumber(int64_t number) const {
101 return number / ldivisor;
104 virtual double transformNumber(double number) const {
106 return uprv_floor(number / divisor);
108 return number/divisor;
152 virtual void doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t pos) const;
153 virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos) const;
155 virtual int64_t transformNumber(int64_t number) const { return number % ldivisor; }
156 virtual double transformNumber(double number) const { return uprv_fmod(number, divisor); }
194 virtual int64_t transformNumber(int64_t number) const { return number; }
195 virtual double transformNumber(double number) const { return uprv_floor(number); }
221 virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos) const;
222 virtual void doSubstitution(int64_t /*number*/, UnicodeString& /*toInsertInto*/, int32_t /*_pos*/) const {}
223 virtual int64_t transformNumber(int64_t /*number*/) const { return 0; }
224 virtual double transformNumber(double number) const { return number - uprv_floor(number); }
254 virtual int64_t transformNumber(int64_t number) const { return number >= 0 ? number : -number; }
255 virtual double transformNumber(double number) const { return uprv_fabs(number); }
294 virtual int64_t transformNumber(int64_t number) const { return number * ldenominator; }
295 virtual double transformNumber(double number) const { return uprv_round(number * denominator); }
297 virtual void doSubstitution(int64_t /*number*/, UnicodeString& /*toInsertInto*/, int32_t /*_pos*/) const {}
298 virtual void doSubstitution(double number, UnicodeString& toInsertInto, int32_t pos) const;
330 virtual void doSubstitution(double /*number*/, UnicodeString& /*toInsertInto*/, int32_t /*_pos*/) const {}
331 virtual void doSubstitution(int64_t /*number*/, UnicodeString& /*toInsertInto*/, int32_t /*_pos*/) const {}
332 virtual int64_t transformNumber(int64_t /*number*/) const { return 0; }
333 virtual double transformNumber(double /*number*/) const { return 0; }
370 // throw an exception if the rule is a negative number
373 // throw new IllegalArgumentException("<< not allowed in negative-number rule");
401 // if the rule is a negative-number rule, return
505 // a number even when it's 0)
595 * Performs a mathematical operation on the number, formats it using
598 * @param number The number being formatted.
605 NFSubstitution::doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t _pos) const
608 // perform a transformation on the number that is dependent
611 ruleSet->format(transformNumber(number), toInsertInto, _pos + this->pos);
613 // or perform the transformation on the number (preserving
617 double numberToFormat = transformNumber((double)number);
629 * Performs a mathematical operation on the number, formats it using
632 * @param number The number being formatted.
639 NFSubstitution::doSubstitution(double number, UnicodeString& toInsertInto, int32_t _pos) const {
640 // perform a transformation on the number being formatted that
642 double numberToFormat = transformNumber(number);
765 // number rule, the result is the negative of its substitution's
839 * A substitution that divides the number being formatted by the its rule's
891 * @param number The number being formatted
897 ModulusSubstitution::doSubstitution(int64_t number, UnicodeString& toInsertInto, int32_t _pos) const
903 NFSubstitution::doSubstitution(number, toInsertInto, _pos);
908 int64_t numberToFormat = transformNumber(number);
916 * @param number The number being formatted
922 ModulusSubstitution::doSubstitution(double number, UnicodeString& toInsertInto, int32_t _pos) const
928 NFSubstitution::doSubstitution(number, toInsertInto, _pos);
933 double numberToFormat = transformNumber(number);
1053 * @param number The number being formatted
1060 FractionalPartSubstitution::doSubstitution(double number, UnicodeString& toInsertInto, int32_t _pos) const
1065 NFSubstitution::doSubstitution(number, toInsertInto, _pos);
1074 // int32_t numberToFormat = (int32_t)uprv_round(transformNumber(number) * uprv_pow(10, kMaxDecimalDigits));
1092 dl.set(number);
1099 // include both real digits from the number, and zeros
1232 NumeratorSubstitution::doSubstitution(double number, UnicodeString& toInsertInto, int32_t apos) const {
1233 // perform a transformation on the number being formatted that
1236 double numberToFormat = transformNumber(number);
1297 // we failed, either there were no more zeros, or the number was formatted with digits