Home
last modified time | relevance | path

Searched refs:numberToFormat (Results 1 – 4 of 4) sorted by relevance

/external/icu/android_icu4j/src/main/java/android/icu/text/
DNFSubstitution.java304 long numberToFormat = transformNumber(number); in doSubstitution() local
306 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution()
313 double numberToFormat = transformNumber((double) number); in doSubstitution() local
315 numberToFormat = Math.floor(numberToFormat); in doSubstitution()
318 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
328 long numberToFormat = transformNumber(number); in doSubstitution() local
329 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
347 double numberToFormat = transformNumber(number); in doSubstitution() local
349 if (Double.isInfinite(numberToFormat)) { in doSubstitution()
352 infiniteRule.doFormat(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DNFSubstitution.java303 long numberToFormat = transformNumber(number); in doSubstitution() local
305 ruleSet.format(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution()
312 double numberToFormat = transformNumber((double) number); in doSubstitution() local
314 numberToFormat = Math.floor(numberToFormat); in doSubstitution()
317 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
327 long numberToFormat = transformNumber(number); in doSubstitution() local
328 toInsertInto.insert(position + pos, numberFormat.format(numberToFormat)); in doSubstitution()
346 double numberToFormat = transformNumber(number); in doSubstitution() local
348 if (Double.isInfinite(numberToFormat)) { in doSubstitution()
351 infiniteRule.doFormat(numberToFormat, toInsertInto, position + pos, recursionCount); in doSubstitution()
[all …]
/external/icu/icu4c/source/i18n/
Dnfsubs.cpp581 double numberToFormat = transformNumber((double)number); in doSubstitution() local
583 numberToFormat = uprv_floor(numberToFormat); in doSubstitution()
587 numberFormat->format(numberToFormat, temp, status); in doSubstitution()
598 int64_t numberToFormat = transformNumber(number); in doSubstitution() local
600 numberFormat->format(numberToFormat, temp, status); in doSubstitution()
620 double numberToFormat = transformNumber(number); in doSubstitution() local
622 if (uprv_isInfinite(numberToFormat)) { in doSubstitution()
625 … infiniteRule->doFormat(numberToFormat, toInsertInto, _pos + this->pos, recursionCount, status); in doSubstitution()
631 if (numberToFormat == uprv_floor(numberToFormat) && ruleSet != NULL) { in doSubstitution()
632 …ruleSet->format(util64_fromDouble(numberToFormat), toInsertInto, _pos + this->pos, recursionCount,… in doSubstitution()
[all …]
Dcompactdecimalformat.cpp278 double numberToFormat = roundedDouble / _divisors[baseIdx]; in format() local
279 UnicodeString variant = _pluralRules->select(numberToFormat); in format()
281 numberToFormat = -numberToFormat; in format()
285 DecimalFormat::format(numberToFormat, appendTo, pos); in format()