/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ |
D | ComplexUnitsConverter.java | 46 public ComplexUnitsConverter(MeasureUnitImpl targetUnit, ConversionRates conversionRates) { in ComplexUnitsConverter() argument 53 conversionRates); in ComplexUnitsConverter() 60 this.init(conversionRates); in ComplexUnitsConverter() 92 ConversionRates conversionRates) { in ComplexUnitsConverter() argument 97 this.init(conversionRates); in ComplexUnitsConverter() 104 private void init(ConversionRates conversionRates) { in init() argument 107 …Collections.reverseOrder(new MeasureUnitImpl.MeasureUnitImplWithIndexComparator(conversionRates))); in init() 126 …unitsConverters_.add(new UnitsConverter(this.inputUnit_, units_.get(i).unitImpl, conversionRates)); in init() 129 … .add(new UnitsConverter(units_.get(i - 1).unitImpl, units_.get(i).unitImpl, conversionRates)); in init()
|
D | UnitsConverter.java | 49 …c UnitsConverter(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in UnitsConverter() argument 50 Convertibility convertibility = extractConvertibility(source, target, conversionRates); in UnitsConverter() 54 Factor sourceToBase = conversionRates.getFactorToBase(source); in UnitsConverter() 55 Factor targetToBase = conversionRates.getFactorToBase(target); in UnitsConverter() 66 …this.offset = conversionRates.getOffset(source, target, sourceToBase, targetToBase, convertibility… in UnitsConverter() 71 …ctConvertibility(MeasureUnitImpl source, MeasureUnitImpl target, ConversionRates conversionRates) { in extractConvertibility() argument 72 ArrayList<SingleUnitImpl> sourceSingleUnits = conversionRates.extractBaseUnits(source); in extractConvertibility() 73 ArrayList<SingleUnitImpl> targetSingleUnits = conversionRates.extractBaseUnits(target); in extractConvertibility()
|
D | UnitsRouter.java | 165 String precision, ConversionRates conversionRates) { in ConverterPreference() argument 167 conversionRates); in ConverterPreference() 171 … BigDecimal limit, String precision, ConversionRates conversionRates) { in ConverterPreference() argument 172 this.converter = new ComplexUnitsConverter(source, targetUnit, conversionRates); in ConverterPreference()
|
D | MeasureUnitImpl.java | 742 private final ConversionRates conversionRates; field in MeasureUnitImpl.MeasureUnitImplComparator 744 public MeasureUnitImplComparator(ConversionRates conversionRates) { in MeasureUnitImplComparator() argument 745 this.conversionRates = conversionRates; in MeasureUnitImplComparator() 750 BigDecimal factor1 = this.conversionRates.getFactorToBase(o1).getConversionRate(); in compare() 751 BigDecimal factor2 = this.conversionRates.getFactorToBase(o2).getConversionRate(); in compare() 760 public MeasureUnitImplWithIndexComparator(ConversionRates conversionRates) { in MeasureUnitImplWithIndexComparator() argument 761 this.measureUnitImplComparator = new MeasureUnitImplComparator(conversionRates); in MeasureUnitImplWithIndexComparator()
|
D | UnitsData.java | 31 private ConversionRates conversionRates; field in UnitsData 36 this.conversionRates = new ConversionRates(); in UnitsData() 55 return conversionRates; in getConversionRates()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/ |
D | UnitsTest.java | 223 ConversionRates conversionRates = new ConversionRates(); 228 … ComplexUnitsConverter converter = new ComplexUnitsConverter(input, output, conversionRates); 276 ConversionRates conversionRates = new ConversionRates(); 280 …ls(test.expected, UnitsConverter.extractConvertibility(test.source, test.target, conversionRates)); 339 ConversionRates conversionRates = new ConversionRates(); 343 … UnitsConverter unitsConverter = new UnitsConverter(sourceImpl, targetImpl, conversionRates); 441 ConversionRates conversionRates = new ConversionRates(); 446 UnitsConverter converter = new UnitsConverter(source, target, conversionRates); 527 ConversionRates conversionRates = new ConversionRates(); 531 … UnitsConverter converter = new UnitsConverter(testCase.source, testCase.target, conversionRates);
|
/third_party/node/deps/icu-small/source/i18n/ |
D | units_router.cpp | 65 ConversionRates conversionRates(status); in init() local 70 (extractCompoundBaseUnit(inputUnitImpl, conversionRates, status)); in init() 107 conversionRates, status); in init()
|
D | units_converter.h | 120 const ConversionRates &conversionRates, 136 const ConversionRates &conversionRates,
|
D | units_converter.cpp | 407 const ConversionRates &conversionRates, in extractCompoundBaseUnit() argument 419 conversionRates.extractConversionInfo(singleUnit.getSimpleUnitID(), status); in extractCompoundBaseUnit() 459 const ConversionRates &conversionRates, in extractConvertibility() argument 468 MeasureUnitImpl sourceBaseUnit = extractCompoundBaseUnit(source, conversionRates, status); in extractConvertibility() 469 MeasureUnitImpl targetBaseUnit = extractCompoundBaseUnit(target, conversionRates, status); in extractConvertibility()
|
D | number_usageprefs.cpp | 186 ConversionRates conversionRates(status); in UnitConversionHandler() local 194 new ComplexUnitsConverter(targetUnitImpl, conversionRates, status), status); in UnitConversionHandler()
|
/third_party/icu/icu4c/source/i18n/ |
D | units_router.cpp | 65 ConversionRates conversionRates(status); in init() local 70 (extractCompoundBaseUnit(inputUnitImpl, conversionRates, status)).build(status); in init() 107 conversionRates, status); in init()
|
D | units_converter.h | 120 const ConversionRates &conversionRates, 136 const ConversionRates &conversionRates,
|
D | units_converter.cpp | 407 const ConversionRates &conversionRates, in extractCompoundBaseUnit() argument 419 conversionRates.extractConversionInfo(singleUnit.getSimpleUnitID(), status); in extractCompoundBaseUnit() 459 const ConversionRates &conversionRates, in extractConvertibility() argument 468 MeasureUnitImpl sourceBaseUnit = extractCompoundBaseUnit(source, conversionRates, status); in extractConvertibility() 469 MeasureUnitImpl targetBaseUnit = extractCompoundBaseUnit(target, conversionRates, status); in extractConvertibility()
|
D | number_usageprefs.cpp | 186 ConversionRates conversionRates(status); in UnitConversionHandler() local 194 new ComplexUnitsConverter(targetUnitImpl, conversionRates, status), status); in UnitConversionHandler()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | units_router.cpp | 65 ConversionRates conversionRates(status); in init() local 70 (extractCompoundBaseUnit(inputUnitImpl, conversionRates, status)).build(status); in init() 107 conversionRates, status); in init()
|
D | units_converter.h | 120 const ConversionRates &conversionRates, 136 const ConversionRates &conversionRates,
|
D | units_converter.cpp | 407 const ConversionRates &conversionRates, in extractCompoundBaseUnit() argument 419 conversionRates.extractConversionInfo(singleUnit.getSimpleUnitID(), status); in extractCompoundBaseUnit() 459 const ConversionRates &conversionRates, in extractConvertibility() argument 468 MeasureUnitImpl sourceBaseUnit = extractCompoundBaseUnit(source, conversionRates, status); in extractConvertibility() 469 MeasureUnitImpl targetBaseUnit = extractCompoundBaseUnit(target, conversionRates, status); in extractConvertibility()
|
D | number_usageprefs.cpp | 186 ConversionRates conversionRates(status); in UnitConversionHandler() local 194 new ComplexUnitsConverter(targetUnitImpl, conversionRates, status), status); in UnitConversionHandler()
|
/third_party/icu/icu4c/source/test/intltest/ |
D | units_test.cpp | 162 ConversionRates conversionRates(status); in testExtractConvertibility() local 166 auto convertibility = extractConvertibility(source, target, conversionRates, status); in testExtractConvertibility() 342 ConversionRates conversionRates(status); in testConverter() local 346 UnitsConverter converter(source, target, conversionRates, status); in testConverter() 417 ConversionRates *conversionRates; member 480 …auto convertibility = extractConvertibility(sourceUnit, targetUnit, *ctx->conversionRates, status); in unitsTestDataLineFn() 496 UnitsConverter converter(sourceUnit, targetUnit, *ctx->conversionRates, status); in unitsTestDataLineFn() 697 ConversionRates conversionRates(status); in testComplexUnitsConverterSorting() local 742 ComplexUnitsConverter converter(inputImpl, outputImpl, conversionRates, status); in testComplexUnitsConverterSorting()
|