/third_party/node/deps/icu-small/source/i18n/ |
D | measunit_impl.h | 39 CharString U_I18N_API getUnitQuantity(const MeasureUnitImpl &baseMeasureUnitImpl, UErrorCode &statu… 214 class U_I18N_API MeasureUnitImpl : public UMemory { 216 MeasureUnitImpl() = default; 217 MeasureUnitImpl(MeasureUnitImpl &&other) = default; 219 MeasureUnitImpl(const MeasureUnitImpl &other, UErrorCode &status) = delete; 220 MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status); 222 MeasureUnitImpl &operator=(MeasureUnitImpl &&other) noexcept = default; 225 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() 237 static MeasureUnitImpl forIdentifier(StringPiece identifier, UErrorCode& status); 247 static const MeasureUnitImpl& forMeasureUnit( [all …]
|
D | units_converter.h | 101 const MeasureUnitImpl source; 102 const MeasureUnitImpl target; 109 ConversionRate(MeasureUnitImpl &&source, MeasureUnitImpl &&target) in ConversionRate() 119 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, 134 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, 135 const MeasureUnitImpl &target, 173 UnitsConverter(const MeasureUnitImpl &source, const MeasureUnitImpl &target, 183 …static int32_t compareTwoUnits(const MeasureUnitImpl &firstUnit, const MeasureUnitImpl &SecondUnit,
|
D | measunit_extra.cpp | 554 MeasureUnitImpl parse(UErrorCode& status) { in parse() 555 MeasureUnitImpl result; in parse() 842 CharString U_I18N_API getUnitQuantity(const MeasureUnitImpl &baseMeasureUnitImpl, UErrorCode &statu… in getUnitQuantity() 844 MeasureUnitImpl baseUnitImpl = baseMeasureUnitImpl.copy(status); in getUnitQuantity() 873 MeasureUnitImpl simplifiedUnit = baseMeasureUnitImpl.copyAndSimplify(status); in getUnitQuantity() 918 MeasureUnitImpl temp; in forMeasureUnit() 919 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit() 934 MeasureUnitImpl temp; in build() 997 MeasureUnitImpl::MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status) { in MeasureUnitImpl() function in MeasureUnitImpl 1001 MeasureUnitImpl MeasureUnitImpl::forIdentifier(StringPiece identifier, UErrorCode& status) { in forIdentifier() [all …]
|
D | units_complexconverter.h | 30 template class U_I18N_API MaybeStackArray<MeasureUnitImpl*, 8>; 31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; 32 template class U_I18N_API MaybeStackVector<MeasureUnitImpl, 8>; 66 ComplexUnitsConverter(const MeasureUnitImpl &targetUnit, const ConversionRates &ratesInfo, 92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits, 120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
|
D | units_router.h | 40 MeasureUnitImpl outputUnit; 42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult() 62 MeasureUnitImpl targetUnit; 65 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference() 70 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference()
|
D | units_converter.cpp | 219 Factor loadCompoundFactor(const MeasureUnitImpl &source, const ConversionRates &ratesInfo, in loadCompoundFactor() 252 UBool checkSimpleUnit(const MeasureUnitImpl &unit, UErrorCode &status) { in checkSimpleUnit() 276 void loadConversionRate(ConversionRate &conversionRate, const MeasureUnitImpl &source, in loadConversionRate() 277 const MeasureUnitImpl &target, Convertibility unitsState, in loadConversionRate() 341 const MeasureUnitImpl &shouldBeMerged, int32_t multiplier) { in mergeUnitsAndDimensions() 406 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, in extractCompoundBaseUnit() 410 MeasureUnitImpl result; in extractCompoundBaseUnit() 431 MeasureUnitImpl::forIdentifier(rateInfo->baseUnit.toStringPiece(), status).singleUnits; in extractCompoundBaseUnit() 457 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, in extractConvertibility() 458 const MeasureUnitImpl &target, in extractConvertibility() [all …]
|
/third_party/icu/icu4c/source/i18n/ |
D | measunit_impl.h | 187 class U_I18N_API MeasureUnitImpl : public UMemory { 189 MeasureUnitImpl() = default; 190 MeasureUnitImpl(MeasureUnitImpl &&other) = default; 192 MeasureUnitImpl(const MeasureUnitImpl &other, UErrorCode &status) = delete; 193 MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status); 195 MeasureUnitImpl &operator=(MeasureUnitImpl &&other) noexcept = default; 198 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() 210 static MeasureUnitImpl forIdentifier(StringPiece identifier, UErrorCode& status); 220 static const MeasureUnitImpl& forMeasureUnit( 221 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status); [all …]
|
D | units_converter.h | 101 const MeasureUnitImpl source; 102 const MeasureUnitImpl target; 109 ConversionRate(MeasureUnitImpl &&source, MeasureUnitImpl &&target) in ConversionRate() 119 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, 134 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, 135 const MeasureUnitImpl &target, 173 UnitsConverter(const MeasureUnitImpl &source, const MeasureUnitImpl &target, 183 …static int32_t compareTwoUnits(const MeasureUnitImpl &firstUnit, const MeasureUnitImpl &SecondUnit,
|
D | measunit_extra.cpp | 558 MeasureUnitImpl parse(UErrorCode& status) { in parse() 559 MeasureUnitImpl result; in parse() 879 MeasureUnitImpl temp; in forMeasureUnit() 880 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit() 895 MeasureUnitImpl temp; in build() 958 MeasureUnitImpl::MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status) { in MeasureUnitImpl() function in MeasureUnitImpl 962 MeasureUnitImpl MeasureUnitImpl::forIdentifier(StringPiece identifier, UErrorCode& status) { in forIdentifier() 966 const MeasureUnitImpl& MeasureUnitImpl::forMeasureUnit( in forMeasureUnit() 967 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit() 976 MeasureUnitImpl MeasureUnitImpl::forMeasureUnitMaybeCopy( in forMeasureUnitMaybeCopy() [all …]
|
D | units_complexconverter.h | 30 template class U_I18N_API MaybeStackArray<MeasureUnitImpl*, 8>; 31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; 32 template class U_I18N_API MaybeStackVector<MeasureUnitImpl, 8>; 66 ComplexUnitsConverter(const MeasureUnitImpl &targetUnit, const ConversionRates &ratesInfo, 92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits, 120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
|
D | units_router.h | 40 MeasureUnitImpl outputUnit; 42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult() 62 MeasureUnitImpl targetUnit; 65 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference() 70 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference()
|
D | units_converter.cpp | 219 Factor loadCompoundFactor(const MeasureUnitImpl &source, const ConversionRates &ratesInfo, in loadCompoundFactor() 252 UBool checkSimpleUnit(const MeasureUnitImpl &unit, UErrorCode &status) { in checkSimpleUnit() 276 void loadConversionRate(ConversionRate &conversionRate, const MeasureUnitImpl &source, in loadConversionRate() 277 const MeasureUnitImpl &target, Convertibility unitsState, in loadConversionRate() 341 const MeasureUnitImpl &shouldBeMerged, int32_t multiplier) { in mergeUnitsAndDimensions() 406 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, in extractCompoundBaseUnit() 410 MeasureUnitImpl result; in extractCompoundBaseUnit() 431 MeasureUnitImpl::forIdentifier(rateInfo->baseUnit.toStringPiece(), status).singleUnits; in extractCompoundBaseUnit() 457 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, in extractConvertibility() 458 const MeasureUnitImpl &target, in extractConvertibility() [all …]
|
D | units_complexconverter.cpp | 25 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &targetUnit, in ComplexUnitsConverter() 34 MeasureUnitImpl *biggestUnit = &units_[0]->unitImpl; in ComplexUnitsConverter() 54 MeasureUnitImpl inputUnit = MeasureUnitImpl::forIdentifier(inputUnitIdentifier, status); in ComplexUnitsConverter() 55 MeasureUnitImpl outputUnits = MeasureUnitImpl::forIdentifier(outputUnitsIdentifier, status); in ComplexUnitsConverter() 63 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, in ComplexUnitsConverter() 64 const MeasureUnitImpl &outputUnits, in ComplexUnitsConverter() 76 void ComplexUnitsConverter::init(const MeasureUnitImpl &inputUnit, in init()
|
/third_party/skia/third_party/externals/icu/source/i18n/ |
D | measunit_impl.h | 187 class U_I18N_API MeasureUnitImpl : public UMemory { 189 MeasureUnitImpl() = default; 190 MeasureUnitImpl(MeasureUnitImpl &&other) = default; 192 MeasureUnitImpl(const MeasureUnitImpl &other, UErrorCode &status) = delete; 193 MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status); 195 MeasureUnitImpl &operator=(MeasureUnitImpl &&other) noexcept = default; 198 static inline const MeasureUnitImpl *get(const MeasureUnit &measureUnit) { in get() 210 static MeasureUnitImpl forIdentifier(StringPiece identifier, UErrorCode& status); 220 static const MeasureUnitImpl& forMeasureUnit( 221 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status); [all …]
|
D | units_converter.h | 101 const MeasureUnitImpl source; 102 const MeasureUnitImpl target; 109 ConversionRate(MeasureUnitImpl &&source, MeasureUnitImpl &&target) in ConversionRate() 119 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, 134 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, 135 const MeasureUnitImpl &target, 173 UnitsConverter(const MeasureUnitImpl &source, const MeasureUnitImpl &target, 183 …static int32_t compareTwoUnits(const MeasureUnitImpl &firstUnit, const MeasureUnitImpl &SecondUnit,
|
D | measunit_extra.cpp | 558 MeasureUnitImpl parse(UErrorCode& status) { in parse() 559 MeasureUnitImpl result; in parse() 879 MeasureUnitImpl temp; in forMeasureUnit() 880 const MeasureUnitImpl& impl = MeasureUnitImpl::forMeasureUnit(measureUnit, temp, status); in forMeasureUnit() 895 MeasureUnitImpl temp; in build() 958 MeasureUnitImpl::MeasureUnitImpl(const SingleUnitImpl &singleUnit, UErrorCode &status) { in MeasureUnitImpl() function in MeasureUnitImpl 962 MeasureUnitImpl MeasureUnitImpl::forIdentifier(StringPiece identifier, UErrorCode& status) { in forIdentifier() 966 const MeasureUnitImpl& MeasureUnitImpl::forMeasureUnit( in forMeasureUnit() 967 const MeasureUnit& measureUnit, MeasureUnitImpl& memory, UErrorCode& status) { in forMeasureUnit() 976 MeasureUnitImpl MeasureUnitImpl::forMeasureUnitMaybeCopy( in forMeasureUnitMaybeCopy() [all …]
|
D | units_complexconverter.h | 30 template class U_I18N_API MaybeStackArray<MeasureUnitImpl*, 8>; 31 template class U_I18N_API MemoryPool<MeasureUnitImpl, 8>; 32 template class U_I18N_API MaybeStackVector<MeasureUnitImpl, 8>; 66 ComplexUnitsConverter(const MeasureUnitImpl &targetUnit, const ConversionRates &ratesInfo, 92 ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, const MeasureUnitImpl &outputUnits, 120 … void init(const MeasureUnitImpl &inputUnit, const ConversionRates &ratesInfo, UErrorCode &status);
|
D | units_router.h | 40 MeasureUnitImpl outputUnit; 42 RouteResult(MaybeStackVector<Measure> measures, MeasureUnitImpl outputUnit) in RouteResult() 62 MeasureUnitImpl targetUnit; 65 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference() 70 ConverterPreference(const MeasureUnitImpl &source, const MeasureUnitImpl &complexTarget, in ConverterPreference()
|
D | units_converter.cpp | 219 Factor loadCompoundFactor(const MeasureUnitImpl &source, const ConversionRates &ratesInfo, in loadCompoundFactor() 252 UBool checkSimpleUnit(const MeasureUnitImpl &unit, UErrorCode &status) { in checkSimpleUnit() 276 void loadConversionRate(ConversionRate &conversionRate, const MeasureUnitImpl &source, in loadConversionRate() 277 const MeasureUnitImpl &target, Convertibility unitsState, in loadConversionRate() 341 const MeasureUnitImpl &shouldBeMerged, int32_t multiplier) { in mergeUnitsAndDimensions() 406 MeasureUnitImpl U_I18N_API extractCompoundBaseUnit(const MeasureUnitImpl &source, in extractCompoundBaseUnit() 410 MeasureUnitImpl result; in extractCompoundBaseUnit() 431 MeasureUnitImpl::forIdentifier(rateInfo->baseUnit.toStringPiece(), status).singleUnits; in extractCompoundBaseUnit() 457 Convertibility U_I18N_API extractConvertibility(const MeasureUnitImpl &source, in extractConvertibility() 458 const MeasureUnitImpl &target, in extractConvertibility() [all …]
|
D | units_complexconverter.cpp | 25 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &targetUnit, in ComplexUnitsConverter() 34 MeasureUnitImpl *biggestUnit = &units_[0]->unitImpl; in ComplexUnitsConverter() 54 MeasureUnitImpl inputUnit = MeasureUnitImpl::forIdentifier(inputUnitIdentifier, status); in ComplexUnitsConverter() 55 MeasureUnitImpl outputUnits = MeasureUnitImpl::forIdentifier(outputUnitsIdentifier, status); in ComplexUnitsConverter() 63 ComplexUnitsConverter::ComplexUnitsConverter(const MeasureUnitImpl &inputUnit, in ComplexUnitsConverter() 64 const MeasureUnitImpl &outputUnits, in ComplexUnitsConverter() 76 void ComplexUnitsConverter::init(const MeasureUnitImpl &inputUnit, in init()
|
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/impl/ |
D | UnitsTest.java | 22 import com.ibm.icu.impl.units.MeasureUnitImpl; 162 final MeasureUnitImpl inputImpl = MeasureUnitImpl.forIdentifier(input.getIdentifier()); 163 … final MeasureUnitImpl outputImpl = MeasureUnitImpl.forIdentifier(output.getIdentifier()); 225 MeasureUnitImpl input = MeasureUnitImpl.forIdentifier(testCase.inputUnit); 226 MeasureUnitImpl output = MeasureUnitImpl.forIdentifier(testCase.outputUnit); 246 MeasureUnitImpl source; 247 MeasureUnitImpl target; 251 this.source = MeasureUnitImpl.UnitsParser.parseForIdentifier(source); 252 this.target = MeasureUnitImpl.UnitsParser.parseForIdentifier(target); 341 MeasureUnitImpl sourceImpl = MeasureUnitImpl.forIdentifier(test.source); [all …]
|
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/units/ |
D | UnitsRouter.java | 50 this(MeasureUnitImpl.forIdentifier(inputUnitIdentifier), region, usage); in UnitsRouter() 53 public UnitsRouter(MeasureUnitImpl inputUnit, String region, String usage) { in UnitsRouter() 64 MeasureUnitImpl complexTargetUnitImpl = in UnitsRouter() 65 MeasureUnitImpl.UnitsParser.parseForIdentifier(preference.getUnit()); in UnitsRouter() 158 final MeasureUnitImpl targetUnit; 164 public ConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, in ConverterPreference() 170 public ConverterPreference(MeasureUnitImpl source, MeasureUnitImpl targetUnit, in ConverterPreference() 186 public final MeasureUnitImpl outputUnit; 188 …(ComplexUnitsConverter.ComplexConverterResult complexConverterResult, MeasureUnitImpl outputUnit) { in RouteResult()
|
D | MeasureUnitImpl.java | 17 public class MeasureUnitImpl { class 37 public MeasureUnitImpl() { in MeasureUnitImpl() method in MeasureUnitImpl 41 public MeasureUnitImpl(SingleUnitImpl singleUnit) { in MeasureUnitImpl() method in MeasureUnitImpl 53 public static MeasureUnitImpl forIdentifier(String identifier) { in forIdentifier() 60 public static MeasureUnitImpl forCurrencyCode(String currencyCode) { in forCurrencyCode() 61 MeasureUnitImpl result = new MeasureUnitImpl(); in forCurrencyCode() 66 public MeasureUnitImpl copy() { in copy() 67 MeasureUnitImpl result = new MeasureUnitImpl(); in copy() 101 result.add(new MeasureUnitImplWithIndex(i++, new MeasureUnitImpl(singleUnit))); in extractIndividualUnitsWithIndices() 366 MeasureUnitImpl unitImpl; [all …]
|
D | ConversionRates.java | 52 public UnitsConverter.Factor getFactorToBase(MeasureUnitImpl measureUnit) { in getFactorToBase() 63 …protected BigDecimal getOffset(MeasureUnitImpl source, MeasureUnitImpl target, UnitsConverter.Fact… in getOffset() 80 public MeasureUnitImpl extractCompoundBaseUnit(MeasureUnitImpl measureUnit) { in extractCompoundBaseUnit() 83 MeasureUnitImpl result = new MeasureUnitImpl(); in extractCompoundBaseUnit() 92 public ArrayList<SingleUnitImpl> extractBaseUnits(MeasureUnitImpl measureUnitImpl) { in extractBaseUnits() 112 MeasureUnitImpl targetImpl = MeasureUnitImpl.UnitsParser.parseForIdentifier(target); in extractBaseUnits() 128 private boolean checkSimpleUnit(MeasureUnitImpl measureUnitImpl) { in checkSimpleUnit()
|
D | ComplexUnitsConverter.java | 32 private List<MeasureUnitImpl.MeasureUnitImplWithIndex> units_; 33 private MeasureUnitImpl inputUnit_; 46 public ComplexUnitsConverter(MeasureUnitImpl targetUnit, ConversionRates conversionRates) { in ComplexUnitsConverter() 52 …MeasureUnitImpl.MeasureUnitImplComparator comparator = new MeasureUnitImpl.MeasureUnitImplComparat… in ComplexUnitsConverter() 54 for (MeasureUnitImpl.MeasureUnitImplWithIndex unitWithIndex : this.units_) { in ComplexUnitsConverter() 74 MeasureUnitImpl.forIdentifier(inputUnitIdentifier), in ComplexUnitsConverter() 75 MeasureUnitImpl.forIdentifier(outputUnitsIdentifier), in ComplexUnitsConverter() 91 public ComplexUnitsConverter(MeasureUnitImpl inputUnit, MeasureUnitImpl outputUnits, in ComplexUnitsConverter() 107 …Collections.reverseOrder(new MeasureUnitImpl.MeasureUnitImplWithIndexComparator(conversionRates))); in init()
|