Movatterモバイル変換


[0]ホーム

URL:


ICU 78.1  78.1
Public Member Functions |Static Public Member Functions |Protected Member Functions |Friends
icu::MeasureUnit Class Reference

A unit such as length, mass, volume, currency, etc.More...

#include <measunit.h>

Inheritance diagram for icu::MeasureUnit:

Public Member Functions

 MeasureUnit ()
 Default constructor.More...
 
 MeasureUnit (constMeasureUnit &other)
 Copy constructor.More...
 
 MeasureUnit (MeasureUnit &&other) noexcept
 Move constructor.More...
 
MeasureUnitoperator= (constMeasureUnit &other)
 Copy assignment operator.More...
 
MeasureUnitoperator= (MeasureUnit &&other) noexcept
 Move assignment operator.More...
 
virtualMeasureUnitclone () const
 Returns a polymorphic clone of this object.More...
 
virtual ~MeasureUnit ()
 Destructor.More...
 
virtual bool operator== (constUObject &other) const
 Equality operator.More...
 
bool operator!= (constUObject &other) const
 Inequality operator.More...
 
const char * getType () const
 Get the type.More...
 
const char * getSubtype () const
 Get the sub type.More...
 
const char * getIdentifier () const
 Get CLDR Unit Identifier for thisMeasureUnit, as defined in UTS 35.More...
 
UMeasureUnitComplexity getComplexity (UErrorCode &status) const
 Compute the complexity of the unit.More...
 
MeasureUnit withPrefix (UMeasurePrefix prefix,UErrorCode &status) const
 Creates aMeasureUnit which is this SINGLE unit augmented with the specified prefix.More...
 
UMeasurePrefix getPrefix (UErrorCode &status) const
 Returns the current SI or binary prefix of this SINGLE unit.More...
 
MeasureUnit withConstantDenominator (uint64_t denominator,UErrorCode &status) const
 Creates a newMeasureUnit with a specified constant denominator.More...
 
uint64_t getConstantDenominator (UErrorCode &status) const
 Retrieves the constant denominator for this COMPOUND unit.More...
 
MeasureUnit withDimensionality (int32_t dimensionality,UErrorCode &status) const
 Creates aMeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).More...
 
int32_t getDimensionality (UErrorCode &status) const
 Gets the dimensionality (power) of thisMeasureUnit.More...
 
MeasureUnit reciprocal (UErrorCode &status) const
 Gets the reciprocal of thisMeasureUnit, with the numerator and denominator flipped.More...
 
MeasureUnit product (constMeasureUnit &other,UErrorCode &status) const
 Gets the product of this unit with another unit.More...
 
std::pair<LocalArray<MeasureUnit >, int32_t > splitToSingleUnits (UErrorCode &status) const
 Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.More...
 
virtualUClassID getDynamicClassID () const override
 Returns a unique class ID POLYMORPHICALLY.More...
 
int32_t getOffset () const
 ICU use only.More...
 
- Public Member Functions inherited fromicu::UObject
virtual ~UObject ()
 Destructor.More...
 

Static Public Member Functions

staticMeasureUnit forIdentifier (StringPiece identifier,UErrorCode &status)
 Constructs aMeasureUnit from a CLDR Core Unit Identifier, as defined in UTS 35.More...
 
static int32_t getAvailable (MeasureUnit *destArray, int32_t destCapacity,UErrorCode &errorCode)
 getAvailable gets all of the available units.More...
 
static int32_t getAvailable (const char *type,MeasureUnit *destArray, int32_t destCapacity,UErrorCode &errorCode)
 getAvailable gets all of the available units for a specific type.More...
 
staticStringEnumerationgetAvailableTypes (UErrorCode &errorCode)
 getAvailableTypes gets all of the available types.More...
 
staticUClassID getStaticClassID ()
 Return the class ID for this class.More...
 
staticMeasureUnitcreateGForce (UErrorCode &status)
 Returns by pointer, unit of acceleration: g-force.More...
 
staticMeasureUnit getGForce ()
 Returns by value, unit of acceleration: g-force.More...
 
staticMeasureUnitcreateMeterPerSecondSquared (UErrorCode &status)
 Returns by pointer, unit of acceleration: meter-per-square-second.More...
 
staticMeasureUnit getMeterPerSecondSquared ()
 Returns by value, unit of acceleration: meter-per-square-second.More...
 
staticMeasureUnitcreateArcMinute (UErrorCode &status)
 Returns by pointer, unit of angle: arc-minute.More...
 
staticMeasureUnit getArcMinute ()
 Returns by value, unit of angle: arc-minute.More...
 
staticMeasureUnitcreateArcSecond (UErrorCode &status)
 Returns by pointer, unit of angle: arc-second.More...
 
staticMeasureUnit getArcSecond ()
 Returns by value, unit of angle: arc-second.More...
 
staticMeasureUnitcreateDegree (UErrorCode &status)
 Returns by pointer, unit of angle: degree.More...
 
staticMeasureUnit getDegree ()
 Returns by value, unit of angle: degree.More...
 
staticMeasureUnitcreateRadian (UErrorCode &status)
 Returns by pointer, unit of angle: radian.More...
 
staticMeasureUnit getRadian ()
 Returns by value, unit of angle: radian.More...
 
staticMeasureUnitcreateRevolutionAngle (UErrorCode &status)
 Returns by pointer, unit of angle: revolution.More...
 
staticMeasureUnit getRevolutionAngle ()
 Returns by value, unit of angle: revolution.More...
 
staticMeasureUnitcreateSteradian (UErrorCode &status)
 Returns by pointer, unit of angle: steradian.More...
 
staticMeasureUnit getSteradian ()
 Returns by value, unit of angle: steradian.More...
 
staticMeasureUnitcreateAcre (UErrorCode &status)
 Returns by pointer, unit of area: acre.More...
 
staticMeasureUnit getAcre ()
 Returns by value, unit of area: acre.More...
 
staticMeasureUnitcreateBuJp (UErrorCode &status)
 Returns by pointer, unit of area: bu-jp.More...
 
staticMeasureUnit getBuJp ()
 Returns by value, unit of area: bu-jp.More...
 
staticMeasureUnitcreateCho (UErrorCode &status)
 Returns by pointer, unit of area: cho.More...
 
staticMeasureUnit getCho ()
 Returns by value, unit of area: cho.More...
 
staticMeasureUnitcreateDunam (UErrorCode &status)
 Returns by pointer, unit of area: dunam.More...
 
staticMeasureUnit getDunam ()
 Returns by value, unit of area: dunam.More...
 
staticMeasureUnitcreateHectare (UErrorCode &status)
 Returns by pointer, unit of area: hectare.More...
 
staticMeasureUnit getHectare ()
 Returns by value, unit of area: hectare.More...
 
staticMeasureUnitcreateSeJp (UErrorCode &status)
 Returns by pointer, unit of area: se-jp.More...
 
staticMeasureUnit getSeJp ()
 Returns by value, unit of area: se-jp.More...
 
staticMeasureUnitcreateSquareCentimeter (UErrorCode &status)
 Returns by pointer, unit of area: square-centimeter.More...
 
staticMeasureUnit getSquareCentimeter ()
 Returns by value, unit of area: square-centimeter.More...
 
staticMeasureUnitcreateSquareFoot (UErrorCode &status)
 Returns by pointer, unit of area: square-foot.More...
 
staticMeasureUnit getSquareFoot ()
 Returns by value, unit of area: square-foot.More...
 
staticMeasureUnitcreateSquareInch (UErrorCode &status)
 Returns by pointer, unit of area: square-inch.More...
 
staticMeasureUnit getSquareInch ()
 Returns by value, unit of area: square-inch.More...
 
staticMeasureUnitcreateSquareKilometer (UErrorCode &status)
 Returns by pointer, unit of area: square-kilometer.More...
 
staticMeasureUnit getSquareKilometer ()
 Returns by value, unit of area: square-kilometer.More...
 
staticMeasureUnitcreateSquareMeter (UErrorCode &status)
 Returns by pointer, unit of area: square-meter.More...
 
staticMeasureUnit getSquareMeter ()
 Returns by value, unit of area: square-meter.More...
 
staticMeasureUnitcreateSquareMile (UErrorCode &status)
 Returns by pointer, unit of area: square-mile.More...
 
staticMeasureUnit getSquareMile ()
 Returns by value, unit of area: square-mile.More...
 
staticMeasureUnitcreateSquareYard (UErrorCode &status)
 Returns by pointer, unit of area: square-yard.More...
 
staticMeasureUnit getSquareYard ()
 Returns by value, unit of area: square-yard.More...
 
staticMeasureUnitcreateItem (UErrorCode &status)
 Returns by pointer, unit of concentr: item.More...
 
staticMeasureUnit getItem ()
 Returns by value, unit of concentr: item.More...
 
staticMeasureUnitcreateKarat (UErrorCode &status)
 Returns by pointer, unit of concentr: karat.More...
 
staticMeasureUnit getKarat ()
 Returns by value, unit of concentr: karat.More...
 
staticMeasureUnitcreateKatal (UErrorCode &status)
 Returns by pointer, unit of concentr: katal.More...
 
staticMeasureUnit getKatal ()
 Returns by value, unit of concentr: katal.More...
 
staticMeasureUnitcreateMilligramOfglucosePerDeciliter (UErrorCode &status)
 Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.More...
 
staticMeasureUnit getMilligramOfglucosePerDeciliter ()
 Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.More...
 
staticMeasureUnitcreateMilligramPerDeciliter (UErrorCode &status)
 Returns by pointer, unit of concentr: milligram-per-deciliter.More...
 
staticMeasureUnit getMilligramPerDeciliter ()
 Returns by value, unit of concentr: milligram-per-deciliter.More...
 
staticMeasureUnitcreateMillimolePerLiter (UErrorCode &status)
 Returns by pointer, unit of concentr: millimole-per-liter.More...
 
staticMeasureUnit getMillimolePerLiter ()
 Returns by value, unit of concentr: millimole-per-liter.More...
 
staticMeasureUnitcreateMole (UErrorCode &status)
 Returns by pointer, unit of concentr: mole.More...
 
staticMeasureUnit getMole ()
 Returns by value, unit of concentr: mole.More...
 
staticMeasureUnitcreateOfglucose (UErrorCode &status)
 Returns by pointer, unit of concentr: ofglucose.More...
 
staticMeasureUnit getOfglucose ()
 Returns by value, unit of concentr: ofglucose.More...
 
staticMeasureUnitcreatePart (UErrorCode &status)
 Returns by pointer, unit of concentr: part.More...
 
staticMeasureUnit getPart ()
 Returns by value, unit of concentr: part.More...
 
staticMeasureUnitcreatePartPer1E6 (UErrorCode &status)
 Returns by pointer, unit of concentr: part-per-1e6.More...
 
staticMeasureUnit getPartPer1E6 ()
 Returns by value, unit of concentr: part-per-1e6.More...
 
staticMeasureUnitcreatePartPerMillion (UErrorCode &status)
 Returns by pointer, unit of concentr: part-per-million.More...
 
staticMeasureUnit getPartPerMillion ()
 Returns by value, unit of concentr: part-per-million.More...
 
staticMeasureUnitcreatePartPer1E9 (UErrorCode &status)
 Returns by pointer, unit of concentr: part-per-1e9.More...
 
staticMeasureUnit getPartPer1E9 ()
 Returns by value, unit of concentr: part-per-1e9.More...
 
staticMeasureUnitcreatePercent (UErrorCode &status)
 Returns by pointer, unit of concentr: percent.More...
 
staticMeasureUnit getPercent ()
 Returns by value, unit of concentr: percent.More...
 
staticMeasureUnitcreatePermille (UErrorCode &status)
 Returns by pointer, unit of concentr: permille.More...
 
staticMeasureUnit getPermille ()
 Returns by value, unit of concentr: permille.More...
 
staticMeasureUnitcreatePermyriad (UErrorCode &status)
 Returns by pointer, unit of concentr: permyriad.More...
 
staticMeasureUnit getPermyriad ()
 Returns by value, unit of concentr: permyriad.More...
 
