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

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

#include <measunit.h>

Inheritance diagram for icu::MeasureUnit:
icu::UObject icu::UMemory icu::CurrencyUnit icu::NoUnit icu::TimeUnit

Public Member Functions

 MeasureUnit ()
 Default constructor. More...
 
 MeasureUnit (const MeasureUnit &other)
 Copy constructor. More...
 
MeasureUnitoperator= (const MeasureUnit &other)
 Assignment operator. More...
 
virtual MeasureUnitclone () const
 Returns a polymorphic clone of this object. More...
 
virtual ~MeasureUnit ()
 Destructor. More...
 
virtual UBool operator== (const UObject &other) const
 Equality operator. More...
 
UBool operator!= (const UObject &other) const
 Inequality operator. More...
 
const char * getType () const
 Get the type. More...
 
const char * getSubtype () const
 Get the sub type. More...
 
virtual UClassID getDynamicClassID (void) const
 Returns a unique class ID POLYMORPHICALLY. More...
 
int32_t getIndex () const
 ICU use only. More...
 
- Public Member Functions inherited from icu::UObject
virtual ~UObject ()
 Destructor. More...
 

Static Public Member Functions

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...
 
static StringEnumerationgetAvailableTypes (UErrorCode &errorCode)
 getAvailableTypes gets all of the available types. More...
 
static UClassID getStaticClassID (void)
 Return the class ID for this class. More...
 
static int32_t getIndexCount ()
 ICU use only. More...
 
static int32_t internalGetIndexForTypeAndSubtype (const char *type, const char *subtype)
 ICU use only. More...
 
static MeasureUnit resolveUnitPerUnit (const MeasureUnit &unit, const MeasureUnit &perUnit, bool *isResolved)
 ICU use only. More...
 
static MeasureUnitcreateGForce (UErrorCode &status)
 Returns by pointer, unit of acceleration: g-force. More...
 
static MeasureUnit getGForce ()
 Returns by value, unit of acceleration: g-force. More...
 
static MeasureUnitcreateMeterPerSecondSquared (UErrorCode &status)
 Returns by pointer, unit of acceleration: meter-per-second-squared. More...
 
static MeasureUnit getMeterPerSecondSquared ()
 Returns by value, unit of acceleration: meter-per-second-squared. More...
 
static MeasureUnitcreateArcMinute (UErrorCode &status)
 Returns by pointer, unit of angle: arc-minute. More...
 
static MeasureUnit getArcMinute ()
 Returns by value, unit of angle: arc-minute. More...
 
static MeasureUnitcreateArcSecond (UErrorCode &status)
 Returns by pointer, unit of angle: arc-second. More...
 
static MeasureUnit getArcSecond ()
 Returns by value, unit of angle: arc-second. More...
 
static MeasureUnitcreateDegree (UErrorCode &status)
 Returns by pointer, unit of angle: degree. More...
 
static MeasureUnit getDegree ()
 Returns by value, unit of angle: degree. More...
 
static MeasureUnitcreateRadian (UErrorCode &status)
 Returns by pointer, unit of angle: radian. More...
 
static MeasureUnit getRadian ()
 Returns by value, unit of angle: radian. More...
 
static MeasureUnitcreateRevolutionAngle (UErrorCode &status)
 Returns by pointer, unit of angle: revolution. More...
 
static MeasureUnit getRevolutionAngle ()
 Returns by value, unit of angle: revolution. More...
 
static MeasureUnitcreateAcre (UErrorCode &status)
 Returns by pointer, unit of area: acre. More...
 
static MeasureUnit getAcre ()
 Returns by value, unit of area: acre. More...
 
static MeasureUnitcreateDunam (UErrorCode &status)
 Returns by pointer, unit of area: dunam. More...
 
static MeasureUnit getDunam ()
 Returns by value, unit of area: dunam. More...
 
static MeasureUnitcreateHectare (UErrorCode &status)
 Returns by pointer, unit of area: hectare. More...
 
static MeasureUnit getHectare ()
 Returns by value, unit of area: hectare. More...
 
static MeasureUnitcreateSquareCentimeter (UErrorCode &status)
 Returns by pointer, unit of area: square-centimeter. More...
 
static MeasureUnit getSquareCentimeter ()
 Returns by value, unit of area: square-centimeter. More...
 
static MeasureUnitcreateSquareFoot (UErrorCode &status)
 Returns by pointer, unit of area: square-foot. More...
 
static MeasureUnit getSquareFoot ()
 Returns by value, unit of area: square-foot. More...
 
static MeasureUnitcreateSquareInch (UErrorCode &status)
 Returns by pointer, unit of area: square-inch. More...
 
static MeasureUnit getSquareInch ()
 Returns by value, unit of area: square-inch. More...
 
static MeasureUnitcreateSquareKilometer (UErrorCode &status)
 Returns by pointer, unit of area: square-kilometer. More...
 
static MeasureUnit getSquareKilometer ()
 Returns by value, unit of area: square-kilometer. More...
 
static MeasureUnitcreateSquareMeter (UErrorCode &status)
 Returns by pointer, unit of area: square-meter. More...
 
static MeasureUnit getSquareMeter ()
 Returns by value, unit of area: square-meter. More...
 
static MeasureUnitcreateSquareMile (UErrorCode &status)
 Returns by pointer, unit of area: square-mile. More...
 
static MeasureUnit getSquareMile ()
 Returns by value, unit of area: square-mile. More...
 
static MeasureUnitcreateSquareYard (UErrorCode &status)
 Returns by pointer, unit of area: square-yard. More...
 
static MeasureUnit getSquareYard ()
 Returns by value, unit of area: square-yard. More...
 
static MeasureUnitcreateKarat (UErrorCode &status)
 Returns by pointer, unit of concentr: karat. More...
 
static MeasureUnit getKarat ()
 Returns by value, unit of concentr: karat. More...
 
static MeasureUnitcreateMilligramPerDeciliter (UErrorCode &status)
 Returns by pointer, unit of concentr: milligram-per-deciliter. More...
 
static MeasureUnit getMilligramPerDeciliter ()
 Returns by value, unit of concentr: milligram-per-deciliter. More...
 
static MeasureUnitcreateMillimolePerLiter (UErrorCode &status)
 Returns by pointer, unit of concentr: millimole-per-liter. More...
 
static MeasureUnit getMillimolePerLiter ()
 Returns by value, unit of concentr: millimole-per-liter. More...
 
static MeasureUnitcreateMole (UErrorCode &status)
 Returns by pointer, unit of concentr: mole. More...
 
static MeasureUnit getMole ()
 Returns by value, unit of concentr: mole. More...
 
static MeasureUnitcreatePartPerMillion (UErrorCode &status)
 Returns by pointer, unit of concentr: part-per-million. More...
 
static MeasureUnit getPartPerMillion ()
 Returns by value, unit of concentr: part-per-million. More...
 
static MeasureUnitcreatePercent (UErrorCode &status)
 Returns by pointer, unit of concentr: percent. More...
 
static MeasureUnit getPercent ()
 Returns by value, unit of concentr: percent. More...
 
static MeasureUnitcreatePermille (UErrorCode &status)
 Returns by pointer, unit of concentr: permille. More...
 
static MeasureUnit getPermille ()
 Returns by value, unit of concentr: permille. More...
 
static MeasureUnitcreatePermyriad (UErrorCode &status)
 Returns by pointer, unit of concentr: permyriad. More...
 
static MeasureUnit getPermyriad ()
 Returns by value, unit of concentr: permyriad. More...
 
static MeasureUnitcreateLiterPer100Kilometers (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-100kilometers. More...
 
static MeasureUnit getLiterPer100Kilometers ()
 Returns by value, unit of consumption: liter-per-100kilometers. More...
 
static MeasureUnitcreateLiterPerKilometer (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-kilometer. More...
 
static MeasureUnit getLiterPerKilometer ()
 Returns by value, unit of consumption: liter-per-kilometer. More...
 
static MeasureUnitcreateMilePerGallon (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon. More...
 
static MeasureUnit getMilePerGallon ()
 Returns by value, unit of consumption: mile-per-gallon. More...
 
static MeasureUnitcreateMilePerGallonImperial (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon-imperial. More...
 
static MeasureUnit getMilePerGallonImperial ()
 Returns by value, unit of consumption: mile-per-gallon-imperial. More...
 
static MeasureUnitcreateBit (UErrorCode &status)
 Returns by pointer, unit of digital: bit. More...
 
static MeasureUnit getBit ()
 Returns by value, unit of digital: bit. More...
 
static MeasureUnitcreateByte (UErrorCode &status)
 Returns by pointer, unit of digital: byte. More...
 
static MeasureUnit getByte ()
 Returns by value, unit of digital: byte. More...
 
static MeasureUnitcreateGigabit (UErrorCode &status)
 Returns by pointer, unit of digital: gigabit. More...
 
static MeasureUnit getGigabit ()
 Returns by value, unit of digital: gigabit. More...
 
static MeasureUnitcreateGigabyte (UErrorCode &status)
 Returns by pointer, unit of digital: gigabyte. More...
 
static MeasureUnit getGigabyte ()
 Returns by value, unit of digital: gigabyte. More...
 
static MeasureUnitcreateKilobit (UErrorCode &status)
 Returns by pointer, unit of digital: kilobit. More...
 
static MeasureUnit getKilobit ()
 Returns by value, unit of digital: kilobit. More...
 
static MeasureUnitcreateKilobyte (UErrorCode &status)
 Returns by pointer, unit of digital: kilobyte. More...
 
static MeasureUnit getKilobyte ()
 Returns by value, unit of digital: kilobyte. More...
 
static MeasureUnitcreateMegabit (UErrorCode &status)
 Returns by pointer, unit of digital: megabit. More...
 
static MeasureUnit getMegabit ()
 Returns by value, unit of digital: megabit. More...
 
static MeasureUnitcreateMegabyte (UErrorCode &status)
 Returns by pointer, unit of digital: megabyte. More...
 
static MeasureUnit getMegabyte ()
 Returns by value, unit of digital: megabyte. More...
 
static MeasureUnitcreatePetabyte (UErrorCode &status)
 Returns by pointer, unit of digital: petabyte. More...
 
static MeasureUnit getPetabyte ()
 Returns by value, unit of digital: petabyte. More...
 
static MeasureUnitcreateTerabit (UErrorCode &status)
 Returns by pointer, unit of digital: terabit. More...
 
static MeasureUnit getTerabit ()
 Returns by value, unit of digital: terabit. More...
 
static MeasureUnitcreateTerabyte (UErrorCode &status)
 Returns by pointer, unit of digital: terabyte. More...
 
static MeasureUnit getTerabyte ()
 Returns by value, unit of digital: terabyte. More...
 
static MeasureUnitcreateCentury (UErrorCode &status)
 Returns by pointer, unit of duration: century. More...
 
static MeasureUnit getCentury ()
 Returns by value, unit of duration: century. More...
 
static MeasureUnitcreateDay (UErrorCode &status)
 Returns by pointer, unit of duration: day. More...
 
static MeasureUnit getDay ()
 Returns by value, unit of duration: day. More...
 
static MeasureUnitcreateDayPerson (UErrorCode &status)
 Returns by pointer, unit of duration: day-person. More...
 
static MeasureUnit getDayPerson ()
 Returns by value, unit of duration: day-person. More...
 
static MeasureUnitcreateDecade (UErrorCode &status)
 Returns by pointer, unit of duration: decade. More...
 
static MeasureUnit getDecade ()
 Returns by value, unit of duration: decade. More...
 
static MeasureUnitcreateHour (UErrorCode &status)
 Returns by pointer, unit of duration: hour. More...
 
static MeasureUnit getHour ()
 Returns by value, unit of duration: hour. More...
 
static MeasureUnitcreateMicrosecond (UErrorCode &status)
 Returns by pointer, unit of duration: microsecond. More...
 
static MeasureUnit getMicrosecond ()
 Returns by value, unit of duration: microsecond. More...
 
static MeasureUnitcreateMillisecond (UErrorCode &status)
 Returns by pointer, unit of duration: millisecond. More...
 
static MeasureUnit getMillisecond ()
 Returns by value, unit of duration: millisecond. More...
 
static MeasureUnitcreateMinute (UErrorCode &status)
 Returns by pointer, unit of duration: minute. More...
 
static MeasureUnit getMinute ()
 Returns by value, unit of duration: minute. More...
 
static MeasureUnitcreateMonth (UErrorCode &status)
 Returns by pointer, unit of duration: month. More...
 
static MeasureUnit getMonth ()
 Returns by value, unit of duration: month. More...
 
static MeasureUnitcreateMonthPerson (UErrorCode &status)
 Returns by pointer, unit of duration: month-person. More...
 
static MeasureUnit getMonthPerson ()
 Returns by value, unit of duration: month-person. More...
 
static MeasureUnitcreateNanosecond (UErrorCode &status)
 Returns by pointer, unit of duration: nanosecond. More...
 
static MeasureUnit getNanosecond ()
 Returns by value, unit of duration: nanosecond. More...
 
static MeasureUnitcreateSecond (UErrorCode &status)
 Returns by pointer, unit of duration: second. More...
 
static MeasureUnit getSecond ()
 Returns by value, unit of duration: second. More...
 
static MeasureUnitcreateWeek (UErrorCode &status)
 Returns by pointer, unit of duration: week. More...
 
static MeasureUnit getWeek ()
 Returns by value, unit of duration: week. More...
 
static MeasureUnitcreateWeekPerson (UErrorCode &status)
 Returns by pointer, unit of duration: week-person. More...
 
static MeasureUnit getWeekPerson ()
 Returns by value, unit of duration: week-person. More...
 
static MeasureUnitcreateYear (UErrorCode &status)
 Returns by pointer, unit of duration: year. More...
 
static MeasureUnit getYear ()
 Returns by value, unit of duration: year. More...
 
static MeasureUnitcreateYearPerson (UErrorCode &status)
 Returns by pointer, unit of duration: year-person. More...
 
static MeasureUnit getYearPerson ()
 Returns by value, unit of duration: year-person. More...
 
static MeasureUnitcreateAmpere (UErrorCode &status)
 Returns by pointer, unit of electric: ampere. More...
 
static MeasureUnit getAmpere ()
 Returns by value, unit of electric: ampere. More...
 
static MeasureUnitcreateMilliampere (UErrorCode &status)
 Returns by pointer, unit of electric: milliampere. More...
 
static MeasureUnit getMilliampere ()
 Returns by value, unit of electric: milliampere. More...
 
static MeasureUnitcreateOhm (UErrorCode &status)
 Returns by pointer, unit of electric: ohm. More...
 
static MeasureUnit getOhm ()
 Returns by value, unit of electric: ohm. More...
 
static MeasureUnitcreateVolt (UErrorCode &status)
 Returns by pointer, unit of electric: volt. More...
 
static MeasureUnit getVolt ()
 Returns by value, unit of electric: volt. More...
 
static MeasureUnitcreateBritishThermalUnit (UErrorCode &status)
 Returns by pointer, unit of energy: british-thermal-unit. More...
 
static MeasureUnit getBritishThermalUnit ()
 Returns by value, unit of energy: british-thermal-unit. More...
 
static MeasureUnitcreateCalorie (UErrorCode &status)
 Returns by pointer, unit of energy: calorie. More...
 
static MeasureUnit getCalorie ()
 Returns by value, unit of energy: calorie. More...
 
static MeasureUnitcreateElectronvolt (UErrorCode &status)
 Returns by pointer, unit of energy: electronvolt. More...
 
static MeasureUnit getElectronvolt ()
 Returns by value, unit of energy: electronvolt. More...
 
static MeasureUnitcreateFoodcalorie (UErrorCode &status)
 Returns by pointer, unit of energy: foodcalorie. More...
 
static MeasureUnit getFoodcalorie ()
 Returns by value, unit of energy: foodcalorie. More...
 
static MeasureUnitcreateJoule (UErrorCode &status)
 Returns by pointer, unit of energy: joule. More...
 
static MeasureUnit getJoule ()
 Returns by value, unit of energy: joule. More...
 
static MeasureUnitcreateKilocalorie (UErrorCode &status)
 Returns by pointer, unit of energy: kilocalorie. More...
 
static MeasureUnit getKilocalorie ()
 Returns by value, unit of energy: kilocalorie. More...
 
static MeasureUnitcreateKilojoule (UErrorCode &status)
 Returns by pointer, unit of energy: kilojoule. More...
 
static MeasureUnit getKilojoule ()
 Returns by value, unit of energy: kilojoule. More...
 
static MeasureUnitcreateKilowattHour (UErrorCode &status)
 Returns by pointer, unit of energy: kilowatt-hour. More...
 
static MeasureUnit getKilowattHour ()
 Returns by value, unit of energy: kilowatt-hour. More...
 
static MeasureUnitcreateThermUs (UErrorCode &status)
 Returns by pointer, unit of energy: therm-us. More...
 
static MeasureUnit getThermUs ()
 Returns by value, unit of energy: therm-us. More...
 
static MeasureUnitcreateNewton (UErrorCode &status)
 Returns by pointer, unit of force: newton. More...
 
static MeasureUnit getNewton ()
 Returns by value, unit of force: newton. More...
 
static MeasureUnitcreatePoundForce (UErrorCode &status)
 Returns by pointer, unit of force: pound-force. More...
 
static MeasureUnit getPoundForce ()
 Returns by value, unit of force: pound-force. More...
 
static MeasureUnitcreateGigahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: gigahertz. More...
 
static MeasureUnit getGigahertz ()
 Returns by value, unit of frequency: gigahertz. More...
 
static MeasureUnitcreateHertz (UErrorCode &status)
 Returns by pointer, unit of frequency: hertz. More...
 
static MeasureUnit getHertz ()
 Returns by value, unit of frequency: hertz. More...
 
static MeasureUnitcreateKilohertz (UErrorCode &status)
 Returns by pointer, unit of frequency: kilohertz. More...
 
static MeasureUnit getKilohertz ()
 Returns by value, unit of frequency: kilohertz. More...
 
static MeasureUnitcreateMegahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: megahertz. More...
 
static MeasureUnit getMegahertz ()
 Returns by value, unit of frequency: megahertz. More...
 
static MeasureUnitcreateDotPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-centimeter. More...
 
static MeasureUnit getDotPerCentimeter ()
 Returns by value, unit of graphics: dot-per-centimeter. More...
 
static MeasureUnitcreateDotPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-inch. More...
 
static MeasureUnit getDotPerInch ()
 Returns by value, unit of graphics: dot-per-inch. More...
 
static MeasureUnitcreateEm (UErrorCode &status)
 Returns by pointer, unit of graphics: em. More...
 
static MeasureUnit getEm ()
 Returns by value, unit of graphics: em. More...
 
static MeasureUnitcreateMegapixel (UErrorCode &status)
 Returns by pointer, unit of graphics: megapixel. More...
 
static MeasureUnit getMegapixel ()
 Returns by value, unit of graphics: megapixel. More...
 
static MeasureUnitcreatePixel (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel. More...
 
static MeasureUnit getPixel ()
 Returns by value, unit of graphics: pixel. More...
 
static MeasureUnitcreatePixelPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-centimeter. More...
 
static MeasureUnit getPixelPerCentimeter ()
 Returns by value, unit of graphics: pixel-per-centimeter. More...
 
static MeasureUnitcreatePixelPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-inch. More...
 
static MeasureUnit getPixelPerInch ()
 Returns by value, unit of graphics: pixel-per-inch. More...
 
static MeasureUnitcreateAstronomicalUnit (UErrorCode &status)
 Returns by pointer, unit of length: astronomical-unit. More...
 
static MeasureUnit getAstronomicalUnit ()
 Returns by value, unit of length: astronomical-unit. More...
 
static MeasureUnitcreateCentimeter (UErrorCode &status)
 Returns by pointer, unit of length: centimeter. More...
 
static MeasureUnit getCentimeter ()
 Returns by value, unit of length: centimeter. More...
 
static MeasureUnitcreateDecimeter (UErrorCode &status)
 Returns by pointer, unit of length: decimeter. More...
 
static MeasureUnit getDecimeter ()
 Returns by value, unit of length: decimeter. More...
 
static MeasureUnitcreateFathom (UErrorCode &status)
 Returns by pointer, unit of length: fathom. More...
 
static MeasureUnit getFathom ()
 Returns by value, unit of length: fathom. More...
 
static MeasureUnitcreateFoot (UErrorCode &status)
 Returns by pointer, unit of length: foot. More...
 
static MeasureUnit getFoot ()
 Returns by value, unit of length: foot. More...
 
static MeasureUnitcreateFurlong (UErrorCode &status)
 Returns by pointer, unit of length: furlong. More...
 
static MeasureUnit getFurlong ()
 Returns by value, unit of length: furlong. More...
 
static MeasureUnitcreateInch (UErrorCode &status)
 Returns by pointer, unit of length: inch. More...
 
static MeasureUnit getInch ()
 Returns by value, unit of length: inch. More...
 
static MeasureUnitcreateKilometer (UErrorCode &status)
 Returns by pointer, unit of length: kilometer. More...
 
static MeasureUnit getKilometer ()
 Returns by value, unit of length: kilometer. More...
 
static MeasureUnitcreateLightYear (UErrorCode &status)
 Returns by pointer, unit of length: light-year. More...
 
static MeasureUnit getLightYear ()
 Returns by value, unit of length: light-year. More...
 
static MeasureUnitcreateMeter (UErrorCode &status)
 Returns by pointer, unit of length: meter. More...
 
static MeasureUnit getMeter ()
 Returns by value, unit of length: meter. More...
 
static MeasureUnitcreateMicrometer (UErrorCode &status)
 Returns by pointer, unit of length: micrometer. More...
 
static MeasureUnit getMicrometer ()
 Returns by value, unit of length: micrometer. More...
 
static MeasureUnitcreateMile (UErrorCode &status)
 Returns by pointer, unit of length: mile. More...
 
static MeasureUnit getMile ()
 Returns by value, unit of length: mile. More...
 
static MeasureUnitcreateMileScandinavian (UErrorCode &status)
 Returns by pointer, unit of length: mile-scandinavian. More...
 
static MeasureUnit getMileScandinavian ()
 Returns by value, unit of length: mile-scandinavian. More...
 
static MeasureUnitcreateMillimeter (UErrorCode &status)
 Returns by pointer, unit of length: millimeter. More...
 
static MeasureUnit getMillimeter ()
 Returns by value, unit of length: millimeter. More...
 
static MeasureUnitcreateNanometer (UErrorCode &status)
 Returns by pointer, unit of length: nanometer. More...
 
static MeasureUnit getNanometer ()
 Returns by value, unit of length: nanometer. More...
 
static MeasureUnitcreateNauticalMile (UErrorCode &status)
 Returns by pointer, unit of length: nautical-mile. More...
 
static MeasureUnit getNauticalMile ()
 Returns by value, unit of length: nautical-mile. More...
 
static MeasureUnitcreateParsec (UErrorCode &status)
 Returns by pointer, unit of length: parsec. More...
 
static MeasureUnit getParsec ()
 Returns by value, unit of length: parsec. More...
 
static MeasureUnitcreatePicometer (UErrorCode &status)
 Returns by pointer, unit of length: picometer. More...
 
static MeasureUnit getPicometer ()
 Returns by value, unit of length: picometer. More...
 
static MeasureUnitcreatePoint (UErrorCode &status)
 Returns by pointer, unit of length: point. More...
 
static MeasureUnit getPoint ()
 Returns by value, unit of length: point. More...
 
static MeasureUnitcreateSolarRadius (UErrorCode &status)
 Returns by pointer, unit of length: solar-radius. More...
 
static MeasureUnit getSolarRadius ()
 Returns by value, unit of length: solar-radius. More...
 
static MeasureUnitcreateYard (UErrorCode &status)
 Returns by pointer, unit of length: yard. More...
 
static MeasureUnit getYard ()
 Returns by value, unit of length: yard. More...
 
static MeasureUnitcreateLux (UErrorCode &status)
 Returns by pointer, unit of light: lux. More...
 
static MeasureUnit getLux ()
 Returns by value, unit of light: lux. More...
 
static MeasureUnitcreateSolarLuminosity (UErrorCode &status)
 Returns by pointer, unit of light: solar-luminosity. More...
 
static MeasureUnit getSolarLuminosity ()
 Returns by value, unit of light: solar-luminosity. More...
 
static MeasureUnitcreateCarat (UErrorCode &status)
 Returns by pointer, unit of mass: carat. More...
 
static MeasureUnit getCarat ()
 Returns by value, unit of mass: carat. More...
 
static MeasureUnitcreateDalton (UErrorCode &status)
 Returns by pointer, unit of mass: dalton. More...
 
static MeasureUnit getDalton ()
 Returns by value, unit of mass: dalton. More...
 
static MeasureUnitcreateEarthMass (UErrorCode &status)
 Returns by pointer, unit of mass: earth-mass. More...
 
static MeasureUnit getEarthMass ()
 Returns by value, unit of mass: earth-mass. More...
 
static MeasureUnitcreateGram (UErrorCode &status)
 Returns by pointer, unit of mass: gram. More...
 
static MeasureUnit getGram ()
 Returns by value, unit of mass: gram. More...
 
static MeasureUnitcreateKilogram (UErrorCode &status)
 Returns by pointer, unit of mass: kilogram. More...
 
static MeasureUnit getKilogram ()
 Returns by value, unit of mass: kilogram. More...
 
static MeasureUnitcreateMetricTon (UErrorCode &status)
 Returns by pointer, unit of mass: metric-ton. More...
 
static MeasureUnit getMetricTon ()
 Returns by value, unit of mass: metric-ton. More...
 
static MeasureUnitcreateMicrogram (UErrorCode &status)
 Returns by pointer, unit of mass: microgram. More...
 
static MeasureUnit getMicrogram ()
 Returns by value, unit of mass: microgram. More...
 
static MeasureUnitcreateMilligram (UErrorCode &status)
 Returns by pointer, unit of mass: milligram. More...
 
static MeasureUnit getMilligram ()
 Returns by value, unit of mass: milligram. More...
 
static MeasureUnitcreateOunce (UErrorCode &status)
 Returns by pointer, unit of mass: ounce. More...
 
static MeasureUnit getOunce ()
 Returns by value, unit of mass: ounce. More...
 
static MeasureUnitcreateOunceTroy (UErrorCode &status)
 Returns by pointer, unit of mass: ounce-troy. More...
 
static MeasureUnit getOunceTroy ()
 Returns by value, unit of mass: ounce-troy. More...
 
static MeasureUnitcreatePound (UErrorCode &status)
 Returns by pointer, unit of mass: pound. More...
 
static MeasureUnit getPound ()
 Returns by value, unit of mass: pound. More...
 
static MeasureUnitcreateSolarMass (UErrorCode &status)
 Returns by pointer, unit of mass: solar-mass. More...
 
static MeasureUnit getSolarMass ()
 Returns by value, unit of mass: solar-mass. More...
 
static MeasureUnitcreateStone (UErrorCode &status)
 Returns by pointer, unit of mass: stone. More...
 
static MeasureUnit getStone ()
 Returns by value, unit of mass: stone. More...
 
static MeasureUnitcreateTon (UErrorCode &status)
 Returns by pointer, unit of mass: ton. More...
 
static MeasureUnit getTon ()
 Returns by value, unit of mass: ton. More...
 
static MeasureUnitcreateGigawatt (UErrorCode &status)
 Returns by pointer, unit of power: gigawatt. More...
 
static MeasureUnit getGigawatt ()
 Returns by value, unit of power: gigawatt. More...
 
static MeasureUnitcreateHorsepower (UErrorCode &status)
 Returns by pointer, unit of power: horsepower. More...
 
static MeasureUnit getHorsepower ()
 Returns by value, unit of power: horsepower. More...
 
static MeasureUnitcreateKilowatt (UErrorCode &status)
 Returns by pointer, unit of power: kilowatt. More...
 
static MeasureUnit getKilowatt ()
 Returns by value, unit of power: kilowatt. More...
 
static MeasureUnitcreateMegawatt (UErrorCode &status)
 Returns by pointer, unit of power: megawatt. More...
 
static MeasureUnit getMegawatt ()
 Returns by value, unit of power: megawatt. More...
 
static MeasureUnitcreateMilliwatt (UErrorCode &status)
 Returns by pointer, unit of power: milliwatt. More...
 
static MeasureUnit getMilliwatt ()
 Returns by value, unit of power: milliwatt. More...
 
static MeasureUnitcreateWatt (UErrorCode &status)
 Returns by pointer, unit of power: watt. More...
 
static MeasureUnit getWatt ()
 Returns by value, unit of power: watt. More...
 
static MeasureUnitcreateAtmosphere (UErrorCode &status)
 Returns by pointer, unit of pressure: atmosphere. More...
 
static MeasureUnit getAtmosphere ()
 Returns by value, unit of pressure: atmosphere. More...
 
static MeasureUnitcreateBar (UErrorCode &status)
 Returns by pointer, unit of pressure: bar. More...
 
static MeasureUnit getBar ()
 Returns by value, unit of pressure: bar. More...
 
static MeasureUnitcreateHectopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: hectopascal. More...
 
static MeasureUnit getHectopascal ()
 Returns by value, unit of pressure: hectopascal. More...
 
static MeasureUnitcreateInchHg (UErrorCode &status)
 Returns by pointer, unit of pressure: inch-hg. More...
 
static MeasureUnit getInchHg ()
 Returns by value, unit of pressure: inch-hg. More...
 
static MeasureUnitcreateKilopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: kilopascal. More...
 
static MeasureUnit getKilopascal ()
 Returns by value, unit of pressure: kilopascal. More...
 
static MeasureUnitcreateMegapascal (UErrorCode &status)
 Returns by pointer, unit of pressure: megapascal. More...
 
static MeasureUnit getMegapascal ()
 Returns by value, unit of pressure: megapascal. More...
 
static MeasureUnitcreateMillibar (UErrorCode &status)
 Returns by pointer, unit of pressure: millibar. More...
 
static MeasureUnit getMillibar ()
 Returns by value, unit of pressure: millibar. More...
 
static MeasureUnitcreateMillimeterOfMercury (UErrorCode &status)
 Returns by pointer, unit of pressure: millimeter-of-mercury. More...
 
static MeasureUnit getMillimeterOfMercury ()
 Returns by value, unit of pressure: millimeter-of-mercury. More...
 
static MeasureUnitcreatePascal (UErrorCode &status)
 Returns by pointer, unit of pressure: pascal. More...
 
static MeasureUnit getPascal ()
 Returns by value, unit of pressure: pascal. More...
 
static MeasureUnitcreatePoundPerSquareInch (UErrorCode &status)
 Returns by pointer, unit of pressure: pound-per-square-inch. More...
 
static MeasureUnit getPoundPerSquareInch ()
 Returns by value, unit of pressure: pound-per-square-inch. More...
 
static MeasureUnitcreateKilometerPerHour (UErrorCode &status)
 Returns by pointer, unit of speed: kilometer-per-hour. More...
 
static MeasureUnit getKilometerPerHour ()
 Returns by value, unit of speed: kilometer-per-hour. More...
 
static MeasureUnitcreateKnot (UErrorCode &status)
 Returns by pointer, unit of speed: knot. More...
 
static MeasureUnit getKnot ()
 Returns by value, unit of speed: knot. More...
 
static MeasureUnitcreateMeterPerSecond (UErrorCode &status)
 Returns by pointer, unit of speed: meter-per-second. More...
 
static MeasureUnit getMeterPerSecond ()
 Returns by value, unit of speed: meter-per-second. More...
 
static MeasureUnitcreateMilePerHour (UErrorCode &status)
 Returns by pointer, unit of speed: mile-per-hour. More...
 
static MeasureUnit getMilePerHour ()
 Returns by value, unit of speed: mile-per-hour. More...
 
static MeasureUnitcreateCelsius (UErrorCode &status)
 Returns by pointer, unit of temperature: celsius. More...
 
static MeasureUnit getCelsius ()
 Returns by value, unit of temperature: celsius. More...
 
static MeasureUnitcreateFahrenheit (UErrorCode &status)
 Returns by pointer, unit of temperature: fahrenheit. More...
 
static MeasureUnit getFahrenheit ()
 Returns by value, unit of temperature: fahrenheit. More...
 
static MeasureUnitcreateGenericTemperature (UErrorCode &status)
 Returns by pointer, unit of temperature: generic. More...
 
static MeasureUnit getGenericTemperature ()
 Returns by value, unit of temperature: generic. More...
 
static MeasureUnitcreateKelvin (UErrorCode &status)
 Returns by pointer, unit of temperature: kelvin. More...
 
static MeasureUnit getKelvin ()
 Returns by value, unit of temperature: kelvin. More...
 
static MeasureUnitcreateNewtonMeter (UErrorCode &status)
 Returns by pointer, unit of torque: newton-meter. More...
 
static MeasureUnit getNewtonMeter ()
 Returns by value, unit of torque: newton-meter. More...
 
static MeasureUnitcreatePoundFoot (UErrorCode &status)
 Returns by pointer, unit of torque: pound-foot. More...
 
static MeasureUnit getPoundFoot ()
 Returns by value, unit of torque: pound-foot. More...
 
static MeasureUnitcreateAcreFoot (UErrorCode &status)
 Returns by pointer, unit of volume: acre-foot. More...
 
static MeasureUnit getAcreFoot ()
 Returns by value, unit of volume: acre-foot. More...
 
static MeasureUnitcreateBarrel (UErrorCode &status)
 Returns by pointer, unit of volume: barrel. More...
 
static MeasureUnit getBarrel ()
 Returns by value, unit of volume: barrel. More...
 
static MeasureUnitcreateBushel (UErrorCode &status)
 Returns by pointer, unit of volume: bushel. More...
 
static MeasureUnit getBushel ()
 Returns by value, unit of volume: bushel. More...
 
static MeasureUnitcreateCentiliter (UErrorCode &status)
 Returns by pointer, unit of volume: centiliter. More...
 
static MeasureUnit getCentiliter ()
 Returns by value, unit of volume: centiliter. More...
 
static MeasureUnitcreateCubicCentimeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-centimeter. More...
 
static MeasureUnit getCubicCentimeter ()
 Returns by value, unit of volume: cubic-centimeter. More...
 
static MeasureUnitcreateCubicFoot (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-foot. More...
 
static MeasureUnit getCubicFoot ()
 Returns by value, unit of volume: cubic-foot. More...
 
static MeasureUnitcreateCubicInch (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-inch. More...
 
static MeasureUnit getCubicInch ()
 Returns by value, unit of volume: cubic-inch. More...
 
static MeasureUnitcreateCubicKilometer (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-kilometer. More...
 
static MeasureUnit getCubicKilometer ()
 Returns by value, unit of volume: cubic-kilometer. More...
 
static MeasureUnitcreateCubicMeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-meter. More...
 
static MeasureUnit getCubicMeter ()
 Returns by value, unit of volume: cubic-meter. More...
 
static MeasureUnitcreateCubicMile (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-mile. More...
 
static MeasureUnit getCubicMile ()
 Returns by value, unit of volume: cubic-mile. More...
 
static MeasureUnitcreateCubicYard (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-yard. More...
 
static MeasureUnit getCubicYard ()
 Returns by value, unit of volume: cubic-yard. More...
 
static MeasureUnitcreateCup (UErrorCode &status)
 Returns by pointer, unit of volume: cup. More...
 
static MeasureUnit getCup ()
 Returns by value, unit of volume: cup. More...
 
static MeasureUnitcreateCupMetric (UErrorCode &status)
 Returns by pointer, unit of volume: cup-metric. More...
 
static MeasureUnit getCupMetric ()
 Returns by value, unit of volume: cup-metric. More...
 
static MeasureUnitcreateDeciliter (UErrorCode &status)
 Returns by pointer, unit of volume: deciliter. More...
 
static MeasureUnit getDeciliter ()
 Returns by value, unit of volume: deciliter. More...
 
static MeasureUnitcreateFluidOunce (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce. More...
 
static MeasureUnit getFluidOunce ()
 Returns by value, unit of volume: fluid-ounce. More...
 
static MeasureUnitcreateFluidOunceImperial (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce-imperial. More...
 
static MeasureUnit getFluidOunceImperial ()
 Returns by value, unit of volume: fluid-ounce-imperial. More...
 
static MeasureUnitcreateGallon (UErrorCode &status)
 Returns by pointer, unit of volume: gallon. More...
 
static MeasureUnit getGallon ()
 Returns by value, unit of volume: gallon. More...
 
static MeasureUnitcreateGallonImperial (UErrorCode &status)
 Returns by pointer, unit of volume: gallon-imperial. More...
 
static MeasureUnit getGallonImperial ()
 Returns by value, unit of volume: gallon-imperial. More...
 
static MeasureUnitcreateHectoliter (UErrorCode &status)
 Returns by pointer, unit of volume: hectoliter. More...
 
static MeasureUnit getHectoliter ()
 Returns by value, unit of volume: hectoliter. More...
 
static MeasureUnitcreateLiter (UErrorCode &status)
 Returns by pointer, unit of volume: liter. More...
 
static MeasureUnit getLiter ()
 Returns by value, unit of volume: liter. More...
 
static MeasureUnitcreateMegaliter (UErrorCode &status)
 Returns by pointer, unit of volume: megaliter. More...
 
static MeasureUnit getMegaliter ()
 Returns by value, unit of volume: megaliter. More...
 
static MeasureUnitcreateMilliliter (UErrorCode &status)
 Returns by pointer, unit of volume: milliliter. More...
 
static MeasureUnit getMilliliter ()
 Returns by value, unit of volume: milliliter. More...
 
static MeasureUnitcreatePint (UErrorCode &status)
 Returns by pointer, unit of volume: pint. More...
 
static MeasureUnit getPint ()
 Returns by value, unit of volume: pint. More...
 
static MeasureUnitcreatePintMetric (UErrorCode &status)
 Returns by pointer, unit of volume: pint-metric. More...
 
static MeasureUnit getPintMetric ()
 Returns by value, unit of volume: pint-metric. More...
 
static MeasureUnitcreateQuart (UErrorCode &status)
 Returns by pointer, unit of volume: quart. More...
 
static MeasureUnit getQuart ()
 Returns by value, unit of volume: quart. More...
 
static MeasureUnitcreateTablespoon (UErrorCode &status)
 Returns by pointer, unit of volume: tablespoon. More...
 
static MeasureUnit getTablespoon ()
 Returns by value, unit of volume: tablespoon. More...
 
static MeasureUnitcreateTeaspoon (UErrorCode &status)
 Returns by pointer, unit of volume: teaspoon. More...
 
static MeasureUnit getTeaspoon ()
 Returns by value, unit of volume: teaspoon. More...
 

Protected Member Functions

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

Detailed Description

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

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

Author
Alan Liu
Stable:
ICU 3.0

Definition at line 40 of file measunit.h.

Constructor & Destructor Documentation

◆ MeasureUnit() [1/2]

icu::MeasureUnit::MeasureUnit ( )

Default constructor.

Populates the instance with the base dimensionless unit.

Stable:
ICU 3.0

◆ MeasureUnit() [2/2]

icu::MeasureUnit::MeasureUnit ( const MeasureUnit other)

Copy constructor.

Stable:
ICU 3.0

◆ ~MeasureUnit()

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

Destructor.

Stable:
ICU 3.0

Member Function Documentation

◆ clone()

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

Returns a polymorphic clone of this object.

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

Stable:
ICU 3.0

Reimplemented in icu::CurrencyUnit, icu::NoUnit, and icu::TimeUnit.

◆ createAcre()

static MeasureUnit* icu::MeasureUnit::createAcre ( UErrorCode status)
static

Returns by pointer, unit of area: acre.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createAcreFoot()

static MeasureUnit* icu::MeasureUnit::createAcreFoot ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createAmpere()

static MeasureUnit* icu::MeasureUnit::createAmpere ( UErrorCode status)
static

Returns by pointer, unit of electric: ampere.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createArcMinute()

static MeasureUnit* icu::MeasureUnit::createArcMinute ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createArcSecond()

static MeasureUnit* icu::MeasureUnit::createArcSecond ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createAstronomicalUnit()

static MeasureUnit* icu::MeasureUnit::createAstronomicalUnit ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createAtmosphere()

static MeasureUnit* icu::MeasureUnit::createAtmosphere ( UErrorCode status)
static

Returns by pointer, unit of pressure: atmosphere.

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

Parameters
statusICU error code.
Stable:
ICU 63

◆ createBar()

static MeasureUnit* icu::MeasureUnit::createBar ( UErrorCode status)
static

Returns by pointer, unit of pressure: bar.

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

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

◆ createBarrel()

static MeasureUnit* icu::MeasureUnit::createBarrel ( UErrorCode status)
static

Returns by pointer, unit of volume: barrel.

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

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

◆ createBit()

static MeasureUnit* icu::MeasureUnit::createBit ( UErrorCode status)
static

Returns by pointer, unit of digital: bit.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createBritishThermalUnit()

static MeasureUnit* icu::MeasureUnit::createBritishThermalUnit ( UErrorCode status)
static

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

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

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

◆ createBushel()

static MeasureUnit* icu::MeasureUnit::createBushel ( UErrorCode status)
static

Returns by pointer, unit of volume: bushel.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createByte()

static MeasureUnit* icu::MeasureUnit::createByte ( UErrorCode status)
static

Returns by pointer, unit of digital: byte.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCalorie()

static MeasureUnit* icu::MeasureUnit::createCalorie ( UErrorCode status)
static

Returns by pointer, unit of energy: calorie.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCarat()

static MeasureUnit* icu::MeasureUnit::createCarat ( UErrorCode status)
static

Returns by pointer, unit of mass: carat.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCelsius()

static MeasureUnit* icu::MeasureUnit::createCelsius ( UErrorCode status)
static

Returns by pointer, unit of temperature: celsius.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCentiliter()

static MeasureUnit* icu::MeasureUnit::createCentiliter ( UErrorCode status)
static

Returns by pointer, unit of volume: centiliter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCentimeter()

static MeasureUnit* icu::MeasureUnit::createCentimeter ( UErrorCode status)
static

Returns by pointer, unit of length: centimeter.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCentury()

static MeasureUnit* icu::MeasureUnit::createCentury ( UErrorCode status)
static

Returns by pointer, unit of duration: century.

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createCubicCentimeter()

static MeasureUnit* icu::MeasureUnit::createCubicCentimeter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicFoot()

static MeasureUnit* icu::MeasureUnit::createCubicFoot ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicInch()

static MeasureUnit* icu::MeasureUnit::createCubicInch ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicKilometer()

static MeasureUnit* icu::MeasureUnit::createCubicKilometer ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCubicMeter()

static MeasureUnit* icu::MeasureUnit::createCubicMeter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCubicMile()

static MeasureUnit* icu::MeasureUnit::createCubicMile ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createCubicYard()

static MeasureUnit* icu::MeasureUnit::createCubicYard ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCup()

static MeasureUnit* icu::MeasureUnit::createCup ( UErrorCode status)
static

Returns by pointer, unit of volume: cup.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createCupMetric()

static MeasureUnit* icu::MeasureUnit::createCupMetric ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createDalton()

static MeasureUnit* icu::MeasureUnit::createDalton ( UErrorCode status)
static

Returns by pointer, unit of mass: dalton.

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

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

◆ createDay()

static MeasureUnit* icu::MeasureUnit::createDay ( UErrorCode status)
static

Returns by pointer, unit of duration: day.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createDayPerson()

static MeasureUnit* icu::MeasureUnit::createDayPerson ( UErrorCode status)
static

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

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

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

◆ createDecade()

static MeasureUnit* icu::MeasureUnit::createDecade ( UErrorCode status)
static

Returns by pointer, unit of duration: decade.

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

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

◆ createDeciliter()

static MeasureUnit* icu::MeasureUnit::createDeciliter ( UErrorCode status)
static

Returns by pointer, unit of volume: deciliter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createDecimeter()

static MeasureUnit* icu::MeasureUnit::createDecimeter ( UErrorCode status)
static

Returns by pointer, unit of length: decimeter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createDegree()

static MeasureUnit* icu::MeasureUnit::createDegree ( UErrorCode status)
static

Returns by pointer, unit of angle: degree.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createDotPerCentimeter()

static MeasureUnit* icu::MeasureUnit::createDotPerCentimeter ( UErrorCode status)
static

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

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

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

◆ createDotPerInch()

static MeasureUnit* icu::MeasureUnit::createDotPerInch ( UErrorCode status)
static

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

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

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

◆ createDunam()

static MeasureUnit* icu::MeasureUnit::createDunam ( UErrorCode status)
static

Returns by pointer, unit of area: dunam.

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

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

◆ createEarthMass()

static MeasureUnit* icu::MeasureUnit::createEarthMass ( UErrorCode status)
static

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

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

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

◆ createElectronvolt()

static MeasureUnit* icu::MeasureUnit::createElectronvolt ( UErrorCode status)
static

Returns by pointer, unit of energy: electronvolt.

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

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

◆ createEm()

static MeasureUnit* icu::MeasureUnit::createEm ( UErrorCode status)
static

Returns by pointer, unit of graphics: em.

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

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

◆ createFahrenheit()

static MeasureUnit* icu::MeasureUnit::createFahrenheit ( UErrorCode status)
static

Returns by pointer, unit of temperature: fahrenheit.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createFathom()

static MeasureUnit* icu::MeasureUnit::createFathom ( UErrorCode status)
static

Returns by pointer, unit of length: fathom.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFluidOunce()

static MeasureUnit* icu::MeasureUnit::createFluidOunce ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFluidOunceImperial()

static MeasureUnit* icu::MeasureUnit::createFluidOunceImperial ( UErrorCode status)
static

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

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

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

◆ createFoodcalorie()

static MeasureUnit* icu::MeasureUnit::createFoodcalorie ( UErrorCode status)
static

Returns by pointer, unit of energy: foodcalorie.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createFoot()

static MeasureUnit* icu::MeasureUnit::createFoot ( UErrorCode status)
static

Returns by pointer, unit of length: foot.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createFurlong()

static MeasureUnit* icu::MeasureUnit::createFurlong ( UErrorCode status)
static

Returns by pointer, unit of length: furlong.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGallon()

static MeasureUnit* icu::MeasureUnit::createGallon ( UErrorCode status)
static

Returns by pointer, unit of volume: gallon.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGallonImperial()

static MeasureUnit* icu::MeasureUnit::createGallonImperial ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 57

◆ createGenericTemperature()

static MeasureUnit* icu::MeasureUnit::createGenericTemperature ( UErrorCode status)
static

Returns by pointer, unit of temperature: generic.

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createGForce()

static MeasureUnit* icu::MeasureUnit::createGForce ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createGigabit()

static MeasureUnit* icu::MeasureUnit::createGigabit ( UErrorCode status)
static

Returns by pointer, unit of digital: gigabit.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigabyte()

static MeasureUnit* icu::MeasureUnit::createGigabyte ( UErrorCode status)
static

Returns by pointer, unit of digital: gigabyte.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigahertz()

static MeasureUnit* icu::MeasureUnit::createGigahertz ( UErrorCode status)
static

Returns by pointer, unit of frequency: gigahertz.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGigawatt()

static MeasureUnit* icu::MeasureUnit::createGigawatt ( UErrorCode status)
static

Returns by pointer, unit of power: gigawatt.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createGram()

static MeasureUnit* icu::MeasureUnit::createGram ( UErrorCode status)
static

Returns by pointer, unit of mass: gram.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHectare()

static MeasureUnit* icu::MeasureUnit::createHectare ( UErrorCode status)
static

Returns by pointer, unit of area: hectare.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHectoliter()

static MeasureUnit* icu::MeasureUnit::createHectoliter ( UErrorCode status)
static

Returns by pointer, unit of volume: hectoliter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createHectopascal()

static MeasureUnit* icu::MeasureUnit::createHectopascal ( UErrorCode status)
static

Returns by pointer, unit of pressure: hectopascal.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHertz()

static MeasureUnit* icu::MeasureUnit::createHertz ( UErrorCode status)
static

Returns by pointer, unit of frequency: hertz.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createHorsepower()

static MeasureUnit* icu::MeasureUnit::createHorsepower ( UErrorCode status)
static

Returns by pointer, unit of power: horsepower.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createHour()

static MeasureUnit* icu::MeasureUnit::createHour ( UErrorCode status)
static

Returns by pointer, unit of duration: hour.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createInch()

static MeasureUnit* icu::MeasureUnit::createInch ( UErrorCode status)
static

Returns by pointer, unit of length: inch.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createInchHg()

static MeasureUnit* icu::MeasureUnit::createInchHg ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createJoule()

static MeasureUnit* icu::MeasureUnit::createJoule ( UErrorCode status)
static

Returns by pointer, unit of energy: joule.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKarat()

static MeasureUnit* icu::MeasureUnit::createKarat ( UErrorCode status)
static

Returns by pointer, unit of concentr: karat.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKelvin()

static MeasureUnit* icu::MeasureUnit::createKelvin ( UErrorCode status)
static

Returns by pointer, unit of temperature: kelvin.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilobit()

static MeasureUnit* icu::MeasureUnit::createKilobit ( UErrorCode status)
static

Returns by pointer, unit of digital: kilobit.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilobyte()

static MeasureUnit* icu::MeasureUnit::createKilobyte ( UErrorCode status)
static

Returns by pointer, unit of digital: kilobyte.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilocalorie()

static MeasureUnit* icu::MeasureUnit::createKilocalorie ( UErrorCode status)
static

Returns by pointer, unit of energy: kilocalorie.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilogram()

static MeasureUnit* icu::MeasureUnit::createKilogram ( UErrorCode status)
static

Returns by pointer, unit of mass: kilogram.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilohertz()

static MeasureUnit* icu::MeasureUnit::createKilohertz ( UErrorCode status)
static

Returns by pointer, unit of frequency: kilohertz.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilojoule()

static MeasureUnit* icu::MeasureUnit::createKilojoule ( UErrorCode status)
static

Returns by pointer, unit of energy: kilojoule.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKilometer()

static MeasureUnit* icu::MeasureUnit::createKilometer ( UErrorCode status)
static

Returns by pointer, unit of length: kilometer.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilometerPerHour()

static MeasureUnit* icu::MeasureUnit::createKilometerPerHour ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilopascal()

static MeasureUnit* icu::MeasureUnit::createKilopascal ( UErrorCode status)
static

Returns by pointer, unit of pressure: kilopascal.

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

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

◆ createKilowatt()

static MeasureUnit* icu::MeasureUnit::createKilowatt ( UErrorCode status)
static

Returns by pointer, unit of power: kilowatt.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createKilowattHour()

static MeasureUnit* icu::MeasureUnit::createKilowattHour ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createKnot()

static MeasureUnit* icu::MeasureUnit::createKnot ( UErrorCode status)
static

Returns by pointer, unit of speed: knot.

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createLightYear()

static MeasureUnit* icu::MeasureUnit::createLightYear ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createLiter()

static MeasureUnit* icu::MeasureUnit::createLiter ( UErrorCode status)
static

Returns by pointer, unit of volume: liter.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createLiterPer100Kilometers()

static MeasureUnit* icu::MeasureUnit::createLiterPer100Kilometers ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createLiterPerKilometer()

static MeasureUnit* icu::MeasureUnit::createLiterPerKilometer ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createLux()

static MeasureUnit* icu::MeasureUnit::createLux ( UErrorCode status)
static

Returns by pointer, unit of light: lux.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegabit()

static MeasureUnit* icu::MeasureUnit::createMegabit ( UErrorCode status)
static

Returns by pointer, unit of digital: megabit.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegabyte()

static MeasureUnit* icu::MeasureUnit::createMegabyte ( UErrorCode status)
static

Returns by pointer, unit of digital: megabyte.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegahertz()

static MeasureUnit* icu::MeasureUnit::createMegahertz ( UErrorCode status)
static

Returns by pointer, unit of frequency: megahertz.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegaliter()

static MeasureUnit* icu::MeasureUnit::createMegaliter ( UErrorCode status)
static

Returns by pointer, unit of volume: megaliter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMegapascal()

static MeasureUnit* icu::MeasureUnit::createMegapascal ( UErrorCode status)
static

Returns by pointer, unit of pressure: megapascal.

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

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

◆ createMegapixel()

static MeasureUnit* icu::MeasureUnit::createMegapixel ( UErrorCode status)
static

Returns by pointer, unit of graphics: megapixel.

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

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

◆ createMegawatt()

static MeasureUnit* icu::MeasureUnit::createMegawatt ( UErrorCode status)
static

Returns by pointer, unit of power: megawatt.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMeter()

static MeasureUnit* icu::MeasureUnit::createMeter ( UErrorCode status)
static

Returns by pointer, unit of length: meter.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMeterPerSecond()

static MeasureUnit* icu::MeasureUnit::createMeterPerSecond ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMeterPerSecondSquared()

static MeasureUnit* icu::MeasureUnit::createMeterPerSecondSquared ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMetricTon()

static MeasureUnit* icu::MeasureUnit::createMetricTon ( UErrorCode status)
static

Returns by pointer, unit of mass: metric-ton.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMicrogram()

static MeasureUnit* icu::MeasureUnit::createMicrogram ( UErrorCode status)
static

Returns by pointer, unit of mass: microgram.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMicrometer()

static MeasureUnit* icu::MeasureUnit::createMicrometer ( UErrorCode status)
static

Returns by pointer, unit of length: micrometer.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMicrosecond()

static MeasureUnit* icu::MeasureUnit::createMicrosecond ( UErrorCode status)
static

Returns by pointer, unit of duration: microsecond.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMile()

static MeasureUnit* icu::MeasureUnit::createMile ( UErrorCode status)
static

Returns by pointer, unit of length: mile.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilePerGallon()

static MeasureUnit* icu::MeasureUnit::createMilePerGallon ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMilePerGallonImperial()

static MeasureUnit* icu::MeasureUnit::createMilePerGallonImperial ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 57

◆ createMilePerHour()

static MeasureUnit* icu::MeasureUnit::createMilePerHour ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMileScandinavian()

static MeasureUnit* icu::MeasureUnit::createMileScandinavian ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createMilliampere()

static MeasureUnit* icu::MeasureUnit::createMilliampere ( UErrorCode status)
static

Returns by pointer, unit of electric: milliampere.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillibar()

static MeasureUnit* icu::MeasureUnit::createMillibar ( UErrorCode status)
static

Returns by pointer, unit of pressure: millibar.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilligram()

static MeasureUnit* icu::MeasureUnit::createMilligram ( UErrorCode status)
static

Returns by pointer, unit of mass: milligram.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMilligramPerDeciliter()

static MeasureUnit* icu::MeasureUnit::createMilligramPerDeciliter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 57

◆ createMilliliter()

static MeasureUnit* icu::MeasureUnit::createMilliliter ( UErrorCode status)
static

Returns by pointer, unit of volume: milliliter.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillimeter()

static MeasureUnit* icu::MeasureUnit::createMillimeter ( UErrorCode status)
static

Returns by pointer, unit of length: millimeter.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMillimeterOfMercury()

static MeasureUnit* icu::MeasureUnit::createMillimeterOfMercury ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMillimolePerLiter()

static MeasureUnit* icu::MeasureUnit::createMillimolePerLiter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 57

◆ createMillisecond()

static MeasureUnit* icu::MeasureUnit::createMillisecond ( UErrorCode status)
static

Returns by pointer, unit of duration: millisecond.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMilliwatt()

static MeasureUnit* icu::MeasureUnit::createMilliwatt ( UErrorCode status)
static

Returns by pointer, unit of power: milliwatt.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createMinute()

static MeasureUnit* icu::MeasureUnit::createMinute ( UErrorCode status)
static

Returns by pointer, unit of duration: minute.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMole()

static MeasureUnit* icu::MeasureUnit::createMole ( UErrorCode status)
static

Returns by pointer, unit of concentr: mole.

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

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

◆ createMonth()

static MeasureUnit* icu::MeasureUnit::createMonth ( UErrorCode status)
static

Returns by pointer, unit of duration: month.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createMonthPerson()

static MeasureUnit* icu::MeasureUnit::createMonthPerson ( UErrorCode status)
static

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

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

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

◆ createNanometer()

static MeasureUnit* icu::MeasureUnit::createNanometer ( UErrorCode status)
static

Returns by pointer, unit of length: nanometer.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNanosecond()

static MeasureUnit* icu::MeasureUnit::createNanosecond ( UErrorCode status)
static

Returns by pointer, unit of duration: nanosecond.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNauticalMile()

static MeasureUnit* icu::MeasureUnit::createNauticalMile ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createNewton()

static MeasureUnit* icu::MeasureUnit::createNewton ( UErrorCode status)
static

Returns by pointer, unit of force: newton.

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

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

◆ createNewtonMeter()

static MeasureUnit* icu::MeasureUnit::createNewtonMeter ( UErrorCode status)
static

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

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

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

◆ createOhm()

static MeasureUnit* icu::MeasureUnit::createOhm ( UErrorCode status)
static

Returns by pointer, unit of electric: ohm.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createOunce()

static MeasureUnit* icu::MeasureUnit::createOunce ( UErrorCode status)
static

Returns by pointer, unit of mass: ounce.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createOunceTroy()

static MeasureUnit* icu::MeasureUnit::createOunceTroy ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createParsec()

static MeasureUnit* icu::MeasureUnit::createParsec ( UErrorCode status)
static

Returns by pointer, unit of length: parsec.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createPartPerMillion()

static MeasureUnit* icu::MeasureUnit::createPartPerMillion ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 57

◆ createPascal()

static MeasureUnit* icu::MeasureUnit::createPascal ( UErrorCode status)
static

Returns by pointer, unit of pressure: pascal.

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

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

◆ createPercent()

static MeasureUnit* icu::MeasureUnit::createPercent ( UErrorCode status)
static

Returns by pointer, unit of concentr: percent.

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

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPermille()

static MeasureUnit* icu::MeasureUnit::createPermille ( UErrorCode status)
static

Returns by pointer, unit of concentr: permille.

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

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPermyriad()

static MeasureUnit* icu::MeasureUnit::createPermyriad ( UErrorCode status)
static

Returns by pointer, unit of concentr: permyriad.

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

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

◆ createPetabyte()

static MeasureUnit* icu::MeasureUnit::createPetabyte ( UErrorCode status)
static

Returns by pointer, unit of digital: petabyte.

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

Parameters
statusICU error code.
Stable:
ICU 63

◆ createPicometer()

static MeasureUnit* icu::MeasureUnit::createPicometer ( UErrorCode status)
static

Returns by pointer, unit of length: picometer.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createPint()

static MeasureUnit* icu::MeasureUnit::createPint ( UErrorCode status)
static

Returns by pointer, unit of volume: pint.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createPintMetric()

static MeasureUnit* icu::MeasureUnit::createPintMetric ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createPixel()

static MeasureUnit* icu::MeasureUnit::createPixel ( UErrorCode status)
static

Returns by pointer, unit of graphics: pixel.

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

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

◆ createPixelPerCentimeter()

static MeasureUnit* icu::MeasureUnit::createPixelPerCentimeter ( UErrorCode status)
static

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

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

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

◆ createPixelPerInch()

static MeasureUnit* icu::MeasureUnit::createPixelPerInch ( UErrorCode status)
static

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

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

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

◆ createPoint()

static MeasureUnit* icu::MeasureUnit::createPoint ( UErrorCode status)
static

Returns by pointer, unit of length: point.

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

Parameters
statusICU error code.
Stable:
ICU 59

◆ createPound()

static MeasureUnit* icu::MeasureUnit::createPound ( UErrorCode status)
static

Returns by pointer, unit of mass: pound.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createPoundFoot()

static MeasureUnit* icu::MeasureUnit::createPoundFoot ( UErrorCode status)
static

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

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

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

◆ createPoundForce()

static MeasureUnit* icu::MeasureUnit::createPoundForce ( UErrorCode status)
static

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

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

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

◆ createPoundPerSquareInch()

static MeasureUnit* icu::MeasureUnit::createPoundPerSquareInch ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createQuart()

static MeasureUnit* icu::MeasureUnit::createQuart ( UErrorCode status)
static

Returns by pointer, unit of volume: quart.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createRadian()

static MeasureUnit* icu::MeasureUnit::createRadian ( UErrorCode status)
static

Returns by pointer, unit of angle: radian.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createRevolutionAngle()

static MeasureUnit* icu::MeasureUnit::createRevolutionAngle ( UErrorCode status)
static

Returns by pointer, unit of angle: revolution.

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

Parameters
statusICU error code.
Stable:
ICU 56

◆ createSecond()

static MeasureUnit* icu::MeasureUnit::createSecond ( UErrorCode status)
static

Returns by pointer, unit of duration: second.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSolarLuminosity()

static MeasureUnit* icu::MeasureUnit::createSolarLuminosity ( UErrorCode status)
static

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

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

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

◆ createSolarMass()

static MeasureUnit* icu::MeasureUnit::createSolarMass ( UErrorCode status)
static

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

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

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

◆ createSolarRadius()

static MeasureUnit* icu::MeasureUnit::createSolarRadius ( UErrorCode status)
static

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

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

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

◆ createSquareCentimeter()

static MeasureUnit* icu::MeasureUnit::createSquareCentimeter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSquareFoot()

static MeasureUnit* icu::MeasureUnit::createSquareFoot ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareInch()

static MeasureUnit* icu::MeasureUnit::createSquareInch ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createSquareKilometer()

static MeasureUnit* icu::MeasureUnit::createSquareKilometer ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareMeter()

static MeasureUnit* icu::MeasureUnit::createSquareMeter ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareMile()

static MeasureUnit* icu::MeasureUnit::createSquareMile ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createSquareYard()

static MeasureUnit* icu::MeasureUnit::createSquareYard ( UErrorCode status)
static

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

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createStone()

static MeasureUnit* icu::MeasureUnit::createStone ( UErrorCode status)
static

Returns by pointer, unit of mass: stone.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTablespoon()

static MeasureUnit* icu::MeasureUnit::createTablespoon ( UErrorCode status)
static

Returns by pointer, unit of volume: tablespoon.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTeaspoon()

static MeasureUnit* icu::MeasureUnit::createTeaspoon ( UErrorCode status)
static

Returns by pointer, unit of volume: teaspoon.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTerabit()

static MeasureUnit* icu::MeasureUnit::createTerabit ( UErrorCode status)
static

Returns by pointer, unit of digital: terabit.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createTerabyte()

static MeasureUnit* icu::MeasureUnit::createTerabyte ( UErrorCode status)
static

Returns by pointer, unit of digital: terabyte.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createThermUs()

static MeasureUnit* icu::MeasureUnit::createThermUs ( UErrorCode status)
static

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

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

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

◆ createTon()

static MeasureUnit* icu::MeasureUnit::createTon ( UErrorCode status)
static

Returns by pointer, unit of mass: ton.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createVolt()

static MeasureUnit* icu::MeasureUnit::createVolt ( UErrorCode status)
static

Returns by pointer, unit of electric: volt.

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

Parameters
statusICU error code.
Stable:
ICU 54

◆ createWatt()

static MeasureUnit* icu::MeasureUnit::createWatt ( UErrorCode status)
static

Returns by pointer, unit of power: watt.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createWeek()

static MeasureUnit* icu::MeasureUnit::createWeek ( UErrorCode status)
static

Returns by pointer, unit of duration: week.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createWeekPerson()

static MeasureUnit* icu::MeasureUnit::createWeekPerson ( UErrorCode status)
static

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

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

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

◆ createYard()

static MeasureUnit* icu::MeasureUnit::createYard ( UErrorCode status)
static

Returns by pointer, unit of length: yard.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createYear()

static MeasureUnit* icu::MeasureUnit::createYear ( UErrorCode status)
static

Returns by pointer, unit of duration: year.

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

Parameters
statusICU error code.
Stable:
ICU 53

◆ createYearPerson()

static MeasureUnit* icu::MeasureUnit::createYearPerson ( UErrorCode status)
static

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

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

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

◆ getAcre()

static MeasureUnit icu::MeasureUnit::getAcre ( )
static

Returns by value, unit of area: acre.

Also see createAcre().

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

◆ getAcreFoot()

static MeasureUnit icu::MeasureUnit::getAcreFoot ( )
static

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

Also see createAcreFoot().

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

◆ getAmpere()

static MeasureUnit icu::MeasureUnit::getAmpere ( )
static

Returns by value, unit of electric: ampere.

Also see createAmpere().

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

◆ getArcMinute()

static MeasureUnit icu::MeasureUnit::getArcMinute ( )
static

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

Also see createArcMinute().

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

◆ getArcSecond()

static MeasureUnit icu::MeasureUnit::getArcSecond ( )
static

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

Also see createArcSecond().

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

◆ getAstronomicalUnit()

static MeasureUnit icu::MeasureUnit::getAstronomicalUnit ( )
static

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

Also see createAstronomicalUnit().

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

◆ getAtmosphere()

static MeasureUnit icu::MeasureUnit::getAtmosphere ( )
static

Returns by value, unit of pressure: atmosphere.

Also see createAtmosphere().

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

◆ getAvailable() [1/2]

static int32_t icu::MeasureUnit::getAvailable ( MeasureUnit destArray,
int32_t  destCapacity,
UErrorCode errorCode 
)
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 of MeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units.
Stable:
ICU 53

◆ getAvailable() [2/2]

static int32_t icu::MeasureUnit::getAvailable ( const char *  type,
MeasureUnit destArray,
int32_t  destCapacity,
UErrorCode errorCode 
)
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 of MeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units for type.
Stable:
ICU 53

◆ getAvailableTypes()

static StringEnumeration* icu::MeasureUnit::getAvailableTypes ( UErrorCode errorCode)
static

getAvailableTypes gets all of the available types.

Caller owns the returned StringEnumeration and must delete it when finished using it.

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

◆ getBar()

static MeasureUnit icu::MeasureUnit::getBar ( )
static

Returns by value, unit of pressure: bar.

Also see createBar().

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

◆ getBarrel()

static MeasureUnit icu::MeasureUnit::getBarrel ( )
static

Returns by value, unit of volume: barrel.

Also see createBarrel().

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

◆ getBit()

static MeasureUnit icu::MeasureUnit::getBit ( )
static

Returns by value, unit of digital: bit.

Also see createBit().

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

◆ getBritishThermalUnit()

static MeasureUnit icu::MeasureUnit::getBritishThermalUnit ( )
static

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

Also see createBritishThermalUnit().

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

◆ getBushel()

static MeasureUnit icu::MeasureUnit::getBushel ( )
static

Returns by value, unit of volume: bushel.

Also see createBushel().

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

◆ getByte()

static MeasureUnit icu::MeasureUnit::getByte ( )
static

Returns by value, unit of digital: byte.

Also see createByte().

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

◆ getCalorie()

static MeasureUnit icu::MeasureUnit::getCalorie ( )
static

Returns by value, unit of energy: calorie.

Also see createCalorie().

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

◆ getCarat()

static MeasureUnit icu::MeasureUnit::getCarat ( )
static

Returns by value, unit of mass: carat.

Also see createCarat().

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

◆ getCelsius()

static MeasureUnit icu::MeasureUnit::getCelsius ( )
static

Returns by value, unit of temperature: celsius.

Also see createCelsius().

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

◆ getCentiliter()

static MeasureUnit icu::MeasureUnit::getCentiliter ( )
static

Returns by value, unit of volume: centiliter.

Also see createCentiliter().

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

◆ getCentimeter()

static MeasureUnit icu::MeasureUnit::getCentimeter ( )
static

Returns by value, unit of length: centimeter.

Also see createCentimeter().

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

◆ getCentury()

static MeasureUnit icu::MeasureUnit::getCentury ( )
static

Returns by value, unit of duration: century.

Also see createCentury().

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

◆ getCubicCentimeter()

static MeasureUnit icu::MeasureUnit::getCubicCentimeter ( )
static

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

Also see createCubicCentimeter().

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

◆ getCubicFoot()

static MeasureUnit icu::MeasureUnit::getCubicFoot ( )
static

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

Also see createCubicFoot().

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

◆ getCubicInch()

static MeasureUnit icu::MeasureUnit::getCubicInch ( )
static

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

Also see createCubicInch().

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

◆ getCubicKilometer()

static MeasureUnit icu::MeasureUnit::getCubicKilometer ( )
static

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

Also see createCubicKilometer().

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

◆ getCubicMeter()

static MeasureUnit icu::MeasureUnit::getCubicMeter ( )
static

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

Also see createCubicMeter().

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

◆ getCubicMile()

static MeasureUnit icu::MeasureUnit::getCubicMile ( )
static

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

Also see createCubicMile().

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

◆ getCubicYard()

static MeasureUnit icu::MeasureUnit::getCubicYard ( )
static

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

Also see createCubicYard().

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

◆ getCup()

static MeasureUnit icu::MeasureUnit::getCup ( )
static

Returns by value, unit of volume: cup.

Also see createCup().

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

◆ getCupMetric()

static MeasureUnit icu::MeasureUnit::getCupMetric ( )
static

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

Also see createCupMetric().

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

◆ getDalton()

static MeasureUnit icu::MeasureUnit::getDalton ( )
static

Returns by value, unit of mass: dalton.

Also see createDalton().

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

◆ getDay()

static MeasureUnit icu::MeasureUnit::getDay ( )
static

Returns by value, unit of duration: day.

Also see createDay().

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

◆ getDayPerson()

static MeasureUnit icu::MeasureUnit::getDayPerson ( )
static

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

Also see createDayPerson().

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

◆ getDecade()

static MeasureUnit icu::MeasureUnit::getDecade ( )
static

Returns by value, unit of duration: decade.

Also see createDecade().

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

◆ getDeciliter()

static MeasureUnit icu::MeasureUnit::getDeciliter ( )
static

Returns by value, unit of volume: deciliter.

Also see createDeciliter().

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

◆ getDecimeter()

static MeasureUnit icu::MeasureUnit::getDecimeter ( )
static

Returns by value, unit of length: decimeter.

Also see createDecimeter().

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

◆ getDegree()

static MeasureUnit icu::MeasureUnit::getDegree ( )
static

Returns by value, unit of angle: degree.

Also see createDegree().

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

◆ getDotPerCentimeter()

static MeasureUnit icu::MeasureUnit::getDotPerCentimeter ( )
static

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

Also see createDotPerCentimeter().

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

◆ getDotPerInch()

static MeasureUnit icu::MeasureUnit::getDotPerInch ( )
static

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

Also see createDotPerInch().

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

◆ getDunam()

static MeasureUnit icu::MeasureUnit::getDunam ( )
static

Returns by value, unit of area: dunam.

Also see createDunam().

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

◆ getDynamicClassID()

virtual UClassID icu::MeasureUnit::getDynamicClassID ( void  ) const
virtual

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. Polymorphic operator==() and clone() 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 from icu::UObject.

Reimplemented in icu::CurrencyUnit, icu::TimeUnit, and icu::NoUnit.

◆ getEarthMass()

static MeasureUnit icu::MeasureUnit::getEarthMass ( )
static

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

Also see createEarthMass().

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

◆ getElectronvolt()

static MeasureUnit icu::MeasureUnit::getElectronvolt ( )
static

Returns by value, unit of energy: electronvolt.

Also see createElectronvolt().

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

◆ getEm()

static MeasureUnit icu::MeasureUnit::getEm ( )
static

Returns by value, unit of graphics: em.

Also see createEm().

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

◆ getFahrenheit()

static MeasureUnit icu::MeasureUnit::getFahrenheit ( )
static

Returns by value, unit of temperature: fahrenheit.

Also see createFahrenheit().

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

◆ getFathom()

static MeasureUnit icu::MeasureUnit::getFathom ( )
static

Returns by value, unit of length: fathom.

Also see createFathom().

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

◆ getFluidOunce()

static MeasureUnit icu::MeasureUnit::getFluidOunce ( )
static

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

Also see createFluidOunce().

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

◆ getFluidOunceImperial()

static MeasureUnit icu::MeasureUnit::getFluidOunceImperial ( )
static

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

Also see createFluidOunceImperial().

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

◆ getFoodcalorie()

static MeasureUnit icu::MeasureUnit::getFoodcalorie ( )
static

Returns by value, unit of energy: foodcalorie.

Also see createFoodcalorie().

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

◆ getFoot()

static MeasureUnit icu::MeasureUnit::getFoot ( )
static

Returns by value, unit of length: foot.

Also see createFoot().

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

◆ getFurlong()

static MeasureUnit icu::MeasureUnit::getFurlong ( )
static

Returns by value, unit of length: furlong.

Also see createFurlong().

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

◆ getGallon()

static MeasureUnit icu::MeasureUnit::getGallon ( )
static

Returns by value, unit of volume: gallon.

Also see createGallon().

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

◆ getGallonImperial()

static MeasureUnit icu::MeasureUnit::getGallonImperial ( )
static

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

Also see createGallonImperial().

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

◆ getGenericTemperature()

static MeasureUnit icu::MeasureUnit::getGenericTemperature ( )
static

Returns by value, unit of temperature: generic.

Also see createGenericTemperature().

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

◆ getGForce()

static MeasureUnit icu::MeasureUnit::getGForce ( )
static

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

Also see createGForce().

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

◆ getGigabit()

static MeasureUnit icu::MeasureUnit::getGigabit ( )
static

Returns by value, unit of digital: gigabit.

Also see createGigabit().

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

◆ getGigabyte()

static MeasureUnit icu::MeasureUnit::getGigabyte ( )
static

Returns by value, unit of digital: gigabyte.

Also see createGigabyte().

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

◆ getGigahertz()

static MeasureUnit icu::MeasureUnit::getGigahertz ( )
static

Returns by value, unit of frequency: gigahertz.

Also see createGigahertz().

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

◆ getGigawatt()

static MeasureUnit icu::MeasureUnit::getGigawatt ( )
static

Returns by value, unit of power: gigawatt.

Also see createGigawatt().

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

◆ getGram()

static MeasureUnit icu::MeasureUnit::getGram ( )
static

Returns by value, unit of mass: gram.

Also see createGram().

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

◆ getHectare()

static MeasureUnit icu::MeasureUnit::getHectare ( )
static

Returns by value, unit of area: hectare.

Also see createHectare().

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

◆ getHectoliter()

static MeasureUnit icu::MeasureUnit::getHectoliter ( )
static

Returns by value, unit of volume: hectoliter.

Also see createHectoliter().

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

◆ getHectopascal()

static MeasureUnit icu::MeasureUnit::getHectopascal ( )
static

Returns by value, unit of pressure: hectopascal.

Also see createHectopascal().

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

◆ getHertz()

static MeasureUnit icu::MeasureUnit::getHertz ( )
static

Returns by value, unit of frequency: hertz.

Also see createHertz().

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

◆ getHorsepower()

static MeasureUnit icu::MeasureUnit::getHorsepower ( )
static

Returns by value, unit of power: horsepower.

Also see createHorsepower().

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

◆ getHour()

static MeasureUnit icu::MeasureUnit::getHour ( )
static

Returns by value, unit of duration: hour.

Also see createHour().

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

◆ getInch()

static MeasureUnit icu::MeasureUnit::getInch ( )
static

Returns by value, unit of length: inch.

Also see createInch().

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

◆ getInchHg()

static MeasureUnit icu::MeasureUnit::getInchHg ( )
static

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

Also see createInchHg().

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

◆ getIndex()

int32_t icu::MeasureUnit::getIndex ( ) const

ICU use only.

Returns associated array index for this measure unit. Only valid for non-currency measure units.

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

◆ getIndexCount()

static int32_t icu::MeasureUnit::getIndexCount ( )
static

ICU use only.

Returns maximum value from getIndex plus 1.

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

◆ getJoule()

static MeasureUnit icu::MeasureUnit::getJoule ( )
static

Returns by value, unit of energy: joule.

Also see createJoule().

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

◆ getKarat()

static MeasureUnit icu::MeasureUnit::getKarat ( )
static

Returns by value, unit of concentr: karat.

Also see createKarat().

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

◆ getKelvin()

static MeasureUnit icu::MeasureUnit::getKelvin ( )
static

Returns by value, unit of temperature: kelvin.

Also see createKelvin().

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

◆ getKilobit()

static MeasureUnit icu::MeasureUnit::getKilobit ( )
static

Returns by value, unit of digital: kilobit.

Also see createKilobit().

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

◆ getKilobyte()

static MeasureUnit icu::MeasureUnit::getKilobyte ( )
static

Returns by value, unit of digital: kilobyte.

Also see createKilobyte().

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

◆ getKilocalorie()

static MeasureUnit icu::MeasureUnit::getKilocalorie ( )
static

Returns by value, unit of energy: kilocalorie.

Also see createKilocalorie().

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

◆ getKilogram()

static MeasureUnit icu::MeasureUnit::getKilogram ( )
static

Returns by value, unit of mass: kilogram.

Also see createKilogram().

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

◆ getKilohertz()

static MeasureUnit icu::MeasureUnit::getKilohertz ( )
static

Returns by value, unit of frequency: kilohertz.

Also see createKilohertz().

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

◆ getKilojoule()

static MeasureUnit icu::MeasureUnit::getKilojoule ( )
static

Returns by value, unit of energy: kilojoule.

Also see createKilojoule().

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

◆ getKilometer()

static MeasureUnit icu::MeasureUnit::getKilometer ( )
static

Returns by value, unit of length: kilometer.

Also see createKilometer().

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

◆ getKilometerPerHour()

static MeasureUnit icu::MeasureUnit::getKilometerPerHour ( )
static

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

Also see createKilometerPerHour().

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

◆ getKilopascal()

static MeasureUnit icu::MeasureUnit::getKilopascal ( )
static

Returns by value, unit of pressure: kilopascal.

Also see createKilopascal().

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

◆ getKilowatt()

static MeasureUnit icu::MeasureUnit::getKilowatt ( )
static

Returns by value, unit of power: kilowatt.

Also see createKilowatt().

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

◆ getKilowattHour()

static MeasureUnit icu::MeasureUnit::getKilowattHour ( )
static

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

Also see createKilowattHour().

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

◆ getKnot()

static MeasureUnit icu::MeasureUnit::getKnot ( )
static

Returns by value, unit of speed: knot.

Also see createKnot().

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

◆ getLightYear()

static MeasureUnit icu::MeasureUnit::getLightYear ( )
static

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

Also see createLightYear().

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

◆ getLiter()

static MeasureUnit icu::MeasureUnit::getLiter ( )
static

Returns by value, unit of volume: liter.

Also see createLiter().

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

◆ getLiterPer100Kilometers()

static MeasureUnit icu::MeasureUnit::getLiterPer100Kilometers ( )
static

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

Also see createLiterPer100Kilometers().

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

◆ getLiterPerKilometer()

static MeasureUnit icu::MeasureUnit::getLiterPerKilometer ( )
static

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

Also see createLiterPerKilometer().

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

◆ getLux()

static MeasureUnit icu::MeasureUnit::getLux ( )
static

Returns by value, unit of light: lux.

Also see createLux().

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

◆ getMegabit()

static MeasureUnit icu::MeasureUnit::getMegabit ( )
static

Returns by value, unit of digital: megabit.

Also see createMegabit().

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

◆ getMegabyte()

static MeasureUnit icu::MeasureUnit::getMegabyte ( )
static

Returns by value, unit of digital: megabyte.

Also see createMegabyte().

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

◆ getMegahertz()

static MeasureUnit icu::MeasureUnit::getMegahertz ( )
static

Returns by value, unit of frequency: megahertz.

Also see createMegahertz().

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

◆ getMegaliter()

static MeasureUnit icu::MeasureUnit::getMegaliter ( )
static

Returns by value, unit of volume: megaliter.

Also see createMegaliter().

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

◆ getMegapascal()

static MeasureUnit icu::MeasureUnit::getMegapascal ( )
static

Returns by value, unit of pressure: megapascal.

Also see createMegapascal().

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

◆ getMegapixel()

static MeasureUnit icu::MeasureUnit::getMegapixel ( )
static

Returns by value, unit of graphics: megapixel.

Also see createMegapixel().

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

◆ getMegawatt()

static MeasureUnit icu::MeasureUnit::getMegawatt ( )
static

Returns by value, unit of power: megawatt.

Also see createMegawatt().

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

◆ getMeter()

static MeasureUnit icu::MeasureUnit::getMeter ( )
static

Returns by value, unit of length: meter.

Also see createMeter().

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

◆ getMeterPerSecond()

static MeasureUnit icu::MeasureUnit::getMeterPerSecond ( )
static

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

Also see createMeterPerSecond().

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

◆ getMeterPerSecondSquared()

static MeasureUnit icu::MeasureUnit::getMeterPerSecondSquared ( )
static

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

Also see createMeterPerSecondSquared().

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

◆ getMetricTon()

static MeasureUnit icu::MeasureUnit::getMetricTon ( )
static

Returns by value, unit of mass: metric-ton.

Also see createMetricTon().

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

◆ getMicrogram()

static MeasureUnit icu::MeasureUnit::getMicrogram ( )
static

Returns by value, unit of mass: microgram.

Also see createMicrogram().

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

◆ getMicrometer()

static MeasureUnit icu::MeasureUnit::getMicrometer ( )
static

Returns by value, unit of length: micrometer.

Also see createMicrometer().

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

◆ getMicrosecond()

static MeasureUnit icu::MeasureUnit::getMicrosecond ( )
static

Returns by value, unit of duration: microsecond.

Also see createMicrosecond().

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

◆ getMile()

static MeasureUnit icu::MeasureUnit::getMile ( )
static

Returns by value, unit of length: mile.

Also see createMile().

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

◆ getMilePerGallon()

static MeasureUnit icu::MeasureUnit::getMilePerGallon ( )
static

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

Also see createMilePerGallon().

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

◆ getMilePerGallonImperial()

static MeasureUnit icu::MeasureUnit::getMilePerGallonImperial ( )
static

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

Also see createMilePerGallonImperial().

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

◆ getMilePerHour()

static MeasureUnit icu::MeasureUnit::getMilePerHour ( )
static

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

Also see createMilePerHour().

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

◆ getMileScandinavian()

static MeasureUnit icu::MeasureUnit::getMileScandinavian ( )
static

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

Also see createMileScandinavian().

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

◆ getMilliampere()

static MeasureUnit icu::MeasureUnit::getMilliampere ( )
static

Returns by value, unit of electric: milliampere.

Also see createMilliampere().

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

◆ getMillibar()

static MeasureUnit icu::MeasureUnit::getMillibar ( )
static

Returns by value, unit of pressure: millibar.

Also see createMillibar().

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

◆ getMilligram()

static MeasureUnit icu::MeasureUnit::getMilligram ( )
static

Returns by value, unit of mass: milligram.

Also see createMilligram().

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

◆ getMilligramPerDeciliter()

static MeasureUnit icu::MeasureUnit::getMilligramPerDeciliter ( )
static

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

Also see createMilligramPerDeciliter().

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

◆ getMilliliter()

static MeasureUnit icu::MeasureUnit::getMilliliter ( )
static

Returns by value, unit of volume: milliliter.

Also see createMilliliter().

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

◆ getMillimeter()

static MeasureUnit icu::MeasureUnit::getMillimeter ( )
static

Returns by value, unit of length: millimeter.

Also see createMillimeter().

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

◆ getMillimeterOfMercury()

static MeasureUnit icu::MeasureUnit::getMillimeterOfMercury ( )
static

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

Also see createMillimeterOfMercury().

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

◆ getMillimolePerLiter()

static MeasureUnit icu::MeasureUnit::getMillimolePerLiter ( )
static

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

Also see createMillimolePerLiter().

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

◆ getMillisecond()

static MeasureUnit icu::MeasureUnit::getMillisecond ( )
static

Returns by value, unit of duration: millisecond.

Also see createMillisecond().

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

◆ getMilliwatt()

static MeasureUnit icu::MeasureUnit::getMilliwatt ( )
static

Returns by value, unit of power: milliwatt.

Also see createMilliwatt().

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

◆ getMinute()

static MeasureUnit icu::MeasureUnit::getMinute ( )
static

Returns by value, unit of duration: minute.

Also see createMinute().

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

◆ getMole()

static MeasureUnit icu::MeasureUnit::getMole ( )
static

Returns by value, unit of concentr: mole.

Also see createMole().

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

◆ getMonth()

static MeasureUnit icu::MeasureUnit::getMonth ( )
static

Returns by value, unit of duration: month.

Also see createMonth().

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

◆ getMonthPerson()

static MeasureUnit icu::MeasureUnit::getMonthPerson ( )
static

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

Also see createMonthPerson().

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

◆ getNanometer()

static MeasureUnit icu::MeasureUnit::getNanometer ( )
static

Returns by value, unit of length: nanometer.

Also see createNanometer().

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

◆ getNanosecond()

static MeasureUnit icu::MeasureUnit::getNanosecond ( )
static

Returns by value, unit of duration: nanosecond.

Also see createNanosecond().

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

◆ getNauticalMile()

static MeasureUnit icu::MeasureUnit::getNauticalMile ( )
static

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

Also see createNauticalMile().

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

◆ getNewton()

static MeasureUnit icu::MeasureUnit::getNewton ( )
static

Returns by value, unit of force: newton.

Also see createNewton().

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

◆ getNewtonMeter()

static MeasureUnit icu::MeasureUnit::getNewtonMeter ( )
static

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

Also see createNewtonMeter().

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

◆ getOhm()

static MeasureUnit icu::MeasureUnit::getOhm ( )
static

Returns by value, unit of electric: ohm.

Also see createOhm().

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

◆ getOunce()

static MeasureUnit icu::MeasureUnit::getOunce ( )
static

Returns by value, unit of mass: ounce.

Also see createOunce().

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

◆ getOunceTroy()

static MeasureUnit icu::MeasureUnit::getOunceTroy ( )
static

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

Also see createOunceTroy().

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

◆ getParsec()

static MeasureUnit icu::MeasureUnit::getParsec ( )
static

Returns by value, unit of length: parsec.

Also see createParsec().

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

◆ getPartPerMillion()

static MeasureUnit icu::MeasureUnit::getPartPerMillion ( )
static

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

Also see createPartPerMillion().

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

◆ getPascal()

static MeasureUnit icu::MeasureUnit::getPascal ( )
static

Returns by value, unit of pressure: pascal.

Also see createPascal().

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

◆ getPercent()

static MeasureUnit icu::MeasureUnit::getPercent ( )
static

Returns by value, unit of concentr: percent.

Also see createPercent().

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

◆ getPermille()

static MeasureUnit icu::MeasureUnit::getPermille ( )
static

Returns by value, unit of concentr: permille.

Also see createPermille().

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

◆ getPermyriad()

static MeasureUnit icu::MeasureUnit::getPermyriad ( )
static

Returns by value, unit of concentr: permyriad.

Also see createPermyriad().

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

◆ getPetabyte()

static MeasureUnit icu::MeasureUnit::getPetabyte ( )
static

Returns by value, unit of digital: petabyte.

Also see createPetabyte().

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

◆ getPicometer()

static MeasureUnit icu::MeasureUnit::getPicometer ( )
static

Returns by value, unit of length: picometer.

Also see createPicometer().

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

◆ getPint()

static MeasureUnit icu::MeasureUnit::getPint ( )
static

Returns by value, unit of volume: pint.

Also see createPint().

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

◆ getPintMetric()

static MeasureUnit icu::MeasureUnit::getPintMetric ( )
static

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

Also see createPintMetric().

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

◆ getPixel()

static MeasureUnit icu::MeasureUnit::getPixel ( )
static

Returns by value, unit of graphics: pixel.

Also see createPixel().

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

◆ getPixelPerCentimeter()

static MeasureUnit icu::MeasureUnit::getPixelPerCentimeter ( )
static

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

Also see createPixelPerCentimeter().

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

◆ getPixelPerInch()

static MeasureUnit icu::MeasureUnit::getPixelPerInch ( )
static

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

Also see createPixelPerInch().

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

◆ getPoint()

static MeasureUnit icu::MeasureUnit::getPoint ( )
static

Returns by value, unit of length: point.

Also see createPoint().

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

◆ getPound()

static MeasureUnit icu::MeasureUnit::getPound ( )
static

Returns by value, unit of mass: pound.

Also see createPound().

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

◆ getPoundFoot()

static MeasureUnit icu::MeasureUnit::getPoundFoot ( )
static

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

Also see createPoundFoot().

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

◆ getPoundForce()

static MeasureUnit icu::MeasureUnit::getPoundForce ( )
static

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

Also see createPoundForce().

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

◆ getPoundPerSquareInch()

static MeasureUnit icu::MeasureUnit::getPoundPerSquareInch ( )
static

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

Also see createPoundPerSquareInch().

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

◆ getQuart()

static MeasureUnit icu::MeasureUnit::getQuart ( )
static

Returns by value, unit of volume: quart.

Also see createQuart().

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

◆ getRadian()

static MeasureUnit icu::MeasureUnit::getRadian ( )
static

Returns by value, unit of angle: radian.

Also see createRadian().

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

◆ getRevolutionAngle()

static MeasureUnit icu::MeasureUnit::getRevolutionAngle ( )
static

Returns by value, unit of angle: revolution.

Also see createRevolutionAngle().

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

◆ getSecond()

static MeasureUnit icu::MeasureUnit::getSecond ( )
static

Returns by value, unit of duration: second.

Also see createSecond().

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

◆ getSolarLuminosity()

static MeasureUnit icu::MeasureUnit::getSolarLuminosity ( )
static

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

Also see createSolarLuminosity().

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

◆ getSolarMass()

static MeasureUnit icu::MeasureUnit::getSolarMass ( )
static

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

Also see createSolarMass().

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

◆ getSolarRadius()

static MeasureUnit icu::MeasureUnit::getSolarRadius ( )
static

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

Also see createSolarRadius().

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

◆ getSquareCentimeter()

static MeasureUnit icu::MeasureUnit::getSquareCentimeter ( )
static

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

Also see createSquareCentimeter().

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

◆ getSquareFoot()

static MeasureUnit icu::MeasureUnit::getSquareFoot ( )
static

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

Also see createSquareFoot().

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

◆ getSquareInch()

static MeasureUnit icu::MeasureUnit::getSquareInch ( )
static

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

Also see createSquareInch().

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

◆ getSquareKilometer()

static MeasureUnit icu::MeasureUnit::getSquareKilometer ( )
static

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

Also see createSquareKilometer().

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

◆ getSquareMeter()

static MeasureUnit icu::MeasureUnit::getSquareMeter ( )
static

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

Also see createSquareMeter().

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

◆ getSquareMile()

static MeasureUnit icu::MeasureUnit::getSquareMile ( )
static

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

Also see createSquareMile().

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

◆ getSquareYard()

static MeasureUnit icu::MeasureUnit::getSquareYard ( )
static

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

Also see createSquareYard().

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

◆ getStaticClassID()

static UClassID icu::MeasureUnit::getStaticClassID ( void  )
static

Return the class ID for this class.

This is useful only for comparing to a return value from getDynamicClassID(). 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

◆ getStone()

static MeasureUnit icu::MeasureUnit::getStone ( )
static

Returns by value, unit of mass: stone.

Also see createStone().

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

◆ getSubtype()

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

Get the sub type.

Stable:
ICU 53

◆ getTablespoon()

static MeasureUnit icu::MeasureUnit::getTablespoon ( )
static

Returns by value, unit of volume: tablespoon.

Also see createTablespoon().

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

◆ getTeaspoon()

static MeasureUnit icu::MeasureUnit::getTeaspoon ( )
static

Returns by value, unit of volume: teaspoon.

Also see createTeaspoon().

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

◆ getTerabit()

static MeasureUnit icu::MeasureUnit::getTerabit ( )
static

Returns by value, unit of digital: terabit.

Also see createTerabit().

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

◆ getTerabyte()

static MeasureUnit icu::MeasureUnit::getTerabyte ( )
static

Returns by value, unit of digital: terabyte.

Also see createTerabyte().

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

◆ getThermUs()

static MeasureUnit icu::MeasureUnit::getThermUs ( )
static

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

Also see createThermUs().

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

◆ getTon()

static MeasureUnit icu::MeasureUnit::getTon ( )
static

Returns by value, unit of mass: ton.

Also see createTon().

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

◆ getType()

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

Get the type.

Stable:
ICU 53

◆ getVolt()

static MeasureUnit icu::MeasureUnit::getVolt ( )
static

Returns by value, unit of electric: volt.

Also see createVolt().

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

◆ getWatt()

static MeasureUnit icu::MeasureUnit::getWatt ( )
static

Returns by value, unit of power: watt.

Also see createWatt().

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

◆ getWeek()

static MeasureUnit icu::MeasureUnit::getWeek ( )
static

Returns by value, unit of duration: week.

Also see createWeek().

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

◆ getWeekPerson()

static MeasureUnit icu::MeasureUnit::getWeekPerson ( )
static

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

Also see createWeekPerson().

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

◆ getYard()

static MeasureUnit icu::MeasureUnit::getYard ( )
static

Returns by value, unit of length: yard.

Also see createYard().

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

◆ getYear()

static MeasureUnit icu::MeasureUnit::getYear ( )
static

Returns by value, unit of duration: year.

Also see createYear().

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

◆ getYearPerson()

static MeasureUnit icu::MeasureUnit::getYearPerson ( )
static

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

Also see createYearPerson().

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

◆ initCurrency()

void icu::MeasureUnit::initCurrency ( const char *  isoCurrency)
protected

For ICU use only.

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

◆ initNoUnit()

void icu::MeasureUnit::initNoUnit ( const char *  subtype)
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.

◆ internalGetIndexForTypeAndSubtype()

static int32_t icu::MeasureUnit::internalGetIndexForTypeAndSubtype ( const char *  type,
const char *  subtype 
)
static

ICU use only.

Returns
the unit.getIndex() of the unit which has this unit.getType() and unit.getSubtype(), or a negative value if there is no such unit
Internal:
Do not use. This API is for internal use only.

◆ operator!=()

UBool icu::MeasureUnit::operator!= ( const UObject other) const
inline

Inequality operator.

Return true if this object is not equal to the given object.

Stable:
ICU 53

Definition at line 87 of file measunit.h.

References icu::UObject::getDynamicClassID().

◆ operator=()

MeasureUnit& icu::MeasureUnit::operator= ( const MeasureUnit other)

Assignment operator.

Stable:
ICU 3.0

◆ operator==()

virtual UBool icu::MeasureUnit::operator== ( const UObject other) const
virtual

Equality operator.

Return true if this object is equal to the given object.

Stable:
ICU 3.0

◆ resolveUnitPerUnit()

static MeasureUnit icu::MeasureUnit::resolveUnitPerUnit ( const MeasureUnit unit,
const MeasureUnit perUnit,
bool *  isResolved 
)
static

ICU use only.

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

The documentation for this class was generated from the following file: