Home
last modified time | relevance | path

Searched refs:quantity1 (Results 1 – 7 of 7) sorted by relevance

/external/icu/icu4j/main/classes/core/src/com/ibm/icu/number/
DFormattedNumberRange.java27 final DecimalQuantity quantity1; field in FormattedNumberRange
31 …FormattedNumberRange(NumberStringBuilder string, DecimalQuantity quantity1, DecimalQuantity quanti… in FormattedNumberRange() argument
34 this.quantity1 = quantity1; in FormattedNumberRange()
141 return quantity1.toBigDecimal(); in getFirstBigDecimal()
184 ^ quantity1.toBigDecimal().hashCode() ^ quantity2.toBigDecimal().hashCode(); in hashCode()
206 && quantity1.toBigDecimal().equals(_other.quantity1.toBigDecimal()) in equals()
DNumberRangeFormatterImpl.java132 …public FormattedNumberRange format(DecimalQuantity quantity1, DecimalQuantity quantity2, boolean e… in format() argument
134 MicroProps micros1 = formatterImpl1.preProcess(quantity1); in format()
150 formatRange(quantity1, quantity2, string, micros1, micros2); in format()
151 … return new FormattedNumberRange(string, quantity1, quantity2, RangeIdentityResult.NOT_EQUAL); in format()
158 } else if (quantity1.equals(quantity2)) { in format()
173 formatRange(quantity1, quantity2, string, micros1, micros2); in format()
179 formatApproximately(quantity1, quantity2, string, micros1, micros2); in format()
185 formatSingleValue(quantity1, quantity2, string, micros1, micros2); in format()
193 return new FormattedNumberRange(string, quantity1, quantity2, identityResult); in format()
196 …private void formatSingleValue(DecimalQuantity quantity1, DecimalQuantity quantity2, NumberStringB… in formatSingleValue() argument
[all …]
/external/icu/android_icu4j/src/main/java/android/icu/number/
DFormattedNumberRange.java28 final DecimalQuantity quantity1; field in FormattedNumberRange
32 …FormattedNumberRange(NumberStringBuilder string, DecimalQuantity quantity1, DecimalQuantity quanti… in FormattedNumberRange() argument
35 this.quantity1 = quantity1; in FormattedNumberRange()
137 return quantity1.toBigDecimal(); in getFirstBigDecimal()
177 ^ quantity1.toBigDecimal().hashCode() ^ quantity2.toBigDecimal().hashCode(); in hashCode()
198 && quantity1.toBigDecimal().equals(_other.quantity1.toBigDecimal()) in equals()
DNumberRangeFormatterImpl.java133 …public FormattedNumberRange format(DecimalQuantity quantity1, DecimalQuantity quantity2, boolean e… in format() argument
135 MicroProps micros1 = formatterImpl1.preProcess(quantity1); in format()
151 formatRange(quantity1, quantity2, string, micros1, micros2); in format()
152 … return new FormattedNumberRange(string, quantity1, quantity2, RangeIdentityResult.NOT_EQUAL); in format()
159 } else if (quantity1.equals(quantity2)) { in format()
174 formatRange(quantity1, quantity2, string, micros1, micros2); in format()
180 formatApproximately(quantity1, quantity2, string, micros1, micros2); in format()
186 formatSingleValue(quantity1, quantity2, string, micros1, micros2); in format()
194 return new FormattedNumberRange(string, quantity1, quantity2, identityResult); in format()
197 …private void formatSingleValue(DecimalQuantity quantity1, DecimalQuantity quantity2, NumberStringB… in formatSingleValue() argument
[all …]
/external/icu/icu4c/source/i18n/
Dnumrange_impl.cpp205 formatterImpl1.preProcess(data.quantity1, micros1, status); in format()
231 } else if (data.quantity1 == data.quantity2) { in format()
283 …int32_t length = NumberFormatterImpl::writeNumber(micros1, data.quantity1, data.string, 0, status); in formatSingleValue()
296 …int32_t length = NumberFormatterImpl::writeNumber(micros1, data.quantity1, data.string, 0, status); in formatApproximately()
424 …length1 += NumberFormatterImpl::writeNumber(micros1, data.quantity1, string, UPRV_INDEX_0, status); in formatRange()
Dnumrange_impl.h35 DecimalQuantity quantity1; member
Dnumrange_fluent.cpp289 first.populateDecimalQuantity(results->quantity1, status); in formatFormattableRange()
441 return fResults->quantity1.toScientificString(); in getFirstDecimal()