Home
last modified time | relevance | path

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

/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/
DComplexUnitsConverter.java27 private ArrayList<UnitsConverter> unitsConverters_; field in ComplexUnitsConverter
123 unitsConverters_ = new ArrayList<>(); in init()
126unitsConverters_.add(new UnitsConverter(this.inputUnit_, units_.get(i).unitImpl, conversionRates)); in init()
128 unitsConverters_ in init()
145 …return unitsConverters_.get(0).convert(quantity).multiply(EPSILON_MULTIPLIER).compareTo(limit) >= … in greaterThanOrEqual()
179 List<BigInteger> intValues = new ArrayList<>(unitsConverters_.size() - 1); in convert()
180 for (int i = 0, n = unitsConverters_.size(); i < n; ++i) { in convert()
181 quantity = (unitsConverters_.get(i)).convert(quantity); in convert()
207 List<Measure> measures = new ArrayList<>(unitsConverters_.size()); in convert()
208 for (int i = 0; i < unitsConverters_.size(); i++) { in convert()
[all …]
/third_party/skia/third_party/externals/icu/source/i18n/
Dunits_complexconverter.cpp119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
122 unitsConverters_.emplaceBackAndCheckErrorCode(status, units_[i - 1]->unitImpl, in init()
133 U_ASSERT(unitsConverters_.length() > 0); in greaterThanOrEqual()
136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual()
156 MaybeStackArray<int64_t, 5> intValues(unitsConverters_.length() - 1, status); in convert()
160 uprv_memset(intValues.getAlias(), 0, (unitsConverters_.length() - 1) * sizeof(int64_t)); in convert()
162 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
163 quantity = (*unitsConverters_[i]).convert(quantity); in convert()
193 MaybeStackArray<Measure *, 4> tmpResult(unitsConverters_.length(), status); in convert()
199 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
[all …]
Dunits_complexconverter.h112 MaybeStackVector<UnitsConverter> unitsConverters_;
/third_party/icu/icu4c/source/i18n/
Dunits_complexconverter.cpp119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
122 unitsConverters_.emplaceBackAndCheckErrorCode(status, units_[i - 1]->unitImpl, in init()
133 U_ASSERT(unitsConverters_.length() > 0); in greaterThanOrEqual()
136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual()
156 MaybeStackArray<int64_t, 5> intValues(unitsConverters_.length() - 1, status); in convert()
160 uprv_memset(intValues.getAlias(), 0, (unitsConverters_.length() - 1) * sizeof(int64_t)); in convert()
162 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
163 quantity = (*unitsConverters_[i]).convert(quantity); in convert()
193 MaybeStackArray<Measure *, 4> tmpResult(unitsConverters_.length(), status); in convert()
199 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
[all …]
Dunits_complexconverter.h112 MaybeStackVector<UnitsConverter> unitsConverters_;
/third_party/node/deps/icu-small/source/i18n/
Dunits_complexconverter.cpp119 unitsConverters_.emplaceBackAndCheckErrorCode(status, inputUnit, units_[i]->unitImpl, in init()
122 unitsConverters_.emplaceBackAndCheckErrorCode(status, units_[i - 1]->unitImpl, in init()
133 U_ASSERT(unitsConverters_.length() > 0); in greaterThanOrEqual()
136 double newQuantity = unitsConverters_[0]->convert(quantity); in greaterThanOrEqual()
156 MaybeStackArray<int64_t, 5> intValues(unitsConverters_.length() - 1, status); in convert()
160 uprv_memset(intValues.getAlias(), 0, (unitsConverters_.length() - 1) * sizeof(int64_t)); in convert()
162 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
163 quantity = (*unitsConverters_[i]).convert(quantity); in convert()
193 MaybeStackArray<Measure *, 4> tmpResult(unitsConverters_.length(), status); in convert()
199 for (int i = 0, n = unitsConverters_.length(); i < n; ++i) { in convert()
[all …]
Dunits_complexconverter.h112 MaybeStackVector<UnitsConverter> unitsConverters_;