staticMeasureUnitcreateLiterPer100Kilometers (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-100-kilometer.More...
 
staticMeasureUnit getLiterPer100Kilometers ()
 Returns by value, unit of consumption: liter-per-100-kilometer.More...
 
staticMeasureUnitcreateLiterPerKilometer (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-kilometer.More...
 
staticMeasureUnit getLiterPerKilometer ()
 Returns by value, unit of consumption: liter-per-kilometer.More...
 
staticMeasureUnitcreateMilePerGallon (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon.More...
 
staticMeasureUnit getMilePerGallon ()
 Returns by value, unit of consumption: mile-per-gallon.More...
 
staticMeasureUnitcreateMilePerGallonImperial (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon-imperial.More...
 
staticMeasureUnit getMilePerGallonImperial ()
 Returns by value, unit of consumption: mile-per-gallon-imperial.More...
 
staticMeasureUnitcreateBit (UErrorCode &status)
 Returns by pointer, unit of digital: bit.More...
 
staticMeasureUnit getBit ()
 Returns by value, unit of digital: bit.More...
 
staticMeasureUnitcreateByte (UErrorCode &status)
 Returns by pointer, unit of digital: byte.More...
 
staticMeasureUnit getByte ()
 Returns by value, unit of digital: byte.More...
 
staticMeasureUnitcreateGigabit (UErrorCode &status)
 Returns by pointer, unit of digital: gigabit.More...
 
staticMeasureUnit getGigabit ()
 Returns by value, unit of digital: gigabit.More...
 
staticMeasureUnitcreateGigabyte (UErrorCode &status)
 Returns by pointer, unit of digital: gigabyte.More...
 
staticMeasureUnit getGigabyte ()
 Returns by value, unit of digital: gigabyte.More...
 
staticMeasureUnitcreateKilobit (UErrorCode &status)
 Returns by pointer, unit of digital: kilobit.More...
 
staticMeasureUnit getKilobit ()
 Returns by value, unit of digital: kilobit.More...
 
staticMeasureUnitcreateKilobyte (UErrorCode &status)
 Returns by pointer, unit of digital: kilobyte.More...
 
staticMeasureUnit getKilobyte ()
 Returns by value, unit of digital: kilobyte.More...
 
staticMeasureUnitcreateMegabit (UErrorCode &status)
 Returns by pointer, unit of digital: megabit.More...
 
staticMeasureUnit getMegabit ()
 Returns by value, unit of digital: megabit.More...
 
staticMeasureUnitcreateMegabyte (UErrorCode &status)
 Returns by pointer, unit of digital: megabyte.More...
 
staticMeasureUnit getMegabyte ()
 Returns by value, unit of digital: megabyte.More...
 
staticMeasureUnitcreatePetabyte (UErrorCode &status)
 Returns by pointer, unit of digital: petabyte.More...
 
staticMeasureUnit getPetabyte ()
 Returns by value, unit of digital: petabyte.More...
 
staticMeasureUnitcreateTerabit (UErrorCode &status)
 Returns by pointer, unit of digital: terabit.More...
 
staticMeasureUnit getTerabit ()
 Returns by value, unit of digital: terabit.More...
 
staticMeasureUnitcreateTerabyte (UErrorCode &status)
 Returns by pointer, unit of digital: terabyte.More...
 
staticMeasureUnit getTerabyte ()
 Returns by value, unit of digital: terabyte.More...
 
staticMeasureUnitcreateCentury (UErrorCode &status)
 Returns by pointer, unit of duration: century.More...
 
staticMeasureUnit getCentury ()
 Returns by value, unit of duration: century.More...
 
staticMeasureUnitcreateDay (UErrorCode &status)
 Returns by pointer, unit of duration: day.More...
 
staticMeasureUnit getDay ()
 Returns by value, unit of duration: day.More...
 
staticMeasureUnitcreateDayPerson (UErrorCode &status)
 Returns by pointer, unit of duration: day-person.More...
 
staticMeasureUnit getDayPerson ()
 Returns by value, unit of duration: day-person.More...
 
staticMeasureUnitcreateDecade (UErrorCode &status)
 Returns by pointer, unit of duration: decade.More...
 
staticMeasureUnit getDecade ()
 Returns by value, unit of duration: decade.More...
 
staticMeasureUnitcreateFortnight (UErrorCode &status)
 Returns by pointer, unit of duration: fortnight.More...
 
staticMeasureUnit getFortnight ()
 Returns by value, unit of duration: fortnight.More...
 
staticMeasureUnitcreateHour (UErrorCode &status)
 Returns by pointer, unit of duration: hour.More...
 
staticMeasureUnit getHour ()
 Returns by value, unit of duration: hour.More...
 
staticMeasureUnitcreateMicrosecond (UErrorCode &status)
 Returns by pointer, unit of duration: microsecond.More...
 
staticMeasureUnit getMicrosecond ()
 Returns by value, unit of duration: microsecond.More...
 
staticMeasureUnitcreateMillisecond (UErrorCode &status)
 Returns by pointer, unit of duration: millisecond.More...
 
staticMeasureUnit getMillisecond ()
 Returns by value, unit of duration: millisecond.More...
 
staticMeasureUnitcreateMinute (UErrorCode &status)
 Returns by pointer, unit of duration: minute.More...
 
staticMeasureUnit getMinute ()
 Returns by value, unit of duration: minute.More...
 
staticMeasureUnitcreateMonth (UErrorCode &status)
 Returns by pointer, unit of duration: month.More...
 
staticMeasureUnit getMonth ()
 Returns by value, unit of duration: month.More...
 
staticMeasureUnitcreateMonthPerson (UErrorCode &status)
 Returns by pointer, unit of duration: month-person.More...
 
staticMeasureUnit getMonthPerson ()
 Returns by value, unit of duration: month-person.More...
 
staticMeasureUnitcreateNanosecond (UErrorCode &status)
 Returns by pointer, unit of duration: nanosecond.More...
 
staticMeasureUnit getNanosecond ()
 Returns by value, unit of duration: nanosecond.More...
 
staticMeasureUnitcreateNight (UErrorCode &status)
 Returns by pointer, unit of duration: night.More...
 
staticMeasureUnit getNight ()
 Returns by value, unit of duration: night.More...
 
staticMeasureUnitcreateQuarter (UErrorCode &status)
 Returns by pointer, unit of duration: quarter.More...
 
staticMeasureUnit getQuarter ()
 Returns by value, unit of duration: quarter.More...
 
staticMeasureUnitcreateSecond (UErrorCode &status)
 Returns by pointer, unit of duration: second.More...
 
staticMeasureUnit getSecond ()
 Returns by value, unit of duration: second.More...
 
staticMeasureUnitcreateWeek (UErrorCode &status)
 Returns by pointer, unit of duration: week.More...
 
staticMeasureUnit getWeek ()
 Returns by value, unit of duration: week.More...
 
staticMeasureUnitcreateWeekPerson (UErrorCode &status)
 Returns by pointer, unit of duration: week-person.More...
 
staticMeasureUnit getWeekPerson ()
 Returns by value, unit of duration: week-person.More...
 
staticMeasureUnitcreateYear (UErrorCode &status)
 Returns by pointer, unit of duration: year.More...
 
staticMeasureUnit getYear ()
 Returns by value, unit of duration: year.More...
 
staticMeasureUnitcreateYearPerson (UErrorCode &status)
 Returns by pointer, unit of duration: year-person.More...
 
staticMeasureUnit getYearPerson ()
 Returns by value, unit of duration: year-person.More...
 
staticMeasureUnitcreateAmpere (UErrorCode &status)
 Returns by pointer, unit of electric: ampere.More...
 
staticMeasureUnit getAmpere ()
 Returns by value, unit of electric: ampere.More...
 
staticMeasureUnitcreateCoulomb (UErrorCode &status)
 Returns by pointer, unit of electric: coulomb.More...
 
staticMeasureUnit getCoulomb ()
 Returns by value, unit of electric: coulomb.More...
 
staticMeasureUnitcreateFarad (UErrorCode &status)
 Returns by pointer, unit of electric: farad.More...
 
staticMeasureUnit getFarad ()
 Returns by value, unit of electric: farad.More...
 
staticMeasureUnitcreateHenry (UErrorCode &status)
 Returns by pointer, unit of electric: henry.More...
 
staticMeasureUnit getHenry ()
 Returns by value, unit of electric: henry.More...
 
staticMeasureUnitcreateMilliampere (UErrorCode &status)
 Returns by pointer, unit of electric: milliampere.More...
 
staticMeasureUnit getMilliampere ()
 Returns by value, unit of electric: milliampere.More...
 
staticMeasureUnitcreateOhm (UErrorCode &status)
 Returns by pointer, unit of electric: ohm.More...
 
staticMeasureUnit getOhm ()
 Returns by value, unit of electric: ohm.More...
 
staticMeasureUnitcreateSiemens (UErrorCode &status)
 Returns by pointer, unit of electric: siemens.More...
 
staticMeasureUnit getSiemens ()
 Returns by value, unit of electric: siemens.More...
 
staticMeasureUnitcreateVolt (UErrorCode &status)
 Returns by pointer, unit of electric: volt.More...
 
staticMeasureUnit getVolt ()
 Returns by value, unit of electric: volt.More...
 
staticMeasureUnitcreateBecquerel (UErrorCode &status)
 Returns by pointer, unit of energy: becquerel.More...
 
staticMeasureUnit getBecquerel ()
 Returns by value, unit of energy: becquerel.More...
 
staticMeasureUnitcreateBritishThermalUnit (UErrorCode &status)
 Returns by pointer, unit of energy: british-thermal-unit.More...
 
staticMeasureUnit getBritishThermalUnit ()
 Returns by value, unit of energy: british-thermal-unit.More...
 
staticMeasureUnitcreateBritishThermalUnitIt (UErrorCode &status)
 Returns by pointer, unit of energy: british-thermal-unit-it.More...
 
staticMeasureUnit getBritishThermalUnitIt ()
 Returns by value, unit of energy: british-thermal-unit-it.More...
 
staticMeasureUnitcreateCalorie (UErrorCode &status)
 Returns by pointer, unit of energy: calorie.More...
 
staticMeasureUnit getCalorie ()
 Returns by value, unit of energy: calorie.More...
 
staticMeasureUnitcreateCalorieIt (UErrorCode &status)
 Returns by pointer, unit of energy: calorie-it.More...
 
staticMeasureUnit getCalorieIt ()
 Returns by value, unit of energy: calorie-it.More...
 
staticMeasureUnitcreateElectronvolt (UErrorCode &status)
 Returns by pointer, unit of energy: electronvolt.More...
 
staticMeasureUnit getElectronvolt ()
 Returns by value, unit of energy: electronvolt.More...
 
staticMeasureUnitcreateFoodcalorie (UErrorCode &status)
 Returns by pointer, unit of energy: foodcalorie.More...
 
staticMeasureUnit getFoodcalorie ()
 Returns by value, unit of energy: foodcalorie.More...
 
staticMeasureUnitcreateGray (UErrorCode &status)
 Returns by pointer, unit of energy: gray.More...
 
staticMeasureUnit getGray ()
 Returns by value, unit of energy: gray.More...
 
staticMeasureUnitcreateJoule (UErrorCode &status)
 Returns by pointer, unit of energy: joule.More...
 
staticMeasureUnit getJoule ()
 Returns by value, unit of energy: joule.More...
 
staticMeasureUnitcreateKilocalorie (UErrorCode &status)
 Returns by pointer, unit of energy: kilocalorie.More...
 
staticMeasureUnit getKilocalorie ()
 Returns by value, unit of energy: kilocalorie.More...
 
staticMeasureUnitcreateKilojoule (UErrorCode &status)
 Returns by pointer, unit of energy: kilojoule.More...
 
staticMeasureUnit getKilojoule ()
 Returns by value, unit of energy: kilojoule.More...
 
staticMeasureUnitcreateKilowattHour (UErrorCode &status)
 Returns by pointer, unit of energy: kilowatt-hour.More...
 
staticMeasureUnit getKilowattHour ()
 Returns by value, unit of energy: kilowatt-hour.More...
 
staticMeasureUnitcreateSievert (UErrorCode &status)
 Returns by pointer, unit of energy: sievert.More...
 
staticMeasureUnit getSievert ()
 Returns by value, unit of energy: sievert.More...
 
staticMeasureUnitcreateThermUs (UErrorCode &status)
 Returns by pointer, unit of energy: therm-us.More...
 
staticMeasureUnit getThermUs ()
 Returns by value, unit of energy: therm-us.More...
 
staticMeasureUnitcreateKilogramForce (UErrorCode &status)
 Returns by pointer, unit of force: kilogram-force.More...
 
staticMeasureUnit getKilogramForce ()
 Returns by value, unit of force: kilogram-force.More...
 
staticMeasureUnitcreateKilowattHourPer100Kilometer (UErrorCode &status)
 Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.More...
 
staticMeasureUnit getKilowattHourPer100Kilometer ()
 Returns by value, unit of force: kilowatt-hour-per-100-kilometer.More...
 
staticMeasureUnitcreateNewton (UErrorCode &status)
 Returns by pointer, unit of force: newton.More...
 
staticMeasureUnit getNewton ()
 Returns by value, unit of force: newton.More...
 
staticMeasureUnitcreatePoundForce (UErrorCode &status)
 Returns by pointer, unit of force: pound-force.More...
 
staticMeasureUnit getPoundForce ()
 Returns by value, unit of force: pound-force.More...
 
staticMeasureUnitcreateGigahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: gigahertz.More...
 
staticMeasureUnit getGigahertz ()
 Returns by value, unit of frequency: gigahertz.More...
 
staticMeasureUnitcreateHertz (UErrorCode &status)
 Returns by pointer, unit of frequency: hertz.More...
 
staticMeasureUnit getHertz ()
 Returns by value, unit of frequency: hertz.More...
 
staticMeasureUnitcreateKilohertz (UErrorCode &status)
 Returns by pointer, unit of frequency: kilohertz.More...
 
staticMeasureUnit getKilohertz ()
 Returns by value, unit of frequency: kilohertz.More...
 
staticMeasureUnitcreateMegahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: megahertz.More...
 
staticMeasureUnit getMegahertz ()
 Returns by value, unit of frequency: megahertz.More...
 
staticMeasureUnitcreateDot (UErrorCode &status)
 Returns by pointer, unit of graphics: dot.More...
 
staticMeasureUnit getDot ()
 Returns by value, unit of graphics: dot.More...
 
staticMeasureUnitcreateDotPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-centimeter.More...
 
staticMeasureUnit getDotPerCentimeter ()
 Returns by value, unit of graphics: dot-per-centimeter.More...
 
staticMeasureUnitcreateDotPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-inch.More...
 
staticMeasureUnit getDotPerInch ()
 Returns by value, unit of graphics: dot-per-inch.More...
 
staticMeasureUnitcreateEm (UErrorCode &status)
 Returns by pointer, unit of graphics: em.More...
 
staticMeasureUnit getEm ()
 Returns by value, unit of graphics: em.More...
 
staticMeasureUnitcreateMegapixel (UErrorCode &status)
 Returns by pointer, unit of graphics: megapixel.More...
 
staticMeasureUnit getMegapixel ()
 Returns by value, unit of graphics: megapixel.More...
 
staticMeasureUnitcreatePixel (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel.More...
 
staticMeasureUnit getPixel ()
 Returns by value, unit of graphics: pixel.More...
 
staticMeasureUnitcreatePixelPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-centimeter.More...
 
staticMeasureUnit getPixelPerCentimeter ()
 Returns by value, unit of graphics: pixel-per-centimeter.More...
 
staticMeasureUnitcreatePixelPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-inch.More...
 
staticMeasureUnit getPixelPerInch ()
 Returns by value, unit of graphics: pixel-per-inch.More...
 
staticMeasureUnitcreateAstronomicalUnit (UErrorCode &status)
 Returns by pointer, unit of length: astronomical-unit.More...
 
staticMeasureUnit getAstronomicalUnit ()
 Returns by value, unit of length: astronomical-unit.More...
 
staticMeasureUnitcreateCentimeter (UErrorCode &status)
 Returns by pointer, unit of length: centimeter.More...
 
staticMeasureUnit getCentimeter ()
 Returns by value, unit of length: centimeter.More...
 
staticMeasureUnitcreateChain (UErrorCode &status)
 Returns by pointer, unit of length: chain.More...
 
staticMeasureUnit getChain ()
 Returns by value, unit of length: chain.More...
 
staticMeasureUnitcreateDecimeter (UErrorCode &status)
 Returns by pointer, unit of length: decimeter.More...
 
staticMeasureUnit getDecimeter ()
 Returns by value, unit of length: decimeter.More...
 
staticMeasureUnitcreateEarthRadius (UErrorCode &status)
 Returns by pointer, unit of length: earth-radius.More...
 
staticMeasureUnit getEarthRadius ()
 Returns by value, unit of length: earth-radius.More...
 
staticMeasureUnitcreateFathom (UErrorCode &status)
 Returns by pointer, unit of length: fathom.More...
 
staticMeasureUnit getFathom ()
 Returns by value, unit of length: fathom.More...
 
staticMeasureUnitcreateFoot (UErrorCode &status)
 Returns by pointer, unit of length: foot.More...
 
staticMeasureUnit getFoot ()
 Returns by value, unit of length: foot.More...
 
staticMeasureUnitcreateFurlong (UErrorCode &status)
 Returns by pointer, unit of length: furlong.More...
 
staticMeasureUnit getFurlong ()
 Returns by value, unit of length: furlong.More...
 
staticMeasureUnitcreateInch (UErrorCode &status)
 Returns by pointer, unit of length: inch.More...
 
staticMeasureUnit getInch ()
 Returns by value, unit of length: inch.More...
 
staticMeasureUnitcreateJoJp (UErrorCode &status)
 Returns by pointer, unit of length: jo-jp.More...
 
staticMeasureUnit getJoJp ()
 Returns by value, unit of length: jo-jp.More...
 
staticMeasureUnitcreateKen (UErrorCode &status)
 Returns by pointer, unit of length: ken.More...
 
staticMeasureUnit getKen ()
 Returns by value, unit of length: ken.More...
 
staticMeasureUnitcreateKilometer (UErrorCode &status)
 Returns by pointer, unit of length: kilometer.More...
 
staticMeasureUnit getKilometer ()
 Returns by value, unit of length: kilometer.More...
 
staticMeasureUnitcreateLightYear (UErrorCode &status)
 Returns by pointer, unit of length: light-year.More...
 
staticMeasureUnit getLightYear ()
 Returns by value, unit of length: light-year.More...
 
staticMeasureUnitcreateMeter (UErrorCode &status)
 Returns by pointer, unit of length: meter.More...
 
staticMeasureUnit getMeter ()
 Returns by value, unit of length: meter.More...
 
staticMeasureUnitcreateMicrometer (UErrorCode &status)
 Returns by pointer, unit of length: micrometer.More...
 
staticMeasureUnit getMicrometer ()
 Returns by value, unit of length: micrometer.More...
 
staticMeasureUnitcreateMile (UErrorCode &status)
 Returns by pointer, unit of length: mile.More...
 
staticMeasureUnit getMile ()
 Returns by value, unit of length: mile.More...
 
staticMeasureUnitcreateMileScandinavian (UErrorCode &status)
 Returns by pointer, unit of length: mile-scandinavian.More...
 
staticMeasureUnit getMileScandinavian ()
 Returns by value, unit of length: mile-scandinavian.More...
 
staticMeasureUnitcreateMillimeter (UErrorCode &status)
 Returns by pointer, unit of length: millimeter.More...
 
staticMeasureUnit getMillimeter ()
 Returns by value, unit of length: millimeter.More...
 
staticMeasureUnitcreateNanometer (UErrorCode &status)
 Returns by pointer, unit of length: nanometer.More...
 
staticMeasureUnit getNanometer ()
 Returns by value, unit of length: nanometer.More...
 
staticMeasureUnitcreateNauticalMile (UErrorCode &status)
 Returns by pointer, unit of length: nautical-mile.More...
 
staticMeasureUnit getNauticalMile ()
 Returns by value, unit of length: nautical-mile.More...
 
staticMeasureUnitcreateParsec (UErrorCode &status)
 Returns by pointer, unit of length: parsec.More...
 
staticMeasureUnit getParsec ()
 Returns by value, unit of length: parsec.More...
 
staticMeasureUnitcreatePicometer (UErrorCode &status)
 Returns by pointer, unit of length: picometer.More...
 
staticMeasureUnit getPicometer ()
 Returns by value, unit of length: picometer.More...
 
staticMeasureUnitcreatePoint (UErrorCode &status)
 Returns by pointer, unit of length: point.More...
 
staticMeasureUnit getPoint ()
 Returns by value, unit of length: point.More...
 
staticMeasureUnitcreateRiJp (UErrorCode &status)
 Returns by pointer, unit of length: ri-jp.More...
 
staticMeasureUnit getRiJp ()
 Returns by value, unit of length: ri-jp.More...
 
staticMeasureUnitcreateRin (UErrorCode &status)
 Returns by pointer, unit of length: rin.More...
 
staticMeasureUnit getRin ()
 Returns by value, unit of length: rin.More...
 
staticMeasureUnitcreateRod (UErrorCode &status)
 Returns by pointer, unit of length: rod.More...
 
staticMeasureUnit getRod ()
 Returns by value, unit of length: rod.More...
 
staticMeasureUnitcreateShakuCloth (UErrorCode &status)
 Returns by pointer, unit of length: shaku-cloth.More...
 
staticMeasureUnit getShakuCloth ()
 Returns by value, unit of length: shaku-cloth.More...
 
staticMeasureUnitcreateShakuLength (UErrorCode &status)
 Returns by pointer, unit of length: shaku-length.More...
 
staticMeasureUnit getShakuLength ()
 Returns by value, unit of length: shaku-length.More...
 
staticMeasureUnitcreateSolarRadius (UErrorCode &status)
 Returns by pointer, unit of length: solar-radius.More...
 
staticMeasureUnit getSolarRadius ()
 Returns by value, unit of length: solar-radius.More...
 
staticMeasureUnitcreateSun (UErrorCode &status)
 Returns by pointer, unit of length: sun.More...
 
staticMeasureUnit getSun ()
 Returns by value, unit of length: sun.More...
 
staticMeasureUnitcreateYard (UErrorCode &status)
 Returns by pointer, unit of length: yard.More...
 
staticMeasureUnit getYard ()
 Returns by value, unit of length: yard.More...
 
staticMeasureUnitcreateCandela (UErrorCode &status)
 Returns by pointer, unit of light: candela.More...
 
staticMeasureUnit getCandela ()
 Returns by value, unit of light: candela.More...
 
staticMeasureUnitcreateLumen (UErrorCode &status)
 Returns by pointer, unit of light: lumen.More...
 
staticMeasureUnit getLumen ()
 Returns by value, unit of light: lumen.More...
 
staticMeasureUnitcreateLux (UErrorCode &status)
 Returns by pointer, unit of light: lux.More...
 
staticMeasureUnit getLux ()
 Returns by value, unit of light: lux.More...
 
staticMeasureUnitcreateSolarLuminosity (UErrorCode &status)
 Returns by pointer, unit of light: solar-luminosity.More...
 
staticMeasureUnit getSolarLuminosity ()
 Returns by value, unit of light: solar-luminosity.More...
 
staticMeasureUnitcreateTesla (UErrorCode &status)
 Returns by pointer, unit of magnetic: tesla.More...
 
staticMeasureUnit getTesla ()
 Returns by value, unit of magnetic: tesla.More...
 
staticMeasureUnitcreateWeber (UErrorCode &status)
 Returns by pointer, unit of magnetic: weber.More...
 
staticMeasureUnit getWeber ()
 Returns by value, unit of magnetic: weber.More...
 
staticMeasureUnitcreateCarat (UErrorCode &status)
 Returns by pointer, unit of mass: carat.More...
 
staticMeasureUnit getCarat ()
 Returns by value, unit of mass: carat.More...
 
staticMeasureUnitcreateDalton (UErrorCode &status)
 Returns by pointer, unit of mass: dalton.More...
 
staticMeasureUnit getDalton ()
 Returns by value, unit of mass: dalton.More...
 
staticMeasureUnitcreateEarthMass (UErrorCode &status)
 Returns by pointer, unit of mass: earth-mass.More...
 
staticMeasureUnit getEarthMass ()
 Returns by value, unit of mass: earth-mass.More...
 
staticMeasureUnitcreateFun (UErrorCode &status)
 Returns by pointer, unit of mass: fun.More...
 
staticMeasureUnit getFun ()
 Returns by value, unit of mass: fun.More...
 
staticMeasureUnitcreateGrain (UErrorCode &status)
 Returns by pointer, unit of mass: grain.More...
 
staticMeasureUnit getGrain ()
 Returns by value, unit of mass: grain.More...
 
staticMeasureUnitcreateGram (UErrorCode &status)
 Returns by pointer, unit of mass: gram.More...
 
staticMeasureUnit getGram ()
 Returns by value, unit of mass: gram.More...
 
staticMeasureUnitcreateKilogram (UErrorCode &status)
 Returns by pointer, unit of mass: kilogram.More...
 
staticMeasureUnit getKilogram ()
 Returns by value, unit of mass: kilogram.More...
 
staticMeasureUnitcreateMicrogram (UErrorCode &status)
 Returns by pointer, unit of mass: microgram.More...
 
staticMeasureUnit getMicrogram ()
 Returns by value, unit of mass: microgram.More...
 
staticMeasureUnitcreateMilligram (UErrorCode &status)
 Returns by pointer, unit of mass: milligram.More...
 
staticMeasureUnit getMilligram ()
 Returns by value, unit of mass: milligram.More...
 
staticMeasureUnitcreateOunce (UErrorCode &status)
 Returns by pointer, unit of mass: ounce.More...
 
staticMeasureUnit getOunce ()
 Returns by value, unit of mass: ounce.More...
 
staticMeasureUnitcreateOunceTroy (UErrorCode &status)
 Returns by pointer, unit of mass: ounce-troy.More...
 
staticMeasureUnit getOunceTroy ()
 Returns by value, unit of mass: ounce-troy.More...
 
staticMeasureUnitcreatePound (UErrorCode &status)
 Returns by pointer, unit of mass: pound.More...
 
staticMeasureUnit getPound ()
 Returns by value, unit of mass: pound.More...
 
staticMeasureUnitcreateSlug (UErrorCode &status)
 Returns by pointer, unit of mass: slug.More...
 
staticMeasureUnit getSlug ()
 Returns by value, unit of mass: slug.More...
 
staticMeasureUnitcreateSolarMass (UErrorCode &status)
 Returns by pointer, unit of mass: solar-mass.More...
 
staticMeasureUnit getSolarMass ()
 Returns by value, unit of mass: solar-mass.More...
 
staticMeasureUnitcreateStone (UErrorCode &status)
 Returns by pointer, unit of mass: stone.More...
 
staticMeasureUnit getStone ()
 Returns by value, unit of mass: stone.More...
 
staticMeasureUnitcreateTon (UErrorCode &status)
 Returns by pointer, unit of mass: ton.More...
 
staticMeasureUnit getTon ()
 Returns by value, unit of mass: ton.More...
 
staticMeasureUnitcreateTonne (UErrorCode &status)
 Returns by pointer, unit of mass: tonne.More...
 
staticMeasureUnit getTonne ()
 Returns by value, unit of mass: tonne.More...
 
staticMeasureUnitcreateMetricTon (UErrorCode &status)
 Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).More...
 
staticMeasureUnit getMetricTon ()
 Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).More...
 
staticMeasureUnitcreateGigawatt (UErrorCode &status)
 Returns by pointer, unit of power: gigawatt.More...
 
staticMeasureUnit getGigawatt ()
 Returns by value, unit of power: gigawatt.More...
 
staticMeasureUnitcreateHorsepower (UErrorCode &status)
 Returns by pointer, unit of power: horsepower.More...
 
staticMeasureUnit getHorsepower ()
 Returns by value, unit of power: horsepower.More...
 
staticMeasureUnitcreateKilowatt (UErrorCode &status)
 Returns by pointer, unit of power: kilowatt.More...
 
staticMeasureUnit getKilowatt ()
 Returns by value, unit of power: kilowatt.More...
 
staticMeasureUnitcreateMegawatt (UErrorCode &status)
 Returns by pointer, unit of power: megawatt.More...
 
staticMeasureUnit getMegawatt ()
 Returns by value, unit of power: megawatt.More...
 
staticMeasureUnitcreateMilliwatt (UErrorCode &status)
 Returns by pointer, unit of power: milliwatt.More...
 
staticMeasureUnit getMilliwatt ()
 Returns by value, unit of power: milliwatt.More...
 
staticMeasureUnitcreateWatt (UErrorCode &status)
 Returns by pointer, unit of power: watt.More...
 
staticMeasureUnit getWatt ()
 Returns by value, unit of power: watt.More...
 
staticMeasureUnitcreateAtmosphere (UErrorCode &status)
 Returns by pointer, unit of pressure: atmosphere.More...
 
staticMeasureUnit getAtmosphere ()
 Returns by value, unit of pressure: atmosphere.More...
 
staticMeasureUnitcreateBar (UErrorCode &status)
 Returns by pointer, unit of pressure: bar.More...
 
staticMeasureUnit getBar ()
 Returns by value, unit of pressure: bar.More...
 
staticMeasureUnitcreateGasolineEnergyDensity (UErrorCode &status)
 Returns by pointer, unit of pressure: gasoline-energy-density.More...
 
staticMeasureUnit getGasolineEnergyDensity ()
 Returns by value, unit of pressure: gasoline-energy-density.More...
 
staticMeasureUnitcreateHectopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: hectopascal.More...
 
staticMeasureUnit getHectopascal ()
 Returns by value, unit of pressure: hectopascal.More...
 
staticMeasureUnitcreateInchHg (UErrorCode &status)
 Returns by pointer, unit of pressure: inch-ofhg.More...
 
staticMeasureUnit getInchHg ()
 Returns by value, unit of pressure: inch-ofhg.More...
 
staticMeasureUnitcreateKilopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: kilopascal.More...
 
staticMeasureUnit getKilopascal ()
 Returns by value, unit of pressure: kilopascal.More...
 
staticMeasureUnitcreateMegapascal (UErrorCode &status)
 Returns by pointer, unit of pressure: megapascal.More...
 
staticMeasureUnit getMegapascal ()
 Returns by value, unit of pressure: megapascal.More...
 
staticMeasureUnitcreateMillibar (UErrorCode &status)
 Returns by pointer, unit of pressure: millibar.More...
 
staticMeasureUnit getMillibar ()
 Returns by value, unit of pressure: millibar.More...
 
staticMeasureUnitcreateMillimeterOfMercury (UErrorCode &status)
 Returns by pointer, unit of pressure: millimeter-ofhg.More...
 
staticMeasureUnit getMillimeterOfMercury ()
 Returns by value, unit of pressure: millimeter-ofhg.More...
 
staticMeasureUnitcreateOfhg (UErrorCode &status)
 Returns by pointer, unit of pressure: ofhg.More...
 
staticMeasureUnit getOfhg ()
 Returns by value, unit of pressure: ofhg.More...
 
staticMeasureUnitcreatePascal (UErrorCode &status)
 Returns by pointer, unit of pressure: pascal.More...
 
staticMeasureUnit getPascal ()
 Returns by value, unit of pressure: pascal.More...
 
staticMeasureUnitcreatePoundPerSquareInch (UErrorCode &status)
 Returns by pointer, unit of pressure: pound-force-per-square-inch.More...
 
staticMeasureUnit getPoundPerSquareInch ()
 Returns by value, unit of pressure: pound-force-per-square-inch.More...
 
staticMeasureUnitcreateBeaufort (UErrorCode &status)
 Returns by pointer, unit of speed: beaufort.More...
 
staticMeasureUnit getBeaufort ()
 Returns by value, unit of speed: beaufort.More...
 
staticMeasureUnitcreateKilometerPerHour (UErrorCode &status)
 Returns by pointer, unit of speed: kilometer-per-hour.More...
 
staticMeasureUnit getKilometerPerHour ()
 Returns by value, unit of speed: kilometer-per-hour.More...
 
staticMeasureUnitcreateKnot (UErrorCode &status)
 Returns by pointer, unit of speed: knot.More...
 
staticMeasureUnit getKnot ()
 Returns by value, unit of speed: knot.More...
 
staticMeasureUnitcreateLightSpeed (UErrorCode &status)
 Returns by pointer, unit of speed: light-speed.More...
 
staticMeasureUnit getLightSpeed ()
 Returns by value, unit of speed: light-speed.More...
 
staticMeasureUnitcreateMeterPerSecond (UErrorCode &status)
 Returns by pointer, unit of speed: meter-per-second.More...
 
staticMeasureUnit getMeterPerSecond ()
 Returns by value, unit of speed: meter-per-second.More...
 
staticMeasureUnitcreateMilePerHour (UErrorCode &status)
 Returns by pointer, unit of speed: mile-per-hour.More...
 
staticMeasureUnit getMilePerHour ()
 Returns by value, unit of speed: mile-per-hour.More...
 
staticMeasureUnitcreateCelsius (UErrorCode &status)
 Returns by pointer, unit of temperature: celsius.More...
 
staticMeasureUnit getCelsius ()
 Returns by value, unit of temperature: celsius.More...
 
staticMeasureUnitcreateFahrenheit (UErrorCode &status)
 Returns by pointer, unit of temperature: fahrenheit.More...
 
staticMeasureUnit getFahrenheit ()
 Returns by value, unit of temperature: fahrenheit.More...
 
staticMeasureUnitcreateGenericTemperature (UErrorCode &status)
 Returns by pointer, unit of temperature: generic.More...
 
staticMeasureUnit getGenericTemperature ()
 Returns by value, unit of temperature: generic.More...
 
staticMeasureUnitcreateKelvin (UErrorCode &status)
 Returns by pointer, unit of temperature: kelvin.More...
 
staticMeasureUnit getKelvin ()
 Returns by value, unit of temperature: kelvin.More...
 
staticMeasureUnitcreateRankine (UErrorCode &status)
 Returns by pointer, unit of temperature: rankine.More...
 
staticMeasureUnit getRankine ()
 Returns by value, unit of temperature: rankine.More...
 
staticMeasureUnitcreateNewtonMeter (UErrorCode &status)
 Returns by pointer, unit of torque: newton-meter.More...
 
staticMeasureUnit getNewtonMeter ()
 Returns by value, unit of torque: newton-meter.More...
 
staticMeasureUnitcreatePoundFoot (UErrorCode &status)
 Returns by pointer, unit of torque: pound-force-foot.More...
 
staticMeasureUnit getPoundFoot ()
 Returns by value, unit of torque: pound-force-foot.More...
 
staticMeasureUnitcreateAcreFoot (UErrorCode &status)
 Returns by pointer, unit of volume: acre-foot.More...
 
staticMeasureUnit getAcreFoot ()
 Returns by value, unit of volume: acre-foot.More...
 
staticMeasureUnitcreateBarrel (UErrorCode &status)
 Returns by pointer, unit of volume: barrel.More...
 
staticMeasureUnit getBarrel ()
 Returns by value, unit of volume: barrel.More...
 
staticMeasureUnitcreateBushel (UErrorCode &status)
 Returns by pointer, unit of volume: bushel.More...
 
staticMeasureUnit getBushel ()
 Returns by value, unit of volume: bushel.More...
 
staticMeasureUnitcreateCentiliter (UErrorCode &status)
 Returns by pointer, unit of volume: centiliter.More...
 
staticMeasureUnit getCentiliter ()
 Returns by value, unit of volume: centiliter.More...
 
staticMeasureUnitcreateCubicCentimeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-centimeter.More...
 
staticMeasureUnit getCubicCentimeter ()
 Returns by value, unit of volume: cubic-centimeter.More...
 
staticMeasureUnitcreateCubicFoot (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-foot.More...
 
staticMeasureUnit getCubicFoot ()
 Returns by value, unit of volume: cubic-foot.More...
 
staticMeasureUnitcreateCubicInch (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-inch.More...
 
staticMeasureUnit getCubicInch ()
 Returns by value, unit of volume: cubic-inch.More...
 
staticMeasureUnitcreateCubicKilometer (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-kilometer.More...
 
staticMeasureUnit getCubicKilometer ()
 Returns by value, unit of volume: cubic-kilometer.More...
 
staticMeasureUnitcreateCubicMeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-meter.More...
 
staticMeasureUnit getCubicMeter ()
 Returns by value, unit of volume: cubic-meter.More...
 
staticMeasureUnitcreateCubicMile (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-mile.More...
 
staticMeasureUnit getCubicMile ()
 Returns by value, unit of volume: cubic-mile.More...
 
staticMeasureUnitcreateCubicYard (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-yard.More...
 
staticMeasureUnit getCubicYard ()
 Returns by value, unit of volume: cubic-yard.More...
 
staticMeasureUnitcreateCup (UErrorCode &status)
 Returns by pointer, unit of volume: cup.More...
 
staticMeasureUnit getCup ()
 Returns by value, unit of volume: cup.More...
 
staticMeasureUnitcreateCupImperial (UErrorCode &status)
 Returns by pointer, unit of volume: cup-imperial.More...
 
staticMeasureUnit getCupImperial ()
 Returns by value, unit of volume: cup-imperial.More...
 
staticMeasureUnitcreateCupJp (UErrorCode &status)
 Returns by pointer, unit of volume: cup-jp.More...
 
staticMeasureUnit getCupJp ()
 Returns by value, unit of volume: cup-jp.More...
 
staticMeasureUnitcreateCupMetric (UErrorCode &status)
 Returns by pointer, unit of volume: cup-metric.More...
 
staticMeasureUnit getCupMetric ()
 Returns by value, unit of volume: cup-metric.More...
 
staticMeasureUnitcreateDeciliter (UErrorCode &status)
 Returns by pointer, unit of volume: deciliter.More...
 
staticMeasureUnit getDeciliter ()
 Returns by value, unit of volume: deciliter.More...
 
staticMeasureUnitcreateDessertSpoon (UErrorCode &status)
 Returns by pointer, unit of volume: dessert-spoon.More...
 
staticMeasureUnit getDessertSpoon ()
 Returns by value, unit of volume: dessert-spoon.More...
 
staticMeasureUnitcreateDessertSpoonImperial (UErrorCode &status)
 Returns by pointer, unit of volume: dessert-spoon-imperial.More...
 
staticMeasureUnit getDessertSpoonImperial ()
 Returns by value, unit of volume: dessert-spoon-imperial.More...
 
staticMeasureUnitcreateDram (UErrorCode &status)
 Returns by pointer, unit of volume: dram.More...
 
staticMeasureUnit getDram ()
 Returns by value, unit of volume: dram.More...
 
staticMeasureUnitcreateDrop (UErrorCode &status)
 Returns by pointer, unit of volume: drop.More...
 
staticMeasureUnit getDrop ()
 Returns by value, unit of volume: drop.More...
 
staticMeasureUnitcreateFluidOunce (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce.More...
 
staticMeasureUnit getFluidOunce ()
 Returns by value, unit of volume: fluid-ounce.More...
 
staticMeasureUnitcreateFluidOunceImperial (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce-imperial.More...
 
staticMeasureUnit getFluidOunceImperial ()
 Returns by value, unit of volume: fluid-ounce-imperial.More...
 
staticMeasureUnitcreateFluidOunceMetric (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce-metric.More...
 
staticMeasureUnit getFluidOunceMetric ()
 Returns by value, unit of volume: fluid-ounce-metric.More...
 
staticMeasureUnitcreateGallon (UErrorCode &status)
 Returns by pointer, unit of volume: gallon.More...
 
staticMeasureUnit getGallon ()
 Returns by value, unit of volume: gallon.More...
 
staticMeasureUnitcreateGallonImperial (UErrorCode &status)
 Returns by pointer, unit of volume: gallon-imperial.More...
 
staticMeasureUnit getGallonImperial ()
 Returns by value, unit of volume: gallon-imperial.More...
 
staticMeasureUnitcreateHectoliter (UErrorCode &status)
 Returns by pointer, unit of volume: hectoliter.More...
 
staticMeasureUnit getHectoliter ()
 Returns by value, unit of volume: hectoliter.More...
 
staticMeasureUnitcreateJigger (UErrorCode &status)
 Returns by pointer, unit of volume: jigger.More...
 
staticMeasureUnit getJigger ()
 Returns by value, unit of volume: jigger.More...
 
staticMeasureUnitcreateKoku (UErrorCode &status)
 Returns by pointer, unit of volume: koku.More...
 
staticMeasureUnit getKoku ()
 Returns by value, unit of volume: koku.More...
 
staticMeasureUnitcreateKosaji (UErrorCode &status)
 Returns by pointer, unit of volume: kosaji.More...
 
staticMeasureUnit getKosaji ()
 Returns by value, unit of volume: kosaji.More...
 
staticMeasureUnitcreateLiter (UErrorCode &status)
 Returns by pointer, unit of volume: liter.More...
 
staticMeasureUnit getLiter ()
 Returns by value, unit of volume: liter.More...
 
staticMeasureUnitcreateMegaliter (UErrorCode &status)
 Returns by pointer, unit of volume: megaliter.More...
 
staticMeasureUnit getMegaliter ()
 Returns by value, unit of volume: megaliter.More...
 
staticMeasureUnitcreateMilliliter (UErrorCode &status)
 Returns by pointer, unit of volume: milliliter.More...
 
staticMeasureUnit getMilliliter ()
 Returns by value, unit of volume: milliliter.More...
 
staticMeasureUnitcreateOsaji (UErrorCode &status)
 Returns by pointer, unit of volume: osaji.More...
 
staticMeasureUnit getOsaji ()
 Returns by value, unit of volume: osaji.More...
 
staticMeasureUnitcreatePinch (UErrorCode &status)
 Returns by pointer, unit of volume: pinch.More...
 
staticMeasureUnit getPinch ()
 Returns by value, unit of volume: pinch.More...
 
staticMeasureUnitcreatePint (UErrorCode &status)
 Returns by pointer, unit of volume: pint.More...
 
staticMeasureUnit getPint ()
 Returns by value, unit of volume: pint.More...
 
staticMeasureUnitcreatePintImperial (UErrorCode &status)
 Returns by pointer, unit of volume: pint-imperial.More...
 
staticMeasureUnit getPintImperial ()
 Returns by value, unit of volume: pint-imperial.More...
 
staticMeasureUnitcreatePintMetric (UErrorCode &status)
 Returns by pointer, unit of volume: pint-metric.More...
 
staticMeasureUnit getPintMetric ()
 Returns by value, unit of volume: pint-metric.More...
 
staticMeasureUnitcreateQuart (UErrorCode &status)
 Returns by pointer, unit of volume: quart.More...
 
staticMeasureUnit getQuart ()
 Returns by value, unit of volume: quart.More...
 
staticMeasureUnitcreateQuartImperial (UErrorCode &status)
 Returns by pointer, unit of volume: quart-imperial.More...
 
staticMeasureUnit getQuartImperial ()
 Returns by value, unit of volume: quart-imperial.More...
 
staticMeasureUnitcreateSai (UErrorCode &status)
 Returns by pointer, unit of volume: sai.More...
 
staticMeasureUnit getSai ()
 Returns by value, unit of volume: sai.More...
 
staticMeasureUnitcreateShaku (UErrorCode &status)
 Returns by pointer, unit of volume: shaku.More...
 
staticMeasureUnit getShaku ()
 Returns by value, unit of volume: shaku.More...
 
staticMeasureUnitcreateTablespoon (UErrorCode &status)
 Returns by pointer, unit of volume: tablespoon.More...
 
staticMeasureUnit getTablespoon ()
 Returns by value, unit of volume: tablespoon.More...
 
staticMeasureUnitcreateTeaspoon (UErrorCode &status)
 Returns by pointer, unit of volume: teaspoon.More...
 
staticMeasureUnit getTeaspoon ()
 Returns by value, unit of volume: teaspoon.More...
 
staticMeasureUnitcreateToJp (UErrorCode &status)
 Returns by pointer, unit of volume: to-jp.More...
 
staticMeasureUnit getToJp ()
 Returns by value, unit of volume: to-jp.More...
 

Protected Member Functions

void initTime (const char *timeId)
 For ICU use only.More...
 
void initCurrency (StringPiece isoCurrency)
 For ICU use only.More...
 

Friends

class MeasureUnitImpl
 
class number::impl::LongNameHandler
 

Detailed Description

A unit such as length, mass, volume, currency, etc.

A unit is coupled with a numeric amount to produce aMeasure.

Author
Alan Liu
Stable:
ICU 3.0

Definition at line405 of filemeasunit.h.

Constructor & Destructor Documentation

◆ MeasureUnit()[1/3]

icu::MeasureUnit::MeasureUnit()

Default constructor.

Populates the instance with the base dimensionless unit, which means that there will be no unit on the formatted number.

Stable:
ICU 3.0

◆ MeasureUnit()[2/3]

icu::MeasureUnit::MeasureUnit(constMeasureUnitother)

Copy constructor.

Stable:
ICU 3.0

◆ MeasureUnit()[3/3]

icu::MeasureUnit::MeasureUnit(MeasureUnit && other)
noexcept

Move constructor.

Stable:
ICU 67

◆ ~MeasureUnit()

virtual icu::MeasureUnit::~MeasureUnit()
virtual

Destructor.

Stable:
ICU 3.0

Member Function Documentation

◆ clone()

virtualMeasureUnit* icu::MeasureUnit::clone() const
virtual

Returns a polymorphic clone of this object.

The result will have the same class as returned bygetDynamicClassID().

Stable:
ICU 3.0

Reimplemented inicu::TimeUnit, andicu::CurrencyUnit.

◆ createAcre()

staticMeasureUnit* icu::MeasureUnit::createAcre(UErrorCodestatus)
static

Returns by pointer, unit of area: acre.

Caller owns returned value and must free it. Also seegetAcre().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createAcreFoot()

staticMeasureUnit* icu::MeasureUnit::createAcreFoot(UErrorCodestatus)
static

Returns by pointer, unit of volume: acre-foot.

Caller owns returned value and must free it. Also seegetAcreFoot().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createAmpere()

staticMeasureUnit* icu::MeasureUnit::createAmpere(UErrorCodestatus)
static

Returns by pointer, unit of electric: ampere.

Caller owns returned value and must free it. Also seegetAmpere().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createArcMinute()

staticMeasureUnit* icu::MeasureUnit::createArcMinute(UErrorCodestatus)
static

Returns by pointer, unit of angle: arc-minute.

Caller owns returned value and must free it. Also seegetArcMinute().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createArcSecond()

staticMeasureUnit* icu::MeasureUnit::createArcSecond(UErrorCodestatus)
static

Returns by pointer, unit of angle: arc-second.

Caller owns returned value and must free it. Also seegetArcSecond().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createAstronomicalUnit()

staticMeasureUnit* icu::MeasureUnit::createAstronomicalUnit(UErrorCodestatus)
static

Returns by pointer, unit of length: astronomical-unit.

Caller owns returned value and must free it. Also seegetAstronomicalUnit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createAtmosphere()

staticMeasureUnit* icu::MeasureUnit::createAtmosphere(UErrorCodestatus)
static

Returns by pointer, unit of pressure: atmosphere.

Caller owns returned value and must free it. Also seegetAtmosphere().

Parameters
statusICU error code.
Stable:
ICU 63

◆ createBar()

staticMeasureUnit* icu::MeasureUnit::createBar(UErrorCodestatus)
static

Returns by pointer, unit of pressure: bar.

Caller owns returned value and must free it. Also seegetBar().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createBarrel()

staticMeasureUnit* icu::MeasureUnit::createBarrel(UErrorCodestatus)
static

Returns by pointer, unit of volume: barrel.

Caller owns returned value and must free it. Also seegetBarrel().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createBeaufort()

staticMeasureUnit* icu::MeasureUnit::createBeaufort(UErrorCodestatus)
static

Returns by pointer, unit of speed: beaufort.

Caller owns returned value and must free it. Also seegetBeaufort().

Parameters
statusICU error code.
Stable:
ICU 73

◆ createBecquerel()

staticMeasureUnit* icu::MeasureUnit::createBecquerel(UErrorCodestatus)
static

Returns by pointer, unit of energy: becquerel.

Caller owns returned value and must free it. Also seegetBecquerel().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createBit()

staticMeasureUnit* icu::MeasureUnit::createBit(UErrorCodestatus)
static

Returns by pointer, unit of digital: bit.

Caller owns returned value and must free it. Also seegetBit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createBritishThermalUnit()

staticMeasureUnit* icu::MeasureUnit::createBritishThermalUnit(UErrorCodestatus)
static

Returns by pointer, unit of energy: british-thermal-unit.

Caller owns returned value and must free it. Also seegetBritishThermalUnit().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createBritishThermalUnitIt()

staticMeasureUnit* icu::MeasureUnit::createBritishThermalUnitIt(UErrorCodestatus)
static

Returns by pointer, unit of energy: british-thermal-unit-it.

Caller owns returned value and must free it. Also seegetBritishThermalUnitIt().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createBuJp()

staticMeasureUnit* icu::MeasureUnit::createBuJp(UErrorCodestatus)
static

Returns by pointer, unit of area: bu-jp.

Caller owns returned value and must free it. Also seegetBuJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createBushel()

staticMeasureUnit* icu::MeasureUnit::createBushel(UErrorCodestatus)
static

Returns by pointer, unit of volume: bushel.

Caller owns returned value and must free it. Also seegetBushel().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createByte()

staticMeasureUnit* icu::MeasureUnit::createByte(UErrorCodestatus)
static

Returns by pointer, unit of digital: byte.

Caller owns returned value and must free it. Also seegetByte().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCalorie()

staticMeasureUnit* icu::MeasureUnit::createCalorie(UErrorCodestatus)
static

Returns by pointer, unit of energy: calorie.

Caller owns returned value and must free it. Also seegetCalorie().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCalorieIt()

staticMeasureUnit* icu::MeasureUnit::createCalorieIt(UErrorCodestatus)
static

Returns by pointer, unit of energy: calorie-it.

Caller owns returned value and must free it. Also seegetCalorieIt().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCandela()

staticMeasureUnit* icu::MeasureUnit::createCandela(UErrorCodestatus)
static

Returns by pointer, unit of light: candela.

Caller owns returned value and must free it. Also seegetCandela().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createCarat()

staticMeasureUnit* icu::MeasureUnit::createCarat(UErrorCodestatus)
static

Returns by pointer, unit of mass: carat.

Caller owns returned value and must free it. Also seegetCarat().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCelsius()

staticMeasureUnit* icu::MeasureUnit::createCelsius(UErrorCodestatus)
static

Returns by pointer, unit of temperature: celsius.

Caller owns returned value and must free it. Also seegetCelsius().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCentiliter()

staticMeasureUnit* icu::MeasureUnit::createCentiliter(UErrorCodestatus)
static

Returns by pointer, unit of volume: centiliter.

Caller owns returned value and must free it. Also seegetCentiliter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCentimeter()

staticMeasureUnit* icu::MeasureUnit::createCentimeter(UErrorCodestatus)
static

Returns by pointer, unit of length: centimeter.

Caller owns returned value and must free it. Also seegetCentimeter().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCentury()

staticMeasureUnit* icu::MeasureUnit::createCentury(UErrorCodestatus)
static

Returns by pointer, unit of duration: century.

Caller owns returned value and must free it. Also seegetCentury().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createChain()

staticMeasureUnit* icu::MeasureUnit::createChain(UErrorCodestatus)
static

Returns by pointer, unit of length: chain.

Caller owns returned value and must free it. Also seegetChain().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCho()

staticMeasureUnit* icu::MeasureUnit::createCho(UErrorCodestatus)
static

Returns by pointer, unit of area: cho.

Caller owns returned value and must free it. Also seegetCho().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCoulomb()

staticMeasureUnit* icu::MeasureUnit::createCoulomb(UErrorCodestatus)
static

Returns by pointer, unit of electric: coulomb.

Caller owns returned value and must free it. Also seegetCoulomb().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCubicCentimeter()

staticMeasureUnit* icu::MeasureUnit::createCubicCentimeter(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-centimeter.

Caller owns returned value and must free it. Also seegetCubicCentimeter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicFoot()

staticMeasureUnit* icu::MeasureUnit::createCubicFoot(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-foot.

Caller owns returned value and must free it. Also seegetCubicFoot().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicInch()

staticMeasureUnit* icu::MeasureUnit::createCubicInch(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-inch.

Caller owns returned value and must free it. Also seegetCubicInch().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicKilometer()

staticMeasureUnit* icu::MeasureUnit::createCubicKilometer(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-kilometer.

Caller owns returned value and must free it. Also seegetCubicKilometer().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCubicMeter()

staticMeasureUnit* icu::MeasureUnit::createCubicMeter(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-meter.

Caller owns returned value and must free it. Also seegetCubicMeter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicMile()

staticMeasureUnit* icu::MeasureUnit::createCubicMile(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-mile.

Caller owns returned value and must free it. Also seegetCubicMile().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCubicYard()

staticMeasureUnit* icu::MeasureUnit::createCubicYard(UErrorCodestatus)
static

Returns by pointer, unit of volume: cubic-yard.

Caller owns returned value and must free it. Also seegetCubicYard().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCup()

staticMeasureUnit* icu::MeasureUnit::createCup(UErrorCodestatus)
static

Returns by pointer, unit of volume: cup.

Caller owns returned value and must free it. Also seegetCup().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCupImperial()

staticMeasureUnit* icu::MeasureUnit::createCupImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: cup-imperial.

Caller owns returned value and must free it. Also seegetCupImperial().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCupJp()

staticMeasureUnit* icu::MeasureUnit::createCupJp(UErrorCodestatus)
static

Returns by pointer, unit of volume: cup-jp.

Caller owns returned value and must free it. Also seegetCupJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createCupMetric()

staticMeasureUnit* icu::MeasureUnit::createCupMetric(UErrorCodestatus)
static

Returns by pointer, unit of volume: cup-metric.

Caller owns returned value and must free it. Also seegetCupMetric().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createDalton()

staticMeasureUnit* icu::MeasureUnit::createDalton(UErrorCodestatus)
static

Returns by pointer, unit of mass: dalton.

Caller owns returned value and must free it. Also seegetDalton().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createDay()

staticMeasureUnit* icu::MeasureUnit::createDay(UErrorCodestatus)
static

Returns by pointer, unit of duration: day.

Caller owns returned value and must free it. Also seegetDay().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createDayPerson()

staticMeasureUnit* icu::MeasureUnit::createDayPerson(UErrorCodestatus)
static

Returns by pointer, unit of duration: day-person.

Caller owns returned value and must free it. Also seegetDayPerson().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createDecade()

staticMeasureUnit* icu::MeasureUnit::createDecade(UErrorCodestatus)
static

Returns by pointer, unit of duration: decade.

Caller owns returned value and must free it. Also seegetDecade().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createDeciliter()

staticMeasureUnit* icu::MeasureUnit::createDeciliter(UErrorCodestatus)
static

Returns by pointer, unit of volume: deciliter.

Caller owns returned value and must free it. Also seegetDeciliter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createDecimeter()

staticMeasureUnit* icu::MeasureUnit::createDecimeter(UErrorCodestatus)
static

Returns by pointer, unit of length: decimeter.

Caller owns returned value and must free it. Also seegetDecimeter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createDegree()

staticMeasureUnit* icu::MeasureUnit::createDegree(UErrorCodestatus)
static

Returns by pointer, unit of angle: degree.

Caller owns returned value and must free it. Also seegetDegree().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createDessertSpoon()

staticMeasureUnit* icu::MeasureUnit::createDessertSpoon(UErrorCodestatus)
static

Returns by pointer, unit of volume: dessert-spoon.

Caller owns returned value and must free it. Also seegetDessertSpoon().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createDessertSpoonImperial()

staticMeasureUnit* icu::MeasureUnit::createDessertSpoonImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: dessert-spoon-imperial.

Caller owns returned value and must free it. Also seegetDessertSpoonImperial().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createDot()

staticMeasureUnit* icu::MeasureUnit::createDot(UErrorCodestatus)
static

Returns by pointer, unit of graphics: dot.

Caller owns returned value and must free it. Also seegetDot().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createDotPerCentimeter()

staticMeasureUnit* icu::MeasureUnit::createDotPerCentimeter(UErrorCodestatus)
static

Returns by pointer, unit of graphics: dot-per-centimeter.

Caller owns returned value and must free it. Also seegetDotPerCentimeter().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createDotPerInch()

staticMeasureUnit* icu::MeasureUnit::createDotPerInch(UErrorCodestatus)
static

Returns by pointer, unit of graphics: dot-per-inch.

Caller owns returned value and must free it. Also seegetDotPerInch().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createDram()

staticMeasureUnit* icu::MeasureUnit::createDram(UErrorCodestatus)
static

Returns by pointer, unit of volume: dram.

Caller owns returned value and must free it. Also seegetDram().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createDrop()

staticMeasureUnit* icu::MeasureUnit::createDrop(UErrorCodestatus)
static

Returns by pointer, unit of volume: drop.

Caller owns returned value and must free it. Also seegetDrop().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createDunam()

staticMeasureUnit* icu::MeasureUnit::createDunam(UErrorCodestatus)
static

Returns by pointer, unit of area: dunam.

Caller owns returned value and must free it. Also seegetDunam().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createEarthMass()

staticMeasureUnit* icu::MeasureUnit::createEarthMass(UErrorCodestatus)
static

Returns by pointer, unit of mass: earth-mass.

Caller owns returned value and must free it. Also seegetEarthMass().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createEarthRadius()

staticMeasureUnit* icu::MeasureUnit::createEarthRadius(UErrorCodestatus)
static

Returns by pointer, unit of length: earth-radius.

Caller owns returned value and must free it. Also seegetEarthRadius().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createElectronvolt()

staticMeasureUnit* icu::MeasureUnit::createElectronvolt(UErrorCodestatus)
static

Returns by pointer, unit of energy: electronvolt.

Caller owns returned value and must free it. Also seegetElectronvolt().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createEm()

staticMeasureUnit* icu::MeasureUnit::createEm(UErrorCodestatus)
static

Returns by pointer, unit of graphics: em.

Caller owns returned value and must free it. Also seegetEm().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createFahrenheit()

staticMeasureUnit* icu::MeasureUnit::createFahrenheit(UErrorCodestatus)
static

Returns by pointer, unit of temperature: fahrenheit.

Caller owns returned value and must free it. Also seegetFahrenheit().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createFarad()

staticMeasureUnit* icu::MeasureUnit::createFarad(UErrorCodestatus)
static

Returns by pointer, unit of electric: farad.

Caller owns returned value and must free it. Also seegetFarad().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createFathom()

staticMeasureUnit* icu::MeasureUnit::createFathom(UErrorCodestatus)
static

Returns by pointer, unit of length: fathom.

Caller owns returned value and must free it. Also seegetFathom().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFluidOunce()

staticMeasureUnit* icu::MeasureUnit::createFluidOunce(UErrorCodestatus)
static

Returns by pointer, unit of volume: fluid-ounce.

Caller owns returned value and must free it. Also seegetFluidOunce().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFluidOunceImperial()

staticMeasureUnit* icu::MeasureUnit::createFluidOunceImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: fluid-ounce-imperial.

Caller owns returned value and must free it. Also seegetFluidOunceImperial().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createFluidOunceMetric()

staticMeasureUnit* icu::MeasureUnit::createFluidOunceMetric(UErrorCodestatus)
static

Returns by pointer, unit of volume: fluid-ounce-metric.

Caller owns returned value and must free it. Also seegetFluidOunceMetric().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createFoodcalorie()

staticMeasureUnit* icu::MeasureUnit::createFoodcalorie(UErrorCodestatus)
static

Returns by pointer, unit of energy: foodcalorie.

Caller owns returned value and must free it. Also seegetFoodcalorie().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFoot()

staticMeasureUnit* icu::MeasureUnit::createFoot(UErrorCodestatus)
static

Returns by pointer, unit of length: foot.

Caller owns returned value and must free it. Also seegetFoot().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createFortnight()

staticMeasureUnit* icu::MeasureUnit::createFortnight(UErrorCodestatus)
static

Returns by pointer, unit of duration: fortnight.

Caller owns returned value and must free it. Also seegetFortnight().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createFun()

staticMeasureUnit* icu::MeasureUnit::createFun(UErrorCodestatus)
static

Returns by pointer, unit of mass: fun.

Caller owns returned value and must free it. Also seegetFun().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createFurlong()

staticMeasureUnit* icu::MeasureUnit::createFurlong(UErrorCodestatus)
static

Returns by pointer, unit of length: furlong.

Caller owns returned value and must free it. Also seegetFurlong().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGallon()

staticMeasureUnit* icu::MeasureUnit::createGallon(UErrorCodestatus)
static

Returns by pointer, unit of volume: gallon.

Caller owns returned value and must free it. Also seegetGallon().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGallonImperial()

staticMeasureUnit* icu::MeasureUnit::createGallonImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: gallon-imperial.

Caller owns returned value and must free it. Also seegetGallonImperial().

Parameters
statusICU error code.
Stable:
ICU 57

◆ createGasolineEnergyDensity()

staticMeasureUnit* icu::MeasureUnit::createGasolineEnergyDensity(UErrorCodestatus)
static

Returns by pointer, unit of pressure: gasoline-energy-density.

Caller owns returned value and must free it. Also seegetGasolineEnergyDensity().

Parameters
statusICU error code.
Stable:
ICU 74

◆ createGenericTemperature()

staticMeasureUnit* icu::MeasureUnit::createGenericTemperature(UErrorCodestatus)
static

Returns by pointer, unit of temperature: generic.

Caller owns returned value and must free it. Also seegetGenericTemperature().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createGForce()

staticMeasureUnit* icu::MeasureUnit::createGForce(UErrorCodestatus)
static

Returns by pointer, unit of acceleration: g-force.

Caller owns returned value and must free it. Also seegetGForce().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createGigabit()

staticMeasureUnit* icu::MeasureUnit::createGigabit(UErrorCodestatus)
static

Returns by pointer, unit of digital: gigabit.

Caller owns returned value and must free it. Also seegetGigabit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigabyte()

staticMeasureUnit* icu::MeasureUnit::createGigabyte(UErrorCodestatus)
static

Returns by pointer, unit of digital: gigabyte.

Caller owns returned value and must free it. Also seegetGigabyte().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigahertz()

staticMeasureUnit* icu::MeasureUnit::createGigahertz(UErrorCodestatus)
static

Returns by pointer, unit of frequency: gigahertz.

Caller owns returned value and must free it. Also seegetGigahertz().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigawatt()

staticMeasureUnit* icu::MeasureUnit::createGigawatt(UErrorCodestatus)
static

Returns by pointer, unit of power: gigawatt.

Caller owns returned value and must free it. Also seegetGigawatt().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGrain()

staticMeasureUnit* icu::MeasureUnit::createGrain(UErrorCodestatus)
static

Returns by pointer, unit of mass: grain.

Caller owns returned value and must free it. Also seegetGrain().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createGram()

staticMeasureUnit* icu::MeasureUnit::createGram(UErrorCodestatus)
static

Returns by pointer, unit of mass: gram.

Caller owns returned value and must free it. Also seegetGram().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createGray()

staticMeasureUnit* icu::MeasureUnit::createGray(UErrorCodestatus)
static

Returns by pointer, unit of energy: gray.

Caller owns returned value and must free it. Also seegetGray().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createHectare()

staticMeasureUnit* icu::MeasureUnit::createHectare(UErrorCodestatus)
static

Returns by pointer, unit of area: hectare.

Caller owns returned value and must free it. Also seegetHectare().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHectoliter()

staticMeasureUnit* icu::MeasureUnit::createHectoliter(UErrorCodestatus)
static

Returns by pointer, unit of volume: hectoliter.

Caller owns returned value and must free it. Also seegetHectoliter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createHectopascal()

staticMeasureUnit* icu::MeasureUnit::createHectopascal(UErrorCodestatus)
static

Returns by pointer, unit of pressure: hectopascal.

Caller owns returned value and must free it. Also seegetHectopascal().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHenry()

staticMeasureUnit* icu::MeasureUnit::createHenry(UErrorCodestatus)
static

Returns by pointer, unit of electric: henry.

Caller owns returned value and must free it. Also seegetHenry().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createHertz()

staticMeasureUnit* icu::MeasureUnit::createHertz(UErrorCodestatus)
static

Returns by pointer, unit of frequency: hertz.

Caller owns returned value and must free it. Also seegetHertz().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createHorsepower()

staticMeasureUnit* icu::MeasureUnit::createHorsepower(UErrorCodestatus)
static

Returns by pointer, unit of power: horsepower.

Caller owns returned value and must free it. Also seegetHorsepower().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHour()

staticMeasureUnit* icu::MeasureUnit::createHour(UErrorCodestatus)
static

Returns by pointer, unit of duration: hour.

Caller owns returned value and must free it. Also seegetHour().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createInch()

staticMeasureUnit* icu::MeasureUnit::createInch(UErrorCodestatus)
static

Returns by pointer, unit of length: inch.

Caller owns returned value and must free it. Also seegetInch().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createInchHg()

staticMeasureUnit* icu::MeasureUnit::createInchHg(UErrorCodestatus)
static

Returns by pointer, unit of pressure: inch-ofhg.

Caller owns returned value and must free it. Also seegetInchHg().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createItem()

staticMeasureUnit* icu::MeasureUnit::createItem(UErrorCodestatus)
static

Returns by pointer, unit of concentr: item.

Caller owns returned value and must free it. Also seegetItem().

Parameters
statusICU error code.
Stable:
ICU 70

◆ createJigger()

staticMeasureUnit* icu::MeasureUnit::createJigger(UErrorCodestatus)
static

Returns by pointer, unit of volume: jigger.

Caller owns returned value and must free it. Also seegetJigger().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createJoJp()

staticMeasureUnit* icu::MeasureUnit::createJoJp(UErrorCodestatus)
static

Returns by pointer, unit of length: jo-jp.

Caller owns returned value and must free it. Also seegetJoJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createJoule()

staticMeasureUnit* icu::MeasureUnit::createJoule(UErrorCodestatus)
static

Returns by pointer, unit of energy: joule.

Caller owns returned value and must free it. Also seegetJoule().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKarat()

staticMeasureUnit* icu::MeasureUnit::createKarat(UErrorCodestatus)
static

Returns by pointer, unit of concentr: karat.

Caller owns returned value and must free it. Also seegetKarat().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKatal()

staticMeasureUnit* icu::MeasureUnit::createKatal(UErrorCodestatus)
static

Returns by pointer, unit of concentr: katal.

Caller owns returned value and must free it. Also seegetKatal().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createKelvin()

staticMeasureUnit* icu::MeasureUnit::createKelvin(UErrorCodestatus)
static

Returns by pointer, unit of temperature: kelvin.

Caller owns returned value and must free it. Also seegetKelvin().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKen()

staticMeasureUnit* icu::MeasureUnit::createKen(UErrorCodestatus)
static

Returns by pointer, unit of length: ken.

Caller owns returned value and must free it. Also seegetKen().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createKilobit()

staticMeasureUnit* icu::MeasureUnit::createKilobit(UErrorCodestatus)
static

Returns by pointer, unit of digital: kilobit.

Caller owns returned value and must free it. Also seegetKilobit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilobyte()

staticMeasureUnit* icu::MeasureUnit::createKilobyte(UErrorCodestatus)
static

Returns by pointer, unit of digital: kilobyte.

Caller owns returned value and must free it. Also seegetKilobyte().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilocalorie()

staticMeasureUnit* icu::MeasureUnit::createKilocalorie(UErrorCodestatus)
static

Returns by pointer, unit of energy: kilocalorie.

Caller owns returned value and must free it. Also seegetKilocalorie().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilogram()

staticMeasureUnit* icu::MeasureUnit::createKilogram(UErrorCodestatus)
static

Returns by pointer, unit of mass: kilogram.

Caller owns returned value and must free it. Also seegetKilogram().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilogramForce()

staticMeasureUnit* icu::MeasureUnit::createKilogramForce(UErrorCodestatus)
static

Returns by pointer, unit of force: kilogram-force.

Caller owns returned value and must free it. Also seegetKilogramForce().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createKilohertz()

staticMeasureUnit* icu::MeasureUnit::createKilohertz(UErrorCodestatus)
static

Returns by pointer, unit of frequency: kilohertz.

Caller owns returned value and must free it. Also seegetKilohertz().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilojoule()

staticMeasureUnit* icu::MeasureUnit::createKilojoule(UErrorCodestatus)
static

Returns by pointer, unit of energy: kilojoule.

Caller owns returned value and must free it. Also seegetKilojoule().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilometer()

staticMeasureUnit* icu::MeasureUnit::createKilometer(UErrorCodestatus)
static

Returns by pointer, unit of length: kilometer.

Caller owns returned value and must free it. Also seegetKilometer().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilometerPerHour()

staticMeasureUnit* icu::MeasureUnit::createKilometerPerHour(UErrorCodestatus)
static

Returns by pointer, unit of speed: kilometer-per-hour.

Caller owns returned value and must free it. Also seegetKilometerPerHour().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilopascal()

staticMeasureUnit* icu::MeasureUnit::createKilopascal(UErrorCodestatus)
static

Returns by pointer, unit of pressure: kilopascal.

Caller owns returned value and must free it. Also seegetKilopascal().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createKilowatt()

staticMeasureUnit* icu::MeasureUnit::createKilowatt(UErrorCodestatus)
static

Returns by pointer, unit of power: kilowatt.

Caller owns returned value and must free it. Also seegetKilowatt().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilowattHour()

staticMeasureUnit* icu::MeasureUnit::createKilowattHour(UErrorCodestatus)
static

Returns by pointer, unit of energy: kilowatt-hour.

Caller owns returned value and must free it. Also seegetKilowattHour().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilowattHourPer100Kilometer()

staticMeasureUnit* icu::MeasureUnit::createKilowattHourPer100Kilometer(UErrorCodestatus)
static

Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.

Caller owns returned value and must free it. Also seegetKilowattHourPer100Kilometer().

Parameters
statusICU error code.
Stable:
ICU 70

◆ createKnot()

staticMeasureUnit* icu::MeasureUnit::createKnot(UErrorCodestatus)
static

Returns by pointer, unit of speed: knot.

Caller owns returned value and must free it. Also seegetKnot().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createKoku()

staticMeasureUnit* icu::MeasureUnit::createKoku(UErrorCodestatus)
static

Returns by pointer, unit of volume: koku.

Caller owns returned value and must free it. Also seegetKoku().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createKosaji()

staticMeasureUnit* icu::MeasureUnit::createKosaji(UErrorCodestatus)
static

Returns by pointer, unit of volume: kosaji.

Caller owns returned value and must free it. Also seegetKosaji().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createLightSpeed()

staticMeasureUnit* icu::MeasureUnit::createLightSpeed(UErrorCodestatus)
static

Returns by pointer, unit of speed: light-speed.

Caller owns returned value and must free it. Also seegetLightSpeed().

Parameters
statusICU error code.
Stable:
ICU 76

◆ createLightYear()

staticMeasureUnit* icu::MeasureUnit::createLightYear(UErrorCodestatus)
static

Returns by pointer, unit of length: light-year.

Caller owns returned value and must free it. Also seegetLightYear().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createLiter()

staticMeasureUnit* icu::MeasureUnit::createLiter(UErrorCodestatus)
static

Returns by pointer, unit of volume: liter.

Caller owns returned value and must free it. Also seegetLiter().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createLiterPer100Kilometers()

staticMeasureUnit* icu::MeasureUnit::createLiterPer100Kilometers(UErrorCodestatus)
static

Returns by pointer, unit of consumption: liter-per-100-kilometer.

Caller owns returned value and must free it. Also seegetLiterPer100Kilometers().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createLiterPerKilometer()

staticMeasureUnit* icu::MeasureUnit::createLiterPerKilometer(UErrorCodestatus)
static

Returns by pointer, unit of consumption: liter-per-kilometer.

Caller owns returned value and must free it. Also seegetLiterPerKilometer().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createLumen()

staticMeasureUnit* icu::MeasureUnit::createLumen(UErrorCodestatus)
static

Returns by pointer, unit of light: lumen.

Caller owns returned value and must free it. Also seegetLumen().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createLux()

staticMeasureUnit* icu::MeasureUnit::createLux(UErrorCodestatus)
static

Returns by pointer, unit of light: lux.

Caller owns returned value and must free it. Also seegetLux().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegabit()

staticMeasureUnit* icu::MeasureUnit::createMegabit(UErrorCodestatus)
static

Returns by pointer, unit of digital: megabit.

Caller owns returned value and must free it. Also seegetMegabit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegabyte()

staticMeasureUnit* icu::MeasureUnit::createMegabyte(UErrorCodestatus)
static

Returns by pointer, unit of digital: megabyte.

Caller owns returned value and must free it. Also seegetMegabyte().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegahertz()

staticMeasureUnit* icu::MeasureUnit::createMegahertz(UErrorCodestatus)
static

Returns by pointer, unit of frequency: megahertz.

Caller owns returned value and must free it. Also seegetMegahertz().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegaliter()

staticMeasureUnit* icu::MeasureUnit::createMegaliter(UErrorCodestatus)
static

Returns by pointer, unit of volume: megaliter.

Caller owns returned value and must free it. Also seegetMegaliter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegapascal()

staticMeasureUnit* icu::MeasureUnit::createMegapascal(UErrorCodestatus)
static

Returns by pointer, unit of pressure: megapascal.

Caller owns returned value and must free it. Also seegetMegapascal().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createMegapixel()

staticMeasureUnit* icu::MeasureUnit::createMegapixel(UErrorCodestatus)
static

Returns by pointer, unit of graphics: megapixel.

Caller owns returned value and must free it. Also seegetMegapixel().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createMegawatt()

staticMeasureUnit* icu::MeasureUnit::createMegawatt(UErrorCodestatus)
static

Returns by pointer, unit of power: megawatt.

Caller owns returned value and must free it. Also seegetMegawatt().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMeter()

staticMeasureUnit* icu::MeasureUnit::createMeter(UErrorCodestatus)
static

Returns by pointer, unit of length: meter.

Caller owns returned value and must free it. Also seegetMeter().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMeterPerSecond()

staticMeasureUnit* icu::MeasureUnit::createMeterPerSecond(UErrorCodestatus)
static

Returns by pointer, unit of speed: meter-per-second.

Caller owns returned value and must free it. Also seegetMeterPerSecond().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMeterPerSecondSquared()

staticMeasureUnit* icu::MeasureUnit::createMeterPerSecondSquared(UErrorCodestatus)
static

Returns by pointer, unit of acceleration: meter-per-square-second.

Caller owns returned value and must free it. Also seegetMeterPerSecondSquared().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMetricTon()

staticMeasureUnit* icu::MeasureUnit::createMetricTon(UErrorCodestatus)
static

Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).

Caller owns returned value and must free it. Also seegetMetricTon() andcreateTonne().

Parameters
statusICU error code.
Deprecated:
ICU 78 usecreateTonne(UErrorCode &status)

◆ createMicrogram()

staticMeasureUnit* icu::MeasureUnit::createMicrogram(UErrorCodestatus)
static

Returns by pointer, unit of mass: microgram.

Caller owns returned value and must free it. Also seegetMicrogram().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMicrometer()

staticMeasureUnit* icu::MeasureUnit::createMicrometer(UErrorCodestatus)
static

Returns by pointer, unit of length: micrometer.

Caller owns returned value and must free it. Also seegetMicrometer().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMicrosecond()

staticMeasureUnit* icu::MeasureUnit::createMicrosecond(UErrorCodestatus)
static

Returns by pointer, unit of duration: microsecond.

Caller owns returned value and must free it. Also seegetMicrosecond().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMile()

staticMeasureUnit* icu::MeasureUnit::createMile(UErrorCodestatus)
static

Returns by pointer, unit of length: mile.

Caller owns returned value and must free it. Also seegetMile().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilePerGallon()

staticMeasureUnit* icu::MeasureUnit::createMilePerGallon(UErrorCodestatus)
static

Returns by pointer, unit of consumption: mile-per-gallon.

Caller owns returned value and must free it. Also seegetMilePerGallon().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMilePerGallonImperial()

staticMeasureUnit* icu::MeasureUnit::createMilePerGallonImperial(UErrorCodestatus)
static

Returns by pointer, unit of consumption: mile-per-gallon-imperial.

Caller owns returned value and must free it. Also seegetMilePerGallonImperial().

Parameters
statusICU error code.
Stable:
ICU 57

◆ createMilePerHour()

staticMeasureUnit* icu::MeasureUnit::createMilePerHour(UErrorCodestatus)
static

Returns by pointer, unit of speed: mile-per-hour.

Caller owns returned value and must free it. Also seegetMilePerHour().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMileScandinavian()

staticMeasureUnit* icu::MeasureUnit::createMileScandinavian(UErrorCodestatus)
static

Returns by pointer, unit of length: mile-scandinavian.

Caller owns returned value and must free it. Also seegetMileScandinavian().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createMilliampere()

staticMeasureUnit* icu::MeasureUnit::createMilliampere(UErrorCodestatus)
static

Returns by pointer, unit of electric: milliampere.

Caller owns returned value and must free it. Also seegetMilliampere().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillibar()

staticMeasureUnit* icu::MeasureUnit::createMillibar(UErrorCodestatus)
static

Returns by pointer, unit of pressure: millibar.

Caller owns returned value and must free it. Also seegetMillibar().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilligram()

staticMeasureUnit* icu::MeasureUnit::createMilligram(UErrorCodestatus)
static

Returns by pointer, unit of mass: milligram.

Caller owns returned value and must free it. Also seegetMilligram().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMilligramOfglucosePerDeciliter()

staticMeasureUnit* icu::MeasureUnit::createMilligramOfglucosePerDeciliter(UErrorCodestatus)
static

Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.

Caller owns returned value and must free it. Also seegetMilligramOfglucosePerDeciliter().

Parameters
statusICU error code.
Stable:
ICU 69

◆ createMilligramPerDeciliter()

staticMeasureUnit* icu::MeasureUnit::createMilligramPerDeciliter(UErrorCodestatus)
static

Returns by pointer, unit of concentr: milligram-per-deciliter.

(renamed to milligram-ofglucose-per-deciliter in CLDR 39 / ICU 69). Caller owns returned value and must free it. Also seecreateMilligramOfglucosePerDeciliter(). Also seegetMilligramPerDeciliter().

Parameters
statusICU error code.
Deprecated:
ICU 78 usecreateMilligramOfglucosePerDeciliter(UErrorCode &status)

◆ createMilliliter()

staticMeasureUnit* icu::MeasureUnit::createMilliliter(UErrorCodestatus)
static

Returns by pointer, unit of volume: milliliter.

Caller owns returned value and must free it. Also seegetMilliliter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillimeter()

staticMeasureUnit* icu::MeasureUnit::createMillimeter(UErrorCodestatus)
static

Returns by pointer, unit of length: millimeter.

Caller owns returned value and must free it. Also seegetMillimeter().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMillimeterOfMercury()

staticMeasureUnit* icu::MeasureUnit::createMillimeterOfMercury(UErrorCodestatus)
static

Returns by pointer, unit of pressure: millimeter-ofhg.

Caller owns returned value and must free it. Also seegetMillimeterOfMercury().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillimolePerLiter()

staticMeasureUnit* icu::MeasureUnit::createMillimolePerLiter(UErrorCodestatus)
static

Returns by pointer, unit of concentr: millimole-per-liter.

Caller owns returned value and must free it. Also seegetMillimolePerLiter().

Parameters
statusICU error code.
Stable:
ICU 57

◆ createMillisecond()

staticMeasureUnit* icu::MeasureUnit::createMillisecond(UErrorCodestatus)
static

Returns by pointer, unit of duration: millisecond.

Caller owns returned value and must free it. Also seegetMillisecond().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilliwatt()

staticMeasureUnit* icu::MeasureUnit::createMilliwatt(UErrorCodestatus)
static

Returns by pointer, unit of power: milliwatt.

Caller owns returned value and must free it. Also seegetMilliwatt().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMinute()

staticMeasureUnit* icu::MeasureUnit::createMinute(UErrorCodestatus)
static

Returns by pointer, unit of duration: minute.

Caller owns returned value and must free it. Also seegetMinute().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMole()

staticMeasureUnit* icu::MeasureUnit::createMole(UErrorCodestatus)
static

Returns by pointer, unit of concentr: mole.

Caller owns returned value and must free it. Also seegetMole().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createMonth()

staticMeasureUnit* icu::MeasureUnit::createMonth(UErrorCodestatus)
static

Returns by pointer, unit of duration: month.

Caller owns returned value and must free it. Also seegetMonth().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMonthPerson()

staticMeasureUnit* icu::MeasureUnit::createMonthPerson(UErrorCodestatus)
static

Returns by pointer, unit of duration: month-person.

Caller owns returned value and must free it. Also seegetMonthPerson().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createNanometer()

staticMeasureUnit* icu::MeasureUnit::createNanometer(UErrorCodestatus)
static

Returns by pointer, unit of length: nanometer.

Caller owns returned value and must free it. Also seegetNanometer().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNanosecond()

staticMeasureUnit* icu::MeasureUnit::createNanosecond(UErrorCodestatus)
static

Returns by pointer, unit of duration: nanosecond.

Caller owns returned value and must free it. Also seegetNanosecond().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNauticalMile()

staticMeasureUnit* icu::MeasureUnit::createNauticalMile(UErrorCodestatus)
static

Returns by pointer, unit of length: nautical-mile.

Caller owns returned value and must free it. Also seegetNauticalMile().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNewton()

staticMeasureUnit* icu::MeasureUnit::createNewton(UErrorCodestatus)
static

Returns by pointer, unit of force: newton.

Caller owns returned value and must free it. Also seegetNewton().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createNewtonMeter()

staticMeasureUnit* icu::MeasureUnit::createNewtonMeter(UErrorCodestatus)
static

Returns by pointer, unit of torque: newton-meter.

Caller owns returned value and must free it. Also seegetNewtonMeter().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createNight()

staticMeasureUnit* icu::MeasureUnit::createNight(UErrorCodestatus)
static

Returns by pointer, unit of duration: night.

Caller owns returned value and must free it. Also seegetNight().

Parameters
statusICU error code.
Stable:
ICU 76

◆ createOfglucose()

staticMeasureUnit* icu::MeasureUnit::createOfglucose(UErrorCodestatus)
static

Returns by pointer, unit of concentr: ofglucose.

Caller owns returned value and must free it. Also seegetOfglucose().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createOfhg()

staticMeasureUnit* icu::MeasureUnit::createOfhg(UErrorCodestatus)
static

Returns by pointer, unit of pressure: ofhg.

Caller owns returned value and must free it. Also seegetOfhg().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createOhm()

staticMeasureUnit* icu::MeasureUnit::createOhm(UErrorCodestatus)
static

Returns by pointer, unit of electric: ohm.

Caller owns returned value and must free it. Also seegetOhm().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createOsaji()

staticMeasureUnit* icu::MeasureUnit::createOsaji(UErrorCodestatus)
static

Returns by pointer, unit of volume: osaji.

Caller owns returned value and must free it. Also seegetOsaji().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createOunce()

staticMeasureUnit* icu::MeasureUnit::createOunce(UErrorCodestatus)
static

Returns by pointer, unit of mass: ounce.

Caller owns returned value and must free it. Also seegetOunce().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createOunceTroy()

staticMeasureUnit* icu::MeasureUnit::createOunceTroy(UErrorCodestatus)
static

Returns by pointer, unit of mass: ounce-troy.

Caller owns returned value and must free it. Also seegetOunceTroy().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createParsec()

staticMeasureUnit* icu::MeasureUnit::createParsec(UErrorCodestatus)
static

Returns by pointer, unit of length: parsec.

Caller owns returned value and must free it. Also seegetParsec().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createPart()

staticMeasureUnit* icu::MeasureUnit::createPart(UErrorCodestatus)
static

Returns by pointer, unit of concentr: part.

Caller owns returned value and must free it. Also seegetPart().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createPartPer1E6()

staticMeasureUnit* icu::MeasureUnit::createPartPer1E6(UErrorCodestatus)
static

Returns by pointer, unit of concentr: part-per-1e6.

Caller owns returned value and must free it. Also seegetPartPer1E6().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createPartPer1E9()

staticMeasureUnit* icu::MeasureUnit::createPartPer1E9(UErrorCodestatus)
static

Returns by pointer, unit of concentr: part-per-1e9.

Caller owns returned value and must free it. Also seegetPartPer1E9().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createPartPerMillion()

staticMeasureUnit* icu::MeasureUnit::createPartPerMillion(UErrorCodestatus)
static

Returns by pointer, unit of concentr: part-per-million.

(renamed to part-per-1e6 in CLDR 48 / ICU 78). Caller owns returned value and must free it. Also seecreatePartPer1E6(). Also seegetPartPerMillion().

Parameters
statusICU error code.
Stable:
ICU 57

◆ createPascal()

staticMeasureUnit* icu::MeasureUnit::createPascal(UErrorCodestatus)
static

Returns by pointer, unit of pressure: pascal.

Caller owns returned value and must free it. Also seegetPascal().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createPercent()

staticMeasureUnit* icu::MeasureUnit::createPercent(UErrorCodestatus)
static

Returns by pointer, unit of concentr: percent.

Caller owns returned value and must free it. Also seegetPercent().

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPermille()

staticMeasureUnit* icu::MeasureUnit::createPermille(UErrorCodestatus)
static

Returns by pointer, unit of concentr: permille.

Caller owns returned value and must free it. Also seegetPermille().

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPermyriad()

staticMeasureUnit* icu::MeasureUnit::createPermyriad(UErrorCodestatus)
static

Returns by pointer, unit of concentr: permyriad.

Caller owns returned value and must free it. Also seegetPermyriad().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createPetabyte()

staticMeasureUnit* icu::MeasureUnit::createPetabyte(UErrorCodestatus)
static

Returns by pointer, unit of digital: petabyte.

Caller owns returned value and must free it. Also seegetPetabyte().

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPicometer()

staticMeasureUnit* icu::MeasureUnit::createPicometer(UErrorCodestatus)
static

Returns by pointer, unit of length: picometer.

Caller owns returned value and must free it. Also seegetPicometer().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createPinch()

staticMeasureUnit* icu::MeasureUnit::createPinch(UErrorCodestatus)
static

Returns by pointer, unit of volume: pinch.

Caller owns returned value and must free it. Also seegetPinch().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createPint()

staticMeasureUnit* icu::MeasureUnit::createPint(UErrorCodestatus)
static

Returns by pointer, unit of volume: pint.

Caller owns returned value and must free it. Also seegetPint().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createPintImperial()

staticMeasureUnit* icu::MeasureUnit::createPintImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: pint-imperial.

Caller owns returned value and must free it. Also seegetPintImperial().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createPintMetric()

staticMeasureUnit* icu::MeasureUnit::createPintMetric(UErrorCodestatus)
static

Returns by pointer, unit of volume: pint-metric.

Caller owns returned value and must free it. Also seegetPintMetric().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createPixel()

staticMeasureUnit* icu::MeasureUnit::createPixel(UErrorCodestatus)
static

Returns by pointer, unit of graphics: pixel.

Caller owns returned value and must free it. Also seegetPixel().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createPixelPerCentimeter()

staticMeasureUnit* icu::MeasureUnit::createPixelPerCentimeter(UErrorCodestatus)
static

Returns by pointer, unit of graphics: pixel-per-centimeter.

Caller owns returned value and must free it. Also seegetPixelPerCentimeter().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createPixelPerInch()

staticMeasureUnit* icu::MeasureUnit::createPixelPerInch(UErrorCodestatus)
static

Returns by pointer, unit of graphics: pixel-per-inch.

Caller owns returned value and must free it. Also seegetPixelPerInch().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createPoint()

staticMeasureUnit* icu::MeasureUnit::createPoint(UErrorCodestatus)
static

Returns by pointer, unit of length: point.

Caller owns returned value and must free it. Also seegetPoint().

Parameters
statusICU error code.
Stable:
ICU 59

◆ createPound()

staticMeasureUnit* icu::MeasureUnit::createPound(UErrorCodestatus)
static

Returns by pointer, unit of mass: pound.

Caller owns returned value and must free it. Also seegetPound().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createPoundFoot()

staticMeasureUnit* icu::MeasureUnit::createPoundFoot(UErrorCodestatus)
static

Returns by pointer, unit of torque: pound-force-foot.

Caller owns returned value and must free it. Also seegetPoundFoot().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createPoundForce()

staticMeasureUnit* icu::MeasureUnit::createPoundForce(UErrorCodestatus)
static

Returns by pointer, unit of force: pound-force.

Caller owns returned value and must free it. Also seegetPoundForce().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createPoundPerSquareInch()

staticMeasureUnit* icu::MeasureUnit::createPoundPerSquareInch(UErrorCodestatus)
static

Returns by pointer, unit of pressure: pound-force-per-square-inch.

Caller owns returned value and must free it. Also seegetPoundPerSquareInch().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createQuart()

staticMeasureUnit* icu::MeasureUnit::createQuart(UErrorCodestatus)
static

Returns by pointer, unit of volume: quart.

Caller owns returned value and must free it. Also seegetQuart().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createQuarter()

staticMeasureUnit* icu::MeasureUnit::createQuarter(UErrorCodestatus)
static

Returns by pointer, unit of duration: quarter.

Caller owns returned value and must free it. Also seegetQuarter().

Parameters
statusICU error code.
Stable:
ICU 72

◆ createQuartImperial()

staticMeasureUnit* icu::MeasureUnit::createQuartImperial(UErrorCodestatus)
static

Returns by pointer, unit of volume: quart-imperial.

Caller owns returned value and must free it. Also seegetQuartImperial().

Parameters
statusICU error code.
Stable:
ICU 68

◆ createRadian()

staticMeasureUnit* icu::MeasureUnit::createRadian(UErrorCodestatus)
static

Returns by pointer, unit of angle: radian.

Caller owns returned value and must free it. Also seegetRadian().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createRankine()

staticMeasureUnit* icu::MeasureUnit::createRankine(UErrorCodestatus)
static

Returns by pointer, unit of temperature: rankine.

Caller owns returned value and must free it. Also seegetRankine().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createRevolutionAngle()

staticMeasureUnit* icu::MeasureUnit::createRevolutionAngle(UErrorCodestatus)
static

Returns by pointer, unit of angle: revolution.

Caller owns returned value and must free it. Also seegetRevolutionAngle().

Parameters
statusICU error code.
Stable:
ICU 56

◆ createRiJp()

staticMeasureUnit* icu::MeasureUnit::createRiJp(UErrorCodestatus)
static

Returns by pointer, unit of length: ri-jp.

Caller owns returned value and must free it. Also seegetRiJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createRin()

staticMeasureUnit* icu::MeasureUnit::createRin(UErrorCodestatus)
static

Returns by pointer, unit of length: rin.

Caller owns returned value and must free it. Also seegetRin().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createRod()

staticMeasureUnit* icu::MeasureUnit::createRod(UErrorCodestatus)
static

Returns by pointer, unit of length: rod.

Caller owns returned value and must free it. Also seegetRod().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSai()

staticMeasureUnit* icu::MeasureUnit::createSai(UErrorCodestatus)
static

Returns by pointer, unit of volume: sai.

Caller owns returned value and must free it. Also seegetSai().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSecond()

staticMeasureUnit* icu::MeasureUnit::createSecond(UErrorCodestatus)
static

Returns by pointer, unit of duration: second.

Caller owns returned value and must free it. Also seegetSecond().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSeJp()

staticMeasureUnit* icu::MeasureUnit::createSeJp(UErrorCodestatus)
static

Returns by pointer, unit of area: se-jp.

Caller owns returned value and must free it. Also seegetSeJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createShaku()

staticMeasureUnit* icu::MeasureUnit::createShaku(UErrorCodestatus)
static

Returns by pointer, unit of volume: shaku.

Caller owns returned value and must free it. Also seegetShaku().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createShakuCloth()

staticMeasureUnit* icu::MeasureUnit::createShakuCloth(UErrorCodestatus)
static

Returns by pointer, unit of length: shaku-cloth.

Caller owns returned value and must free it. Also seegetShakuCloth().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createShakuLength()

staticMeasureUnit* icu::MeasureUnit::createShakuLength(UErrorCodestatus)
static

Returns by pointer, unit of length: shaku-length.

Caller owns returned value and must free it. Also seegetShakuLength().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSiemens()

staticMeasureUnit* icu::MeasureUnit::createSiemens(UErrorCodestatus)
static

Returns by pointer, unit of electric: siemens.

Caller owns returned value and must free it. Also seegetSiemens().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSievert()

staticMeasureUnit* icu::MeasureUnit::createSievert(UErrorCodestatus)
static

Returns by pointer, unit of energy: sievert.

Caller owns returned value and must free it. Also seegetSievert().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSlug()

staticMeasureUnit* icu::MeasureUnit::createSlug(UErrorCodestatus)
static

Returns by pointer, unit of mass: slug.

Caller owns returned value and must free it. Also seegetSlug().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createSolarLuminosity()

staticMeasureUnit* icu::MeasureUnit::createSolarLuminosity(UErrorCodestatus)
static

Returns by pointer, unit of light: solar-luminosity.

Caller owns returned value and must free it. Also seegetSolarLuminosity().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createSolarMass()

staticMeasureUnit* icu::MeasureUnit::createSolarMass(UErrorCodestatus)
static

Returns by pointer, unit of mass: solar-mass.

Caller owns returned value and must free it. Also seegetSolarMass().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createSolarRadius()

staticMeasureUnit* icu::MeasureUnit::createSolarRadius(UErrorCodestatus)
static

Returns by pointer, unit of length: solar-radius.

Caller owns returned value and must free it. Also seegetSolarRadius().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createSquareCentimeter()

staticMeasureUnit* icu::MeasureUnit::createSquareCentimeter(UErrorCodestatus)
static

Returns by pointer, unit of area: square-centimeter.

Caller owns returned value and must free it. Also seegetSquareCentimeter().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSquareFoot()

staticMeasureUnit* icu::MeasureUnit::createSquareFoot(UErrorCodestatus)
static

Returns by pointer, unit of area: square-foot.

Caller owns returned value and must free it. Also seegetSquareFoot().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareInch()

staticMeasureUnit* icu::MeasureUnit::createSquareInch(UErrorCodestatus)
static

Returns by pointer, unit of area: square-inch.

Caller owns returned value and must free it. Also seegetSquareInch().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSquareKilometer()

staticMeasureUnit* icu::MeasureUnit::createSquareKilometer(UErrorCodestatus)
static

Returns by pointer, unit of area: square-kilometer.

Caller owns returned value and must free it. Also seegetSquareKilometer().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareMeter()

staticMeasureUnit* icu::MeasureUnit::createSquareMeter(UErrorCodestatus)
static

Returns by pointer, unit of area: square-meter.

Caller owns returned value and must free it. Also seegetSquareMeter().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareMile()

staticMeasureUnit* icu::MeasureUnit::createSquareMile(UErrorCodestatus)
static

Returns by pointer, unit of area: square-mile.

Caller owns returned value and must free it. Also seegetSquareMile().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareYard()

staticMeasureUnit* icu::MeasureUnit::createSquareYard(UErrorCodestatus)
static

Returns by pointer, unit of area: square-yard.

Caller owns returned value and must free it. Also seegetSquareYard().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSteradian()

staticMeasureUnit* icu::MeasureUnit::createSteradian(UErrorCodestatus)
static

Returns by pointer, unit of angle: steradian.

Caller owns returned value and must free it. Also seegetSteradian().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createStone()

staticMeasureUnit* icu::MeasureUnit::createStone(UErrorCodestatus)
static

Returns by pointer, unit of mass: stone.

Caller owns returned value and must free it. Also seegetStone().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSun()

staticMeasureUnit* icu::MeasureUnit::createSun(UErrorCodestatus)
static

Returns by pointer, unit of length: sun.

Caller owns returned value and must free it. Also seegetSun().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createTablespoon()

staticMeasureUnit* icu::MeasureUnit::createTablespoon(UErrorCodestatus)
static

Returns by pointer, unit of volume: tablespoon.

Caller owns returned value and must free it. Also seegetTablespoon().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTeaspoon()

staticMeasureUnit* icu::MeasureUnit::createTeaspoon(UErrorCodestatus)
static

Returns by pointer, unit of volume: teaspoon.

Caller owns returned value and must free it. Also seegetTeaspoon().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTerabit()

staticMeasureUnit* icu::MeasureUnit::createTerabit(UErrorCodestatus)
static

Returns by pointer, unit of digital: terabit.

Caller owns returned value and must free it. Also seegetTerabit().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTerabyte()

staticMeasureUnit* icu::MeasureUnit::createTerabyte(UErrorCodestatus)
static

Returns by pointer, unit of digital: terabyte.

Caller owns returned value and must free it. Also seegetTerabyte().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTesla()

staticMeasureUnit* icu::MeasureUnit::createTesla(UErrorCodestatus)
static

Returns by pointer, unit of magnetic: tesla.

Caller owns returned value and must free it. Also seegetTesla().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createThermUs()

staticMeasureUnit* icu::MeasureUnit::createThermUs(UErrorCodestatus)
static

Returns by pointer, unit of energy: therm-us.

Caller owns returned value and must free it. Also seegetThermUs().

Parameters
statusICU error code.
Stable:
ICU 65

◆ createToJp()

staticMeasureUnit* icu::MeasureUnit::createToJp(UErrorCodestatus)
static

Returns by pointer, unit of volume: to-jp.

Caller owns returned value and must free it. Also seegetToJp().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createTon()

staticMeasureUnit* icu::MeasureUnit::createTon(UErrorCodestatus)
static

Returns by pointer, unit of mass: ton.

Caller owns returned value and must free it. Also seegetTon().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTonne()

staticMeasureUnit* icu::MeasureUnit::createTonne(UErrorCodestatus)
static

Returns by pointer, unit of mass: tonne.

Caller owns returned value and must free it. Also seegetTonne().

Parameters
statusICU error code.
Stable:
ICU 72

◆ createVolt()

staticMeasureUnit* icu::MeasureUnit::createVolt(UErrorCodestatus)
static

Returns by pointer, unit of electric: volt.

Caller owns returned value and must free it. Also seegetVolt().

Parameters
statusICU error code.
Stable:
ICU 54

◆ createWatt()

staticMeasureUnit* icu::MeasureUnit::createWatt(UErrorCodestatus)
static

Returns by pointer, unit of power: watt.

Caller owns returned value and must free it. Also seegetWatt().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createWeber()

staticMeasureUnit* icu::MeasureUnit::createWeber(UErrorCodestatus)
static

Returns by pointer, unit of magnetic: weber.

Caller owns returned value and must free it. Also seegetWeber().

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ createWeek()

staticMeasureUnit* icu::MeasureUnit::createWeek(UErrorCodestatus)
static

Returns by pointer, unit of duration: week.

Caller owns returned value and must free it. Also seegetWeek().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createWeekPerson()

staticMeasureUnit* icu::MeasureUnit::createWeekPerson(UErrorCodestatus)
static

Returns by pointer, unit of duration: week-person.

Caller owns returned value and must free it. Also seegetWeekPerson().

Parameters
statusICU error code.
Stable:
ICU 64

◆ createYard()

staticMeasureUnit* icu::MeasureUnit::createYard(UErrorCodestatus)
static

Returns by pointer, unit of length: yard.

Caller owns returned value and must free it. Also seegetYard().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createYear()

staticMeasureUnit* icu::MeasureUnit::createYear(UErrorCodestatus)
static

Returns by pointer, unit of duration: year.

Caller owns returned value and must free it. Also seegetYear().

Parameters
statusICU error code.
Stable:
ICU 53

◆ createYearPerson()

staticMeasureUnit* icu::MeasureUnit::createYearPerson(UErrorCodestatus)
static

Returns by pointer, unit of duration: year-person.

Caller owns returned value and must free it. Also seegetYearPerson().

Parameters
statusICU error code.
Stable:
ICU 64

◆ forIdentifier()

staticMeasureUnit icu::MeasureUnit::forIdentifier(StringPiece identifier,
UErrorCodestatus 
)
static

Constructs aMeasureUnit from a CLDR Core Unit Identifier, as defined in UTS 35.

This method supports core unit identifiers and mixed unit identifiers. It validates and canonicalizes the given identifier.

Example usage:

MeasureUnit example =MeasureUnit::forIdentifier("meter-per-second", status);
Parameters
identifierthe CLDR Unit Identifier
statusSet error if the identifier is invalid.
Returns
the correspondingMeasureUnit
Stable:
ICU 67

◆ getAcre()

staticMeasureUnit icu::MeasureUnit::getAcre()
static

Returns by value, unit of area: acre.

Also seecreateAcre().

Stable:
ICU 64

◆ getAcreFoot()

staticMeasureUnit icu::MeasureUnit::getAcreFoot()
static

Returns by value, unit of volume: acre-foot.

Also seecreateAcreFoot().

Stable:
ICU 64

◆ getAmpere()

staticMeasureUnit icu::MeasureUnit::getAmpere()
static

Returns by value, unit of electric: ampere.

Also seecreateAmpere().

Stable:
ICU 64

◆ getArcMinute()

staticMeasureUnit icu::MeasureUnit::getArcMinute()
static

Returns by value, unit of angle: arc-minute.

Also seecreateArcMinute().

Stable:
ICU 64

◆ getArcSecond()

staticMeasureUnit icu::MeasureUnit::getArcSecond()
static

Returns by value, unit of angle: arc-second.

Also seecreateArcSecond().

Stable:
ICU 64

◆ getAstronomicalUnit()

staticMeasureUnit icu::MeasureUnit::getAstronomicalUnit()
static

Returns by value, unit of length: astronomical-unit.

Also seecreateAstronomicalUnit().

Stable:
ICU 64

◆ getAtmosphere()

staticMeasureUnit icu::MeasureUnit::getAtmosphere()
static

Returns by value, unit of pressure: atmosphere.

Also seecreateAtmosphere().

Stable:
ICU 64

◆ getAvailable()[1/2]

static int32_t icu::MeasureUnit::getAvailable(const char * type,
MeasureUnitdestArray,
int32_t destCapacity,
UErrorCodeerrorCode 
)
static

getAvailable gets all of the available units for a specific type.

If there are too many units to fit into destCapacity then the error code is set to U_BUFFER_OVERFLOW_ERROR.

Parameters
typethe type
destArraydestination buffer.
destCapacitynumber ofMeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units for type.
Stable:
ICU 53

◆ getAvailable()[2/2]

static int32_t icu::MeasureUnit::getAvailable(MeasureUnitdestArray,
int32_t destCapacity,
UErrorCodeerrorCode 
)
static

getAvailable gets all of the available units.

If there are too many units to fit into destCapacity then the error code is set to U_BUFFER_OVERFLOW_ERROR.

Parameters
destArraydestination buffer.
destCapacitynumber ofMeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units.
Stable:
ICU 53

◆ getAvailableTypes()

staticStringEnumeration* icu::MeasureUnit::getAvailableTypes(UErrorCodeerrorCode)
static

getAvailableTypes gets all of the available types.

Caller owns the returnedStringEnumeration and must delete it when finished using it.

Parameters
errorCodeICU error code.
Returns
the types.
Stable:
ICU 53

◆ getBar()

staticMeasureUnit icu::MeasureUnit::getBar()
static

Returns by value, unit of pressure: bar.

Also seecreateBar().

Stable:
ICU 65

◆ getBarrel()

staticMeasureUnit icu::MeasureUnit::getBarrel()
static

Returns by value, unit of volume: barrel.

Also seecreateBarrel().

Stable:
ICU 64

◆ getBeaufort()

staticMeasureUnit icu::MeasureUnit::getBeaufort()
static

Returns by value, unit of speed: beaufort.

Also seecreateBeaufort().

Stable:
ICU 73

◆ getBecquerel()

staticMeasureUnit icu::MeasureUnit::getBecquerel()
static

Returns by value, unit of energy: becquerel.

Also seecreateBecquerel().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getBit()

staticMeasureUnit icu::MeasureUnit::getBit()
static

Returns by value, unit of digital: bit.

Also seecreateBit().

Stable:
ICU 64

◆ getBritishThermalUnit()

staticMeasureUnit icu::MeasureUnit::getBritishThermalUnit()
static

Returns by value, unit of energy: british-thermal-unit.

Also seecreateBritishThermalUnit().

Stable:
ICU 64

◆ getBritishThermalUnitIt()

staticMeasureUnit icu::MeasureUnit::getBritishThermalUnitIt()
static

Returns by value, unit of energy: british-thermal-unit-it.

Also seecreateBritishThermalUnitIt().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getBuJp()

staticMeasureUnit icu::MeasureUnit::getBuJp()
static

Returns by value, unit of area: bu-jp.

Also seecreateBuJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getBushel()

staticMeasureUnit icu::MeasureUnit::getBushel()
static

Returns by value, unit of volume: bushel.

Also seecreateBushel().

Stable:
ICU 64

◆ getByte()

staticMeasureUnit icu::MeasureUnit::getByte()
static

Returns by value, unit of digital: byte.

Also seecreateByte().

Stable:
ICU 64

◆ getCalorie()

staticMeasureUnit icu::MeasureUnit::getCalorie()
static

Returns by value, unit of energy: calorie.

Also seecreateCalorie().

Stable:
ICU 64

◆ getCalorieIt()

staticMeasureUnit icu::MeasureUnit::getCalorieIt()
static

Returns by value, unit of energy: calorie-it.

Also seecreateCalorieIt().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getCandela()

staticMeasureUnit icu::MeasureUnit::getCandela()
static

Returns by value, unit of light: candela.

Also seecreateCandela().

Stable:
ICU 68

◆ getCarat()

staticMeasureUnit icu::MeasureUnit::getCarat()
static

Returns by value, unit of mass: carat.

Also seecreateCarat().

Stable:
ICU 64

◆ getCelsius()

staticMeasureUnit icu::MeasureUnit::getCelsius()
static

Returns by value, unit of temperature: celsius.

Also seecreateCelsius().

Stable:
ICU 64

◆ getCentiliter()

staticMeasureUnit icu::MeasureUnit::getCentiliter()
static

Returns by value, unit of volume: centiliter.

Also seecreateCentiliter().

Stable:
ICU 64

◆ getCentimeter()

staticMeasureUnit icu::MeasureUnit::getCentimeter()
static

Returns by value, unit of length: centimeter.

Also seecreateCentimeter().

Stable:
ICU 64

◆ getCentury()

staticMeasureUnit icu::MeasureUnit::getCentury()
static

Returns by value, unit of duration: century.

Also seecreateCentury().

Stable:
ICU 64

◆ getChain()

staticMeasureUnit icu::MeasureUnit::getChain()
static

Returns by value, unit of length: chain.

Also seecreateChain().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getCho()

staticMeasureUnit icu::MeasureUnit::getCho()
static

Returns by value, unit of area: cho.

Also seecreateCho().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getComplexity()

UMeasureUnitComplexity icu::MeasureUnit::getComplexity(UErrorCodestatus) const

Compute the complexity of the unit.

See UMeasureUnitComplexity for more information.

Parameters
statusSet if an error occurs.
Returns
The unit complexity.
Stable:
ICU 67

◆ getConstantDenominator()

uint64_t icu::MeasureUnit::getConstantDenominator(UErrorCodestatus) const

Retrieves the constant denominator for this COMPOUND unit.

Examples:

  • For the unit "liter-per-1000-kiloliter", the constant denominator is 1000.
  • For the unit "liter-per-kilometer", the constant denominator is zero.

This method is applicable only to COMPOUND and SINGLE units. If invoked on a MIXED unit, an error will be set in the status.

NOTE: If no constant denominator exists, the method returns 0.

Parameters
statusSet if this is not a COMPOUND or SINGLE unit or if another error occurs.
Returns
The value of the constant denominator.
Draft:
This API may be changed in the future versions and was introduced in ICU 77

◆ getCoulomb()

staticMeasureUnit icu::MeasureUnit::getCoulomb()
static

Returns by value, unit of electric: coulomb.

Also seecreateCoulomb().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getCubicCentimeter()

staticMeasureUnit icu::MeasureUnit::getCubicCentimeter()
static

Returns by value, unit of volume: cubic-centimeter.

Also seecreateCubicCentimeter().

Stable:
ICU 64

◆ getCubicFoot()

staticMeasureUnit icu::MeasureUnit::getCubicFoot()
static

Returns by value, unit of volume: cubic-foot.

Also seecreateCubicFoot().

Stable:
ICU 64

◆ getCubicInch()

staticMeasureUnit icu::MeasureUnit::getCubicInch()
static

Returns by value, unit of volume: cubic-inch.

Also seecreateCubicInch().

Stable:
ICU 64

◆ getCubicKilometer()

staticMeasureUnit icu::MeasureUnit::getCubicKilometer()
static

Returns by value, unit of volume: cubic-kilometer.

Also seecreateCubicKilometer().

Stable:
ICU 64

◆ getCubicMeter()

staticMeasureUnit icu::MeasureUnit::getCubicMeter()
static

Returns by value, unit of volume: cubic-meter.

Also seecreateCubicMeter().

Stable:
ICU 64

◆ getCubicMile()

staticMeasureUnit icu::MeasureUnit::getCubicMile()
static

Returns by value, unit of volume: cubic-mile.

Also seecreateCubicMile().

Stable:
ICU 64

◆ getCubicYard()

staticMeasureUnit icu::MeasureUnit::getCubicYard()
static

Returns by value, unit of volume: cubic-yard.

Also seecreateCubicYard().

Stable:
ICU 64

◆ getCup()

staticMeasureUnit icu::MeasureUnit::getCup()
static

Returns by value, unit of volume: cup.

Also seecreateCup().

Stable:
ICU 64

◆ getCupImperial()

staticMeasureUnit icu::MeasureUnit::getCupImperial()
static

Returns by value, unit of volume: cup-imperial.

Also seecreateCupImperial().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getCupJp()

staticMeasureUnit icu::MeasureUnit::getCupJp()
static

Returns by value, unit of volume: cup-jp.

Also seecreateCupJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getCupMetric()

staticMeasureUnit icu::MeasureUnit::getCupMetric()
static

Returns by value, unit of volume: cup-metric.

Also seecreateCupMetric().

Stable:
ICU 64

◆ getDalton()

staticMeasureUnit icu::MeasureUnit::getDalton()
static

Returns by value, unit of mass: dalton.

Also seecreateDalton().

Stable:
ICU 64

◆ getDay()

staticMeasureUnit icu::MeasureUnit::getDay()
static

Returns by value, unit of duration: day.

Also seecreateDay().

Stable:
ICU 64

◆ getDayPerson()

staticMeasureUnit icu::MeasureUnit::getDayPerson()
static

Returns by value, unit of duration: day-person.

Also seecreateDayPerson().

Stable:
ICU 64

◆ getDecade()

staticMeasureUnit icu::MeasureUnit::getDecade()
static

Returns by value, unit of duration: decade.

Also seecreateDecade().

Stable:
ICU 65

◆ getDeciliter()

staticMeasureUnit icu::MeasureUnit::getDeciliter()
static

Returns by value, unit of volume: deciliter.

Also seecreateDeciliter().

Stable:
ICU 64

◆ getDecimeter()

staticMeasureUnit icu::MeasureUnit::getDecimeter()
static

Returns by value, unit of length: decimeter.

Also seecreateDecimeter().

Stable:
ICU 64

◆ getDegree()

staticMeasureUnit icu::MeasureUnit::getDegree()
static

Returns by value, unit of angle: degree.

Also seecreateDegree().

Stable:
ICU 64

◆ getDessertSpoon()

staticMeasureUnit icu::MeasureUnit::getDessertSpoon()
static

Returns by value, unit of volume: dessert-spoon.

Also seecreateDessertSpoon().

Stable:
ICU 68

◆ getDessertSpoonImperial()

staticMeasureUnit icu::MeasureUnit::getDessertSpoonImperial()
static

Returns by value, unit of volume: dessert-spoon-imperial.

Also seecreateDessertSpoonImperial().

Stable:
ICU 68

◆ getDimensionality()

int32_t icu::MeasureUnit::getDimensionality(UErrorCodestatus) const

Gets the dimensionality (power) of thisMeasureUnit.

For example, if the unit is square, then 2 is returned.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

For the base dimensionless unit, getDimensionality returns 0.

Parameters
statusSet if this is not a SINGLE unit or if another error occurs.
Returns
The dimensionality (power) of this simple unit.
Stable:
ICU 67

◆ getDot()

staticMeasureUnit icu::MeasureUnit::getDot()
static

Returns by value, unit of graphics: dot.

Also seecreateDot().

Stable:
ICU 68

◆ getDotPerCentimeter()

staticMeasureUnit icu::MeasureUnit::getDotPerCentimeter()
static

Returns by value, unit of graphics: dot-per-centimeter.

Also seecreateDotPerCentimeter().

Stable:
ICU 65

◆ getDotPerInch()

staticMeasureUnit icu::MeasureUnit::getDotPerInch()
static

Returns by value, unit of graphics: dot-per-inch.

Also seecreateDotPerInch().

Stable:
ICU 65

◆ getDram()

staticMeasureUnit icu::MeasureUnit::getDram()
static

Returns by value, unit of volume: dram.

Also seecreateDram().

Stable:
ICU 68

◆ getDrop()

staticMeasureUnit icu::MeasureUnit::getDrop()
static

Returns by value, unit of volume: drop.

Also seecreateDrop().

Stable:
ICU 68

◆ getDunam()

staticMeasureUnit icu::MeasureUnit::getDunam()
static

Returns by value, unit of area: dunam.

Also seecreateDunam().

Stable:
ICU 64

◆ getDynamicClassID()

virtualUClassID icu::MeasureUnit::getDynamicClassID() const
overridevirtual

Returns a unique class ID POLYMORPHICALLY.

Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphicoperator==() andclone() methods call this method.

Returns
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
Stable:
ICU 53

Reimplemented fromicu::UObject.

Reimplemented inicu::TimeUnit, andicu::CurrencyUnit.

◆ getEarthMass()

staticMeasureUnit icu::MeasureUnit::getEarthMass()
static

Returns by value, unit of mass: earth-mass.

Also seecreateEarthMass().

Stable:
ICU 64

◆ getEarthRadius()

staticMeasureUnit icu::MeasureUnit::getEarthRadius()
static

Returns by value, unit of length: earth-radius.

Also seecreateEarthRadius().

Stable:
ICU 68

◆ getElectronvolt()

staticMeasureUnit icu::MeasureUnit::getElectronvolt()
static

Returns by value, unit of energy: electronvolt.

Also seecreateElectronvolt().

Stable:
ICU 64

◆ getEm()

staticMeasureUnit icu::MeasureUnit::getEm()
static

Returns by value, unit of graphics: em.

Also seecreateEm().

Stable:
ICU 65

◆ getFahrenheit()

staticMeasureUnit icu::MeasureUnit::getFahrenheit()
static

Returns by value, unit of temperature: fahrenheit.

Also seecreateFahrenheit().

Stable:
ICU 64

◆ getFarad()

staticMeasureUnit icu::MeasureUnit::getFarad()
static

Returns by value, unit of electric: farad.

Also seecreateFarad().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getFathom()

staticMeasureUnit icu::MeasureUnit::getFathom()
static

Returns by value, unit of length: fathom.

Also seecreateFathom().

Stable:
ICU 64

◆ getFluidOunce()

staticMeasureUnit icu::MeasureUnit::getFluidOunce()
static

Returns by value, unit of volume: fluid-ounce.

Also seecreateFluidOunce().

Stable:
ICU 64

◆ getFluidOunceImperial()

staticMeasureUnit icu::MeasureUnit::getFluidOunceImperial()
static

Returns by value, unit of volume: fluid-ounce-imperial.

Also seecreateFluidOunceImperial().

Stable:
ICU 64

◆ getFluidOunceMetric()

staticMeasureUnit icu::MeasureUnit::getFluidOunceMetric()
static

Returns by value, unit of volume: fluid-ounce-metric.

Also seecreateFluidOunceMetric().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getFoodcalorie()

staticMeasureUnit icu::MeasureUnit::getFoodcalorie()
static

Returns by value, unit of energy: foodcalorie.

Also seecreateFoodcalorie().

Stable:
ICU 64

◆ getFoot()

staticMeasureUnit icu::MeasureUnit::getFoot()
static

Returns by value, unit of length: foot.

Also seecreateFoot().

Stable:
ICU 64

◆ getFortnight()

staticMeasureUnit icu::MeasureUnit::getFortnight()
static

Returns by value, unit of duration: fortnight.

Also seecreateFortnight().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getFun()

staticMeasureUnit icu::MeasureUnit::getFun()
static

Returns by value, unit of mass: fun.

Also seecreateFun().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getFurlong()

staticMeasureUnit icu::MeasureUnit::getFurlong()
static

Returns by value, unit of length: furlong.

Also seecreateFurlong().

Stable:
ICU 64

◆ getGallon()

staticMeasureUnit icu::MeasureUnit::getGallon()
static

Returns by value, unit of volume: gallon.

Also seecreateGallon().

Stable:
ICU 64

◆ getGallonImperial()

staticMeasureUnit icu::MeasureUnit::getGallonImperial()
static

Returns by value, unit of volume: gallon-imperial.

Also seecreateGallonImperial().

Stable:
ICU 64

◆ getGasolineEnergyDensity()

staticMeasureUnit icu::MeasureUnit::getGasolineEnergyDensity()
static

Returns by value, unit of pressure: gasoline-energy-density.

Also seecreateGasolineEnergyDensity().

Stable:
ICU 74

◆ getGenericTemperature()

staticMeasureUnit icu::MeasureUnit::getGenericTemperature()
static

Returns by value, unit of temperature: generic.

Also seecreateGenericTemperature().

Stable:
ICU 64

◆ getGForce()

staticMeasureUnit icu::MeasureUnit::getGForce()
static

Returns by value, unit of acceleration: g-force.

Also seecreateGForce().

Stable:
ICU 64

◆ getGigabit()

staticMeasureUnit icu::MeasureUnit::getGigabit()
static

Returns by value, unit of digital: gigabit.

Also seecreateGigabit().

Stable:
ICU 64

◆ getGigabyte()

staticMeasureUnit icu::MeasureUnit::getGigabyte()
static

Returns by value, unit of digital: gigabyte.

Also seecreateGigabyte().

Stable:
ICU 64

◆ getGigahertz()

staticMeasureUnit icu::MeasureUnit::getGigahertz()
static

Returns by value, unit of frequency: gigahertz.

Also seecreateGigahertz().

Stable:
ICU 64

◆ getGigawatt()

staticMeasureUnit icu::MeasureUnit::getGigawatt()
static

Returns by value, unit of power: gigawatt.

Also seecreateGigawatt().

Stable:
ICU 64

◆ getGrain()

staticMeasureUnit icu::MeasureUnit::getGrain()
static

Returns by value, unit of mass: grain.

Also seecreateGrain().

Stable:
ICU 68

◆ getGram()

staticMeasureUnit icu::MeasureUnit::getGram()
static

Returns by value, unit of mass: gram.

Also seecreateGram().

Stable:
ICU 64

◆ getGray()

staticMeasureUnit icu::MeasureUnit::getGray()
static

Returns by value, unit of energy: gray.

Also seecreateGray().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getHectare()

staticMeasureUnit icu::MeasureUnit::getHectare()
static

Returns by value, unit of area: hectare.

Also seecreateHectare().

Stable:
ICU 64

◆ getHectoliter()

staticMeasureUnit icu::MeasureUnit::getHectoliter()
static

Returns by value, unit of volume: hectoliter.

Also seecreateHectoliter().

Stable:
ICU 64

◆ getHectopascal()

staticMeasureUnit icu::MeasureUnit::getHectopascal()
static

Returns by value, unit of pressure: hectopascal.

Also seecreateHectopascal().

Stable:
ICU 64

◆ getHenry()

staticMeasureUnit icu::MeasureUnit::getHenry()
static

Returns by value, unit of electric: henry.

Also seecreateHenry().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getHertz()

staticMeasureUnit icu::MeasureUnit::getHertz()
static

Returns by value, unit of frequency: hertz.

Also seecreateHertz().

Stable:
ICU 64

◆ getHorsepower()

staticMeasureUnit icu::MeasureUnit::getHorsepower()
static

Returns by value, unit of power: horsepower.

Also seecreateHorsepower().

Stable:
ICU 64

◆ getHour()

staticMeasureUnit icu::MeasureUnit::getHour()
static

Returns by value, unit of duration: hour.

Also seecreateHour().

Stable:
ICU 64

◆ getIdentifier()

const char* icu::MeasureUnit::getIdentifier() const

Get CLDR Unit Identifier for thisMeasureUnit, as defined in UTS 35.

Returns
The string form of this unit, owned by thisMeasureUnit.
Stable:
ICU 67

◆ getInch()

staticMeasureUnit icu::MeasureUnit::getInch()
static

Returns by value, unit of length: inch.

Also seecreateInch().

Stable:
ICU 64

◆ getInchHg()

staticMeasureUnit icu::MeasureUnit::getInchHg()
static

Returns by value, unit of pressure: inch-ofhg.

Also seecreateInchHg().

Stable:
ICU 64

◆ getItem()

staticMeasureUnit icu::MeasureUnit::getItem()
static

Returns by value, unit of concentr: item.

Also seecreateItem().

Stable:
ICU 70

◆ getJigger()

staticMeasureUnit icu::MeasureUnit::getJigger()
static

Returns by value, unit of volume: jigger.

Also seecreateJigger().

Stable:
ICU 68

◆ getJoJp()

staticMeasureUnit icu::MeasureUnit::getJoJp()
static

Returns by value, unit of length: jo-jp.

Also seecreateJoJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getJoule()

staticMeasureUnit icu::MeasureUnit::getJoule()
static

Returns by value, unit of energy: joule.

Also seecreateJoule().

Stable:
ICU 64

◆ getKarat()

staticMeasureUnit icu::MeasureUnit::getKarat()
static

Returns by value, unit of concentr: karat.

Also seecreateKarat().

Stable:
ICU 64

◆ getKatal()

staticMeasureUnit icu::MeasureUnit::getKatal()
static

Returns by value, unit of concentr: katal.

Also seecreateKatal().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getKelvin()

staticMeasureUnit icu::MeasureUnit::getKelvin()
static

Returns by value, unit of temperature: kelvin.

Also seecreateKelvin().

Stable:
ICU 64

◆ getKen()

staticMeasureUnit icu::MeasureUnit::getKen()
static

Returns by value, unit of length: ken.

Also seecreateKen().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getKilobit()

staticMeasureUnit icu::MeasureUnit::getKilobit()
static

Returns by value, unit of digital: kilobit.

Also seecreateKilobit().

Stable:
ICU 64

◆ getKilobyte()

staticMeasureUnit icu::MeasureUnit::getKilobyte()
static

Returns by value, unit of digital: kilobyte.

Also seecreateKilobyte().

Stable:
ICU 64

◆ getKilocalorie()

staticMeasureUnit icu::MeasureUnit::getKilocalorie()
static

Returns by value, unit of energy: kilocalorie.

Also seecreateKilocalorie().

Stable:
ICU 64

◆ getKilogram()

staticMeasureUnit icu::MeasureUnit::getKilogram()
static

Returns by value, unit of mass: kilogram.

Also seecreateKilogram().

Stable:
ICU 64

◆ getKilogramForce()

staticMeasureUnit icu::MeasureUnit::getKilogramForce()
static

Returns by value, unit of force: kilogram-force.

Also seecreateKilogramForce().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getKilohertz()

staticMeasureUnit icu::MeasureUnit::getKilohertz()
static

Returns by value, unit of frequency: kilohertz.

Also seecreateKilohertz().

Stable:
ICU 64

◆ getKilojoule()

staticMeasureUnit icu::MeasureUnit::getKilojoule()
static

Returns by value, unit of energy: kilojoule.

Also seecreateKilojoule().

Stable:
ICU 64

◆ getKilometer()

staticMeasureUnit icu::MeasureUnit::getKilometer()
static

Returns by value, unit of length: kilometer.

Also seecreateKilometer().

Stable:
ICU 64

◆ getKilometerPerHour()

staticMeasureUnit icu::MeasureUnit::getKilometerPerHour()
static

Returns by value, unit of speed: kilometer-per-hour.

Also seecreateKilometerPerHour().

Stable:
ICU 64

◆ getKilopascal()

staticMeasureUnit icu::MeasureUnit::getKilopascal()
static

Returns by value, unit of pressure: kilopascal.

Also seecreateKilopascal().

Stable:
ICU 64

◆ getKilowatt()

staticMeasureUnit icu::MeasureUnit::getKilowatt()
static

Returns by value, unit of power: kilowatt.

Also seecreateKilowatt().

Stable:
ICU 64

◆ getKilowattHour()

staticMeasureUnit icu::MeasureUnit::getKilowattHour()
static

Returns by value, unit of energy: kilowatt-hour.

Also seecreateKilowattHour().

Stable:
ICU 64

◆ getKilowattHourPer100Kilometer()

staticMeasureUnit icu::MeasureUnit::getKilowattHourPer100Kilometer()
static

Returns by value, unit of force: kilowatt-hour-per-100-kilometer.

Also seecreateKilowattHourPer100Kilometer().

Stable:
ICU 70

◆ getKnot()

staticMeasureUnit icu::MeasureUnit::getKnot()
static

Returns by value, unit of speed: knot.

Also seecreateKnot().

Stable:
ICU 64

◆ getKoku()

staticMeasureUnit icu::MeasureUnit::getKoku()
static

Returns by value, unit of volume: koku.

Also seecreateKoku().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getKosaji()

staticMeasureUnit icu::MeasureUnit::getKosaji()
static

Returns by value, unit of volume: kosaji.

Also seecreateKosaji().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getLightSpeed()

staticMeasureUnit icu::MeasureUnit::getLightSpeed()
static

Returns by value, unit of speed: light-speed.

Also seecreateLightSpeed().

Stable:
ICU 76

◆ getLightYear()

staticMeasureUnit icu::MeasureUnit::getLightYear()
static

Returns by value, unit of length: light-year.

Also seecreateLightYear().

Stable:
ICU 64

◆ getLiter()

staticMeasureUnit icu::MeasureUnit::getLiter()
static

Returns by value, unit of volume: liter.

Also seecreateLiter().

Stable:
ICU 64

◆ getLiterPer100Kilometers()

staticMeasureUnit icu::MeasureUnit::getLiterPer100Kilometers()
static

Returns by value, unit of consumption: liter-per-100-kilometer.

Also seecreateLiterPer100Kilometers().

Stable:
ICU 64

◆ getLiterPerKilometer()

staticMeasureUnit icu::MeasureUnit::getLiterPerKilometer()
static

Returns by value, unit of consumption: liter-per-kilometer.

Also seecreateLiterPerKilometer().

Stable:
ICU 64

◆ getLumen()

staticMeasureUnit icu::MeasureUnit::getLumen()
static

Returns by value, unit of light: lumen.

Also seecreateLumen().

Stable:
ICU 68

◆ getLux()

staticMeasureUnit icu::MeasureUnit::getLux()
static

Returns by value, unit of light: lux.

Also seecreateLux().

Stable:
ICU 64

◆ getMegabit()

staticMeasureUnit icu::MeasureUnit::getMegabit()
static

Returns by value, unit of digital: megabit.

Also seecreateMegabit().

Stable:
ICU 64

◆ getMegabyte()

staticMeasureUnit icu::MeasureUnit::getMegabyte()
static

Returns by value, unit of digital: megabyte.

Also seecreateMegabyte().

Stable:
ICU 64

◆ getMegahertz()

staticMeasureUnit icu::MeasureUnit::getMegahertz()
static

Returns by value, unit of frequency: megahertz.

Also seecreateMegahertz().

Stable:
ICU 64

◆ getMegaliter()

staticMeasureUnit icu::MeasureUnit::getMegaliter()
static

Returns by value, unit of volume: megaliter.

Also seecreateMegaliter().

Stable:
ICU 64

◆ getMegapascal()

staticMeasureUnit icu::MeasureUnit::getMegapascal()
static

Returns by value, unit of pressure: megapascal.

Also seecreateMegapascal().

Stable:
ICU 64

◆ getMegapixel()

staticMeasureUnit icu::MeasureUnit::getMegapixel()
static

Returns by value, unit of graphics: megapixel.

Also seecreateMegapixel().

Stable:
ICU 65

◆ getMegawatt()

staticMeasureUnit icu::MeasureUnit::getMegawatt()
static

Returns by value, unit of power: megawatt.

Also seecreateMegawatt().

Stable:
ICU 64

◆ getMeter()

staticMeasureUnit icu::MeasureUnit::getMeter()
static

Returns by value, unit of length: meter.

Also seecreateMeter().

Stable:
ICU 64

◆ getMeterPerSecond()

staticMeasureUnit icu::MeasureUnit::getMeterPerSecond()
static

Returns by value, unit of speed: meter-per-second.

Also seecreateMeterPerSecond().

Stable:
ICU 64

◆ getMeterPerSecondSquared()

staticMeasureUnit icu::MeasureUnit::getMeterPerSecondSquared()
static

Returns by value, unit of acceleration: meter-per-square-second.

Also seecreateMeterPerSecondSquared().

Stable:
ICU 64

◆ getMetricTon()

staticMeasureUnit icu::MeasureUnit::getMetricTon()
static

Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).

Also seecreateMetricTon() andgetTonne().

Deprecated:
ICU 78 usegetTonne()

◆ getMicrogram()

staticMeasureUnit icu::MeasureUnit::getMicrogram()
static

Returns by value, unit of mass: microgram.

Also seecreateMicrogram().

Stable:
ICU 64

◆ getMicrometer()

staticMeasureUnit icu::MeasureUnit::getMicrometer()
static

Returns by value, unit of length: micrometer.

Also seecreateMicrometer().

Stable:
ICU 64

◆ getMicrosecond()

staticMeasureUnit icu::MeasureUnit::getMicrosecond()
static

Returns by value, unit of duration: microsecond.

Also seecreateMicrosecond().

Stable:
ICU 64

◆ getMile()

staticMeasureUnit icu::MeasureUnit::getMile()
static

Returns by value, unit of length: mile.

Also seecreateMile().

Stable:
ICU 64

◆ getMilePerGallon()

staticMeasureUnit icu::MeasureUnit::getMilePerGallon()
static

Returns by value, unit of consumption: mile-per-gallon.

Also seecreateMilePerGallon().

Stable:
ICU 64

◆ getMilePerGallonImperial()

staticMeasureUnit icu::MeasureUnit::getMilePerGallonImperial()
static

Returns by value, unit of consumption: mile-per-gallon-imperial.

Also seecreateMilePerGallonImperial().

Stable:
ICU 64

◆ getMilePerHour()

staticMeasureUnit icu::MeasureUnit::getMilePerHour()
static

Returns by value, unit of speed: mile-per-hour.

Also seecreateMilePerHour().

Stable:
ICU 64

◆ getMileScandinavian()

staticMeasureUnit icu::MeasureUnit::getMileScandinavian()
static

Returns by value, unit of length: mile-scandinavian.

Also seecreateMileScandinavian().

Stable:
ICU 64

◆ getMilliampere()

staticMeasureUnit icu::MeasureUnit::getMilliampere()
static

Returns by value, unit of electric: milliampere.

Also seecreateMilliampere().

Stable:
ICU 64

◆ getMillibar()

staticMeasureUnit icu::MeasureUnit::getMillibar()
static

Returns by value, unit of pressure: millibar.

Also seecreateMillibar().

Stable:
ICU 64

◆ getMilligram()

staticMeasureUnit icu::MeasureUnit::getMilligram()
static

Returns by value, unit of mass: milligram.

Also seecreateMilligram().

Stable:
ICU 64

◆ getMilligramOfglucosePerDeciliter()

staticMeasureUnit icu::MeasureUnit::getMilligramOfglucosePerDeciliter()
static

Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.

Also seecreateMilligramOfglucosePerDeciliter().

Stable:
ICU 69

◆ getMilligramPerDeciliter()

staticMeasureUnit icu::MeasureUnit::getMilligramPerDeciliter()
static

Returns by value, unit of concentr: milligram-per-deciliter.

(renamed to milligram-ofglucose-per-deciliter in CLDR 39 / ICU 69). Also seegetMilligramOfglucosePerDeciliter(). Also seecreateMilligramPerDeciliter().

Deprecated:
ICU 78 usegetMilligramOfglucosePerDeciliter()

◆ getMilliliter()

staticMeasureUnit icu::MeasureUnit::getMilliliter()
static

Returns by value, unit of volume: milliliter.

Also seecreateMilliliter().

Stable:
ICU 64

◆ getMillimeter()

staticMeasureUnit icu::MeasureUnit::getMillimeter()
static

Returns by value, unit of length: millimeter.

Also seecreateMillimeter().

Stable:
ICU 64

◆ getMillimeterOfMercury()

staticMeasureUnit icu::MeasureUnit::getMillimeterOfMercury()
static

Returns by value, unit of pressure: millimeter-ofhg.

Also seecreateMillimeterOfMercury().

Stable:
ICU 64

◆ getMillimolePerLiter()

staticMeasureUnit icu::MeasureUnit::getMillimolePerLiter()
static

Returns by value, unit of concentr: millimole-per-liter.

Also seecreateMillimolePerLiter().

Stable:
ICU 64

◆ getMillisecond()

staticMeasureUnit icu::MeasureUnit::getMillisecond()
static

Returns by value, unit of duration: millisecond.

Also seecreateMillisecond().

Stable:
ICU 64

◆ getMilliwatt()

staticMeasureUnit icu::MeasureUnit::getMilliwatt()
static

Returns by value, unit of power: milliwatt.

Also seecreateMilliwatt().

Stable:
ICU 64

◆ getMinute()

staticMeasureUnit icu::MeasureUnit::getMinute()
static

Returns by value, unit of duration: minute.

Also seecreateMinute().

Stable:
ICU 64

◆ getMole()

staticMeasureUnit icu::MeasureUnit::getMole()
static

Returns by value, unit of concentr: mole.

Also seecreateMole().

Stable:
ICU 64

◆ getMonth()

staticMeasureUnit icu::MeasureUnit::getMonth()
static

Returns by value, unit of duration: month.

Also seecreateMonth().

Stable:
ICU 64

◆ getMonthPerson()

staticMeasureUnit icu::MeasureUnit::getMonthPerson()
static

Returns by value, unit of duration: month-person.

Also seecreateMonthPerson().

Stable:
ICU 64

◆ getNanometer()

staticMeasureUnit icu::MeasureUnit::getNanometer()
static

Returns by value, unit of length: nanometer.

Also seecreateNanometer().

Stable:
ICU 64

◆ getNanosecond()

staticMeasureUnit icu::MeasureUnit::getNanosecond()
static

Returns by value, unit of duration: nanosecond.

Also seecreateNanosecond().

Stable:
ICU 64

◆ getNauticalMile()

staticMeasureUnit icu::MeasureUnit::getNauticalMile()
static

Returns by value, unit of length: nautical-mile.

Also seecreateNauticalMile().

Stable:
ICU 64

◆ getNewton()

staticMeasureUnit icu::MeasureUnit::getNewton()
static

Returns by value, unit of force: newton.

Also seecreateNewton().

Stable:
ICU 64

◆ getNewtonMeter()

staticMeasureUnit icu::MeasureUnit::getNewtonMeter()
static

Returns by value, unit of torque: newton-meter.

Also seecreateNewtonMeter().

Stable:
ICU 64

◆ getNight()

staticMeasureUnit icu::MeasureUnit::getNight()
static

Returns by value, unit of duration: night.

Also seecreateNight().

Stable:
ICU 76

◆ getOffset()

int32_t icu::MeasureUnit::getOffset() const

ICU use only.

Returns associated array index for this measure unit.

Internal:
Do not use. This API is for internal use only.

◆ getOfglucose()

staticMeasureUnit icu::MeasureUnit::getOfglucose()
static

Returns by value, unit of concentr: ofglucose.

Also seecreateOfglucose().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getOfhg()

staticMeasureUnit icu::MeasureUnit::getOfhg()
static

Returns by value, unit of pressure: ofhg.

Also seecreateOfhg().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getOhm()

staticMeasureUnit icu::MeasureUnit::getOhm()
static

Returns by value, unit of electric: ohm.

Also seecreateOhm().

Stable:
ICU 64

◆ getOsaji()

staticMeasureUnit icu::MeasureUnit::getOsaji()
static

Returns by value, unit of volume: osaji.

Also seecreateOsaji().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getOunce()

staticMeasureUnit icu::MeasureUnit::getOunce()
static

Returns by value, unit of mass: ounce.

Also seecreateOunce().

Stable:
ICU 64

◆ getOunceTroy()

staticMeasureUnit icu::MeasureUnit::getOunceTroy()
static

Returns by value, unit of mass: ounce-troy.

Also seecreateOunceTroy().

Stable:
ICU 64

◆ getParsec()

staticMeasureUnit icu::MeasureUnit::getParsec()
static

Returns by value, unit of length: parsec.

Also seecreateParsec().

Stable:
ICU 64

◆ getPart()

staticMeasureUnit icu::MeasureUnit::getPart()
static

Returns by value, unit of concentr: part.

Also seecreatePart().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getPartPer1E6()

staticMeasureUnit icu::MeasureUnit::getPartPer1E6()
static

Returns by value, unit of concentr: part-per-1e6.

Also seecreatePartPer1E6().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getPartPer1E9()

staticMeasureUnit icu::MeasureUnit::getPartPer1E9()
static

Returns by value, unit of concentr: part-per-1e9.

Also seecreatePartPer1E9().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getPartPerMillion()

staticMeasureUnit icu::MeasureUnit::getPartPerMillion()
static

Returns by value, unit of concentr: part-per-million.

(renamed to part-per-1e6 in CLDR 48 / ICU 78). Also seegetPartPer1E6(). Also seecreatePartPerMillion().

Stable:
ICU 64

◆ getPascal()

staticMeasureUnit icu::MeasureUnit::getPascal()
static

Returns by value, unit of pressure: pascal.

Also seecreatePascal().

Stable:
ICU 65

◆ getPercent()

staticMeasureUnit icu::MeasureUnit::getPercent()
static

Returns by value, unit of concentr: percent.

Also seecreatePercent().

Stable:
ICU 64

◆ getPermille()

staticMeasureUnit icu::MeasureUnit::getPermille()
static

Returns by value, unit of concentr: permille.

Also seecreatePermille().

Stable:
ICU 64

◆ getPermyriad()

staticMeasureUnit icu::MeasureUnit::getPermyriad()
static

Returns by value, unit of concentr: permyriad.

Also seecreatePermyriad().

Stable:
ICU 64

◆ getPetabyte()

staticMeasureUnit icu::MeasureUnit::getPetabyte()
static

Returns by value, unit of digital: petabyte.

Also seecreatePetabyte().

Stable:
ICU 64

◆ getPicometer()

staticMeasureUnit icu::MeasureUnit::getPicometer()
static

Returns by value, unit of length: picometer.

Also seecreatePicometer().

Stable:
ICU 64

◆ getPinch()

staticMeasureUnit icu::MeasureUnit::getPinch()
static

Returns by value, unit of volume: pinch.

Also seecreatePinch().

Stable:
ICU 68

◆ getPint()

staticMeasureUnit icu::MeasureUnit::getPint()
static

Returns by value, unit of volume: pint.

Also seecreatePint().

Stable:
ICU 64

◆ getPintImperial()

staticMeasureUnit icu::MeasureUnit::getPintImperial()
static

Returns by value, unit of volume: pint-imperial.

Also seecreatePintImperial().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getPintMetric()

staticMeasureUnit icu::MeasureUnit::getPintMetric()
static

Returns by value, unit of volume: pint-metric.

Also seecreatePintMetric().

Stable:
ICU 64

◆ getPixel()

staticMeasureUnit icu::MeasureUnit::getPixel()
static

Returns by value, unit of graphics: pixel.

Also seecreatePixel().

Stable:
ICU 65

◆ getPixelPerCentimeter()

staticMeasureUnit icu::MeasureUnit::getPixelPerCentimeter()
static

Returns by value, unit of graphics: pixel-per-centimeter.

Also seecreatePixelPerCentimeter().

Stable:
ICU 65

◆ getPixelPerInch()

staticMeasureUnit icu::MeasureUnit::getPixelPerInch()
static

Returns by value, unit of graphics: pixel-per-inch.

Also seecreatePixelPerInch().

Stable:
ICU 65

◆ getPoint()

staticMeasureUnit icu::MeasureUnit::getPoint()
static

Returns by value, unit of length: point.

Also seecreatePoint().

Stable:
ICU 64

◆ getPound()

staticMeasureUnit icu::MeasureUnit::getPound()
static

Returns by value, unit of mass: pound.

Also seecreatePound().

Stable:
ICU 64

◆ getPoundFoot()

staticMeasureUnit icu::MeasureUnit::getPoundFoot()
static

Returns by value, unit of torque: pound-force-foot.

Also seecreatePoundFoot().

Stable:
ICU 64

◆ getPoundForce()

staticMeasureUnit icu::MeasureUnit::getPoundForce()
static

Returns by value, unit of force: pound-force.

Also seecreatePoundForce().

Stable:
ICU 64

◆ getPoundPerSquareInch()

staticMeasureUnit icu::MeasureUnit::getPoundPerSquareInch()
static

Returns by value, unit of pressure: pound-force-per-square-inch.

Also seecreatePoundPerSquareInch().

Stable:
ICU 64

◆ getPrefix()

UMeasurePrefix icu::MeasureUnit::getPrefix(UErrorCodestatus) const

Returns the current SI or binary prefix of this SINGLE unit.

For example, if the unit has the prefix "kilo", then UMEASURE_PREFIX_KILO is returned.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

Parameters
statusSet if this is not a SINGLE unit or if another error occurs.
Returns
The prefix of this SINGLE unit, from UMeasurePrefix.
See also
umeas_getPrefixBase
umeas_getPrefixPower
Stable:
ICU 69

◆ getQuart()

staticMeasureUnit icu::MeasureUnit::getQuart()
static

Returns by value, unit of volume: quart.

Also seecreateQuart().

Stable:
ICU 64

◆ getQuarter()

staticMeasureUnit icu::MeasureUnit::getQuarter()
static

Returns by value, unit of duration: quarter.

Also seecreateQuarter().

Stable:
ICU 72

◆ getQuartImperial()

staticMeasureUnit icu::MeasureUnit::getQuartImperial()
static

Returns by value, unit of volume: quart-imperial.

Also seecreateQuartImperial().

Stable:
ICU 68

◆ getRadian()

staticMeasureUnit icu::MeasureUnit::getRadian()
static

Returns by value, unit of angle: radian.

Also seecreateRadian().

Stable:
ICU 64

◆ getRankine()

staticMeasureUnit icu::MeasureUnit::getRankine()
static

Returns by value, unit of temperature: rankine.

Also seecreateRankine().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getRevolutionAngle()

staticMeasureUnit icu::MeasureUnit::getRevolutionAngle()
static

Returns by value, unit of angle: revolution.

Also seecreateRevolutionAngle().

Stable:
ICU 64

◆ getRiJp()

staticMeasureUnit icu::MeasureUnit::getRiJp()
static

Returns by value, unit of length: ri-jp.

Also seecreateRiJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getRin()

staticMeasureUnit icu::MeasureUnit::getRin()
static

Returns by value, unit of length: rin.

Also seecreateRin().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getRod()

staticMeasureUnit icu::MeasureUnit::getRod()
static

Returns by value, unit of length: rod.

Also seecreateRod().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSai()

staticMeasureUnit icu::MeasureUnit::getSai()
static

Returns by value, unit of volume: sai.

Also seecreateSai().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSecond()

staticMeasureUnit icu::MeasureUnit::getSecond()
static

Returns by value, unit of duration: second.

Also seecreateSecond().

Stable:
ICU 64

◆ getSeJp()

staticMeasureUnit icu::MeasureUnit::getSeJp()
static

Returns by value, unit of area: se-jp.

Also seecreateSeJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getShaku()

staticMeasureUnit icu::MeasureUnit::getShaku()
static

Returns by value, unit of volume: shaku.

Also seecreateShaku().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getShakuCloth()

staticMeasureUnit icu::MeasureUnit::getShakuCloth()
static

Returns by value, unit of length: shaku-cloth.

Also seecreateShakuCloth().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getShakuLength()

staticMeasureUnit icu::MeasureUnit::getShakuLength()
static

Returns by value, unit of length: shaku-length.

Also seecreateShakuLength().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSiemens()

staticMeasureUnit icu::MeasureUnit::getSiemens()
static

Returns by value, unit of electric: siemens.

Also seecreateSiemens().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSievert()

staticMeasureUnit icu::MeasureUnit::getSievert()
static

Returns by value, unit of energy: sievert.

Also seecreateSievert().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSlug()

staticMeasureUnit icu::MeasureUnit::getSlug()
static

Returns by value, unit of mass: slug.

Also seecreateSlug().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getSolarLuminosity()

staticMeasureUnit icu::MeasureUnit::getSolarLuminosity()
static

Returns by value, unit of light: solar-luminosity.

Also seecreateSolarLuminosity().

Stable:
ICU 64

◆ getSolarMass()

staticMeasureUnit icu::MeasureUnit::getSolarMass()
static

Returns by value, unit of mass: solar-mass.

Also seecreateSolarMass().

Stable:
ICU 64

◆ getSolarRadius()

staticMeasureUnit icu::MeasureUnit::getSolarRadius()
static

Returns by value, unit of length: solar-radius.

Also seecreateSolarRadius().

Stable:
ICU 64

◆ getSquareCentimeter()

staticMeasureUnit icu::MeasureUnit::getSquareCentimeter()
static

Returns by value, unit of area: square-centimeter.

Also seecreateSquareCentimeter().

Stable:
ICU 64

◆ getSquareFoot()

staticMeasureUnit icu::MeasureUnit::getSquareFoot()
static

Returns by value, unit of area: square-foot.

Also seecreateSquareFoot().

Stable:
ICU 64

◆ getSquareInch()

staticMeasureUnit icu::MeasureUnit::getSquareInch()
static

Returns by value, unit of area: square-inch.

Also seecreateSquareInch().

Stable:
ICU 64

◆ getSquareKilometer()

staticMeasureUnit icu::MeasureUnit::getSquareKilometer()
static

Returns by value, unit of area: square-kilometer.

Also seecreateSquareKilometer().

Stable:
ICU 64

◆ getSquareMeter()

staticMeasureUnit icu::MeasureUnit::getSquareMeter()
static

Returns by value, unit of area: square-meter.

Also seecreateSquareMeter().

Stable:
ICU 64

◆ getSquareMile()

staticMeasureUnit icu::MeasureUnit::getSquareMile()
static

Returns by value, unit of area: square-mile.

Also seecreateSquareMile().

Stable:
ICU 64

◆ getSquareYard()

staticMeasureUnit icu::MeasureUnit::getSquareYard()
static

Returns by value, unit of area: square-yard.

Also seecreateSquareYard().

Stable:
ICU 64

◆ getStaticClassID()

staticUClassID icu::MeasureUnit::getStaticClassID()
static

Return the class ID for this class.

This is useful only for comparing to a return value fromgetDynamicClassID(). For example:

.   Base* polymorphic_pointer = createPolymorphicObject();.   if (polymorphic_pointer->getDynamicClassID() ==.       Derived::getStaticClassID()) ...
Returns
The class ID for all objects of this class.
Stable:
ICU 53

◆ getSteradian()

staticMeasureUnit icu::MeasureUnit::getSteradian()
static

Returns by value, unit of angle: steradian.

Also seecreateSteradian().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getStone()

staticMeasureUnit icu::MeasureUnit::getStone()
static

Returns by value, unit of mass: stone.

Also seecreateStone().

Stable:
ICU 64

◆ getSubtype()

const char* icu::MeasureUnit::getSubtype() const

Get the sub type.

If the unit does not have a subtype, the empty string is returned.

Stable:
ICU 53

◆ getSun()

staticMeasureUnit icu::MeasureUnit::getSun()
static

Returns by value, unit of length: sun.

Also seecreateSun().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getTablespoon()

staticMeasureUnit icu::MeasureUnit::getTablespoon()
static

Returns by value, unit of volume: tablespoon.

Also seecreateTablespoon().

Stable:
ICU 64

◆ getTeaspoon()

staticMeasureUnit icu::MeasureUnit::getTeaspoon()
static

Returns by value, unit of volume: teaspoon.

Also seecreateTeaspoon().

Stable:
ICU 64

◆ getTerabit()

staticMeasureUnit icu::MeasureUnit::getTerabit()
static

Returns by value, unit of digital: terabit.

Also seecreateTerabit().

Stable:
ICU 64

◆ getTerabyte()

staticMeasureUnit icu::MeasureUnit::getTerabyte()
static

Returns by value, unit of digital: terabyte.

Also seecreateTerabyte().

Stable:
ICU 64

◆ getTesla()

staticMeasureUnit icu::MeasureUnit::getTesla()
static

Returns by value, unit of magnetic: tesla.

Also seecreateTesla().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getThermUs()

staticMeasureUnit icu::MeasureUnit::getThermUs()
static

Returns by value, unit of energy: therm-us.

Also seecreateThermUs().

Stable:
ICU 65

◆ getToJp()

staticMeasureUnit icu::MeasureUnit::getToJp()
static

Returns by value, unit of volume: to-jp.

Also seecreateToJp().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getTon()

staticMeasureUnit icu::MeasureUnit::getTon()
static

Returns by value, unit of mass: ton.

Also seecreateTon().

Stable:
ICU 64

◆ getTonne()

staticMeasureUnit icu::MeasureUnit::getTonne()
static

Returns by value, unit of mass: tonne.

Also seecreateTonne().

Stable:
ICU 72

◆ getType()

const char* icu::MeasureUnit::getType() const

Get the type.

If the unit does not have a type, the empty string is returned.

Stable:
ICU 53

◆ getVolt()

staticMeasureUnit icu::MeasureUnit::getVolt()
static

Returns by value, unit of electric: volt.

Also seecreateVolt().

Stable:
ICU 64

◆ getWatt()

staticMeasureUnit icu::MeasureUnit::getWatt()
static

Returns by value, unit of power: watt.

Also seecreateWatt().

Stable:
ICU 64

◆ getWeber()

staticMeasureUnit icu::MeasureUnit::getWeber()
static

Returns by value, unit of magnetic: weber.

Also seecreateWeber().

Draft:
This API may be changed in the future versions and was introduced in ICU 78

◆ getWeek()

staticMeasureUnit icu::MeasureUnit::getWeek()
static

Returns by value, unit of duration: week.

Also seecreateWeek().

Stable:
ICU 64

◆ getWeekPerson()

staticMeasureUnit icu::MeasureUnit::getWeekPerson()
static

Returns by value, unit of duration: week-person.

Also seecreateWeekPerson().

Stable:
ICU 64

◆ getYard()

staticMeasureUnit icu::MeasureUnit::getYard()
static

Returns by value, unit of length: yard.

Also seecreateYard().

Stable:
ICU 64

◆ getYear()

staticMeasureUnit icu::MeasureUnit::getYear()
static

Returns by value, unit of duration: year.

Also seecreateYear().

Stable:
ICU 64

◆ getYearPerson()

staticMeasureUnit icu::MeasureUnit::getYearPerson()
static

Returns by value, unit of duration: year-person.

Also seecreateYearPerson().

Stable:
ICU 64

◆ initCurrency()

void icu::MeasureUnit::initCurrency(StringPiece isoCurrency)
protected

For ICU use only.

Internal:
Do not use. This API is for internal use only.

◆ initTime()

void icu::MeasureUnit::initTime(const char * timeId)
protected

For ICU use only.

Internal:
Do not use. This API is for internal use only.

◆ operator!=()

bool icu::MeasureUnit::operator!=(constUObjectother) const
inline

Inequality operator.

Return true if this object is not equal to the given object.

Stable:
ICU 53

Definition at line483 of filemeasunit.h.

◆ operator=()[1/2]

MeasureUnit& icu::MeasureUnit::operator=(constMeasureUnitother)

Copy assignment operator.

Stable:
ICU 3.0

◆ operator=()[2/2]

MeasureUnit& icu::MeasureUnit::operator=(MeasureUnit && other)
noexcept

Move assignment operator.

Stable:
ICU 67

◆ operator==()

virtual bool icu::MeasureUnit::operator==(constUObjectother) const
virtual

Equality operator.

Return true if this object is equal to the given object.

Stable:
ICU 3.0

◆ product()

MeasureUnit icu::MeasureUnit::product(constMeasureUnitother,
UErrorCodestatus 
) const

Gets the product of this unit with another unit.

This is a way to build units from constituent parts.

The numerator and denominator are preserved through this operation.

For example, if the receiver is "kilowatt" and the argument is "hour-per-day", then the unit "kilowatt-hour-per-day" is returned.

NOTE: Only works on SINGLE and COMPOUND units. If either unit (receiver and argument) is a MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

Parameters
otherTheMeasureUnit to multiply with the target.
statusSet if this or other is a MIXED unit or if another error occurs.
Returns
The product of the target unit with the provided unit.
Stable:
ICU 67

◆ reciprocal()

MeasureUnit icu::MeasureUnit::reciprocal(UErrorCodestatus) const

Gets the reciprocal of thisMeasureUnit, with the numerator and denominator flipped.

For example, if the receiver is "meter-per-second", the unit "second-per-meter" is returned.

NOTE: Only works on SINGLE and COMPOUND units. If this is a MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

NOTE: An Error will be returned for units that have a constant denominator.

Parameters
statusSet if this is a MIXED unit, has a constant denominator or if another error occurs.
Returns
The reciprocal of the target unit.
Stable:
ICU 67

◆ splitToSingleUnits()

std::pair<LocalArray<MeasureUnit >, int32_t > icu::MeasureUnit::splitToSingleUnits(UErrorCodestatus) const
inline

Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.

Examples:

  • Given "meter-kilogram-per-second", three units will be returned: "meter", "kilogram", and "per-second".
  • Given "hour+minute+second", three units will be returned: "hour", "minute", and "second".

If this is a SINGLE unit, an array of length 1 will be returned.

NOTE: For units with a constant denominator, the returned single units will not include the constant denominator. To obtain the constant denominator, retrieve it from the original unit.

Parameters
statusSet if an error occurs.
Returns
A pair with the list of units as aLocalArray and the number of units in the list.
Stable:
ICU 68

Definition at line4735 of filemeasunit.h.

◆ withConstantDenominator()

MeasureUnit icu::MeasureUnit::withConstantDenominator(uint64_t denominator,
UErrorCodestatus 
) const

Creates a newMeasureUnit with a specified constant denominator.

This method is applicable only to COMPOUND and SINGLE units. If invoked on a MIXED unit, an error will be set in the status.

NOTE: If the constant denominator is set to 0, it means that you are removing the constant denominator.

Parameters
denominatorThe constant denominator to set.
statusSet if this is not a COMPOUND or SINGLE unit or if another error occurs.
Returns
A newMeasureUnit with the specified constant denominator.
Draft:
This API may be changed in the future versions and was introduced in ICU 77

◆ withDimensionality()

MeasureUnit icu::MeasureUnit::withDimensionality(int32_t dimensionality,
UErrorCodestatus 
) const

Creates aMeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).

For example, if dimensionality is 2, the unit will be squared.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

For the base dimensionless unit, withDimensionality does nothing.

Parameters
dimensionalityThe dimensionality (power).
statusSet if this is not a SINGLE unit or if another error occurs.
Returns
A new SINGLE unit.
Stable:
ICU 67

◆ withPrefix()

MeasureUnit icu::MeasureUnit::withPrefix(UMeasurePrefix prefix,
UErrorCodestatus 
) const

Creates aMeasureUnit which is this SINGLE unit augmented with the specified prefix.

For example, UMEASURE_PREFIX_KILO for "kilo", or UMEASURE_PREFIX_KIBI for "kibi".

There is sufficient locale data to format all standard prefixes.

NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.

Parameters
prefixThe prefix, from UMeasurePrefix.
statusSet if this is not a SINGLE unit or if another error occurs.
Returns
A new SINGLE unit.
Stable:
ICU 69

The documentation for this class was generated from the following file:

Generated by doxygen 1.9.1
[8]ページ先頭

©2009-2025 Movatter.jp