ICU 76.1 76.1
|
A unit such as length, mass, volume, currency, etc. More...
#include <measunit.h>
Public Member Functions | |
MeasureUnit () | |
Default constructor. | |
MeasureUnit (const MeasureUnit &other) | |
Copy constructor. | |
MeasureUnit (MeasureUnit &&other) noexcept | |
Move constructor. | |
MeasureUnit & | operator= (const MeasureUnit &other) |
Copy assignment operator. | |
MeasureUnit & | operator= (MeasureUnit &&other) noexcept |
Move assignment operator. | |
virtual MeasureUnit * | clone () const |
Returns a polymorphic clone of this object. | |
virtual | ~MeasureUnit () |
Destructor. | |
virtual bool | operator== (const UObject &other) const |
Equality operator. | |
bool | operator!= (const UObject &other) const |
Inequality operator. | |
const char * | getType () const |
Get the type. | |
const char * | getSubtype () const |
Get the sub type. | |
const char * | getIdentifier () const |
Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35. | |
UMeasureUnitComplexity | getComplexity (UErrorCode &status) const |
Compute the complexity of the unit. | |
MeasureUnit | withPrefix (UMeasurePrefix prefix, UErrorCode &status) const |
Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix. | |
UMeasurePrefix | getPrefix (UErrorCode &status) const |
Returns the current SI or binary prefix of this SINGLE unit. | |
MeasureUnit | withDimensionality (int32_t dimensionality, UErrorCode &status) const |
Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power). | |
int32_t | getDimensionality (UErrorCode &status) const |
Gets the dimensionality (power) of this MeasureUnit. | |
MeasureUnit | reciprocal (UErrorCode &status) const |
Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped. | |
MeasureUnit | product (const MeasureUnit &other, UErrorCode &status) const |
Gets the product of this unit with another unit. | |
std::pair< LocalArray< MeasureUnit >, int32_t > | splitToSingleUnits (UErrorCode &status) const |
Gets the list of SINGLE units contained within a MIXED or COMPOUND unit. | |
virtual UClassID | getDynamicClassID () const override |
Returns a unique class ID POLYMORPHICALLY. | |
int32_t | getOffset () const |
ICU use only. | |
![]() | |
virtual | ~UObject () |
Destructor. | |
Static Public Member Functions | |
static MeasureUnit | forIdentifier (StringPiece identifier, UErrorCode &status) |
Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS. | |
static int32_t | getAvailable (MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode) |
getAvailable gets all of the available units. | |
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. | |
static StringEnumeration * | getAvailableTypes (UErrorCode &errorCode) |
getAvailableTypes gets all of the available types. | |
static UClassID | getStaticClassID () |
Return the class ID for this class. | |
static MeasureUnit * | createGForce (UErrorCode &status) |
Returns by pointer, unit of acceleration: g-force. | |
static MeasureUnit | getGForce () |
Returns by value, unit of acceleration: g-force. | |
static MeasureUnit * | createMeterPerSecondSquared (UErrorCode &status) |
Returns by pointer, unit of acceleration: meter-per-square-second. | |
static MeasureUnit | getMeterPerSecondSquared () |
Returns by value, unit of acceleration: meter-per-square-second. | |
static MeasureUnit * | createArcMinute (UErrorCode &status) |
Returns by pointer, unit of angle: arc-minute. | |
static MeasureUnit | getArcMinute () |
Returns by value, unit of angle: arc-minute. | |
static MeasureUnit * | createArcSecond (UErrorCode &status) |
Returns by pointer, unit of angle: arc-second. | |
static MeasureUnit | getArcSecond () |
Returns by value, unit of angle: arc-second. | |
static MeasureUnit * | createDegree (UErrorCode &status) |
Returns by pointer, unit of angle: degree. | |
static MeasureUnit | getDegree () |
Returns by value, unit of angle: degree. | |
static MeasureUnit * | createRadian (UErrorCode &status) |
Returns by pointer, unit of angle: radian. | |
static MeasureUnit | getRadian () |
Returns by value, unit of angle: radian. | |
static MeasureUnit * | createRevolutionAngle (UErrorCode &status) |
Returns by pointer, unit of angle: revolution. | |
static MeasureUnit | getRevolutionAngle () |
Returns by value, unit of angle: revolution. | |
static MeasureUnit * | createAcre (UErrorCode &status) |
Returns by pointer, unit of area: acre. | |
static MeasureUnit | getAcre () |
Returns by value, unit of area: acre. | |
static MeasureUnit * | createDunam (UErrorCode &status) |
Returns by pointer, unit of area: dunam. | |
static MeasureUnit | getDunam () |
Returns by value, unit of area: dunam. | |
static MeasureUnit * | createHectare (UErrorCode &status) |
Returns by pointer, unit of area: hectare. | |
static MeasureUnit | getHectare () |
Returns by value, unit of area: hectare. | |
static MeasureUnit * | createSquareCentimeter (UErrorCode &status) |
Returns by pointer, unit of area: square-centimeter. | |
static MeasureUnit | getSquareCentimeter () |
Returns by value, unit of area: square-centimeter. | |
static MeasureUnit * | createSquareFoot (UErrorCode &status) |
Returns by pointer, unit of area: square-foot. | |
static MeasureUnit | getSquareFoot () |
Returns by value, unit of area: square-foot. | |
static MeasureUnit * | createSquareInch (UErrorCode &status) |
Returns by pointer, unit of area: square-inch. | |
static MeasureUnit | getSquareInch () |
Returns by value, unit of area: square-inch. | |
static MeasureUnit * | createSquareKilometer (UErrorCode &status) |
Returns by pointer, unit of area: square-kilometer. | |
static MeasureUnit | getSquareKilometer () |
Returns by value, unit of area: square-kilometer. | |
static MeasureUnit * | createSquareMeter (UErrorCode &status) |
Returns by pointer, unit of area: square-meter. | |
static MeasureUnit | getSquareMeter () |
Returns by value, unit of area: square-meter. | |
static MeasureUnit * | createSquareMile (UErrorCode &status) |
Returns by pointer, unit of area: square-mile. | |
static MeasureUnit | getSquareMile () |
Returns by value, unit of area: square-mile. | |
static MeasureUnit * | createSquareYard (UErrorCode &status) |
Returns by pointer, unit of area: square-yard. | |
static MeasureUnit | getSquareYard () |
Returns by value, unit of area: square-yard. | |
static MeasureUnit * | createItem (UErrorCode &status) |
Returns by pointer, unit of concentr: item. | |
static MeasureUnit | getItem () |
Returns by value, unit of concentr: item. | |
static MeasureUnit * | createKarat (UErrorCode &status) |
Returns by pointer, unit of concentr: karat. | |
static MeasureUnit | getKarat () |
Returns by value, unit of concentr: karat. | |
static MeasureUnit * | createMilligramOfglucosePerDeciliter (UErrorCode &status) |
Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter. | |
static MeasureUnit | getMilligramOfglucosePerDeciliter () |
Returns by value, unit of concentr: milligram-ofglucose-per-deciliter. | |
static MeasureUnit * | createMilligramPerDeciliter (UErrorCode &status) |
Returns by pointer, unit of concentr: milligram-per-deciliter. | |
static MeasureUnit | getMilligramPerDeciliter () |
Returns by value, unit of concentr: milligram-per-deciliter. | |
static MeasureUnit * | createMillimolePerLiter (UErrorCode &status) |
Returns by pointer, unit of concentr: millimole-per-liter. | |
static MeasureUnit | getMillimolePerLiter () |
Returns by value, unit of concentr: millimole-per-liter. | |
static MeasureUnit * | createMole (UErrorCode &status) |
Returns by pointer, unit of concentr: mole. | |
static MeasureUnit | getMole () |
Returns by value, unit of concentr: mole. | |
static MeasureUnit * | createPercent (UErrorCode &status) |
Returns by pointer, unit of concentr: percent. | |
static MeasureUnit | getPercent () |
Returns by value, unit of concentr: percent. | |
static MeasureUnit * | createPermille (UErrorCode &status) |
Returns by pointer, unit of concentr: permille. | |
static MeasureUnit | getPermille () |
Returns by value, unit of concentr: permille. | |
static MeasureUnit * | createPartPerMillion (UErrorCode &status) |
Returns by pointer, unit of concentr: permillion. | |
static MeasureUnit | getPartPerMillion () |
Returns by value, unit of concentr: permillion. | |
static MeasureUnit * | createPermyriad (UErrorCode &status) |
Returns by pointer, unit of concentr: permyriad. | |
static MeasureUnit | getPermyriad () |
Returns by value, unit of concentr: permyriad. | |
static MeasureUnit * | createLiterPer100Kilometers (UErrorCode &status) |
Returns by pointer, unit of consumption: liter-per-100-kilometer. | |
static MeasureUnit | getLiterPer100Kilometers () |
Returns by value, unit of consumption: liter-per-100-kilometer. | |
static MeasureUnit * | createLiterPerKilometer (UErrorCode &status) |
Returns by pointer, unit of consumption: liter-per-kilometer. | |
static MeasureUnit | getLiterPerKilometer () |
Returns by value, unit of consumption: liter-per-kilometer. | |
static MeasureUnit * | createMilePerGallon (UErrorCode &status) |
Returns by pointer, unit of consumption: mile-per-gallon. | |
static MeasureUnit | getMilePerGallon () |
Returns by value, unit of consumption: mile-per-gallon. | |
static MeasureUnit * | createMilePerGallonImperial (UErrorCode &status) |
Returns by pointer, unit of consumption: mile-per-gallon-imperial. | |
static MeasureUnit | getMilePerGallonImperial () |
Returns by value, unit of consumption: mile-per-gallon-imperial. | |
static MeasureUnit * | createBit (UErrorCode &status) |
Returns by pointer, unit of digital: bit. | |
static MeasureUnit | getBit () |
Returns by value, unit of digital: bit. | |
static MeasureUnit * | createByte (UErrorCode &status) |
Returns by pointer, unit of digital: byte. | |
static MeasureUnit | getByte () |
Returns by value, unit of digital: byte. | |
static MeasureUnit * | createGigabit (UErrorCode &status) |
Returns by pointer, unit of digital: gigabit. | |
static MeasureUnit | getGigabit () |
Returns by value, unit of digital: gigabit. | |
static MeasureUnit * | createGigabyte (UErrorCode &status) |
Returns by pointer, unit of digital: gigabyte. | |
static MeasureUnit | getGigabyte () |
Returns by value, unit of digital: gigabyte. | |
static MeasureUnit * | createKilobit (UErrorCode &status) |
Returns by pointer, unit of digital: kilobit. | |
static MeasureUnit | getKilobit () |
Returns by value, unit of digital: kilobit. | |
static MeasureUnit * | createKilobyte (UErrorCode &status) |
Returns by pointer, unit of digital: kilobyte. | |
static MeasureUnit | getKilobyte () |
Returns by value, unit of digital: kilobyte. | |
static MeasureUnit * | createMegabit (UErrorCode &status) |
Returns by pointer, unit of digital: megabit. | |
static MeasureUnit | getMegabit () |
Returns by value, unit of digital: megabit. | |
static MeasureUnit * | createMegabyte (UErrorCode &status) |
Returns by pointer, unit of digital: megabyte. | |
static MeasureUnit | getMegabyte () |
Returns by value, unit of digital: megabyte. | |
static MeasureUnit * | createPetabyte (UErrorCode &status) |
Returns by pointer, unit of digital: petabyte. | |
static MeasureUnit | getPetabyte () |
Returns by value, unit of digital: petabyte. | |
static MeasureUnit * | createTerabit (UErrorCode &status) |
Returns by pointer, unit of digital: terabit. | |
static MeasureUnit | getTerabit () |
Returns by value, unit of digital: terabit. | |
static MeasureUnit * | createTerabyte (UErrorCode &status) |
Returns by pointer, unit of digital: terabyte. | |
static MeasureUnit | getTerabyte () |
Returns by value, unit of digital: terabyte. | |
static MeasureUnit * | createCentury (UErrorCode &status) |
Returns by pointer, unit of duration: century. | |
static MeasureUnit | getCentury () |
Returns by value, unit of duration: century. | |
static MeasureUnit * | createDay (UErrorCode &status) |
Returns by pointer, unit of duration: day. | |
static MeasureUnit | getDay () |
Returns by value, unit of duration: day. | |
static MeasureUnit * | createDayPerson (UErrorCode &status) |
Returns by pointer, unit of duration: day-person. | |
static MeasureUnit | getDayPerson () |
Returns by value, unit of duration: day-person. | |
static MeasureUnit * | createDecade (UErrorCode &status) |
Returns by pointer, unit of duration: decade. | |
static MeasureUnit | getDecade () |
Returns by value, unit of duration: decade. | |
static MeasureUnit * | createHour (UErrorCode &status) |
Returns by pointer, unit of duration: hour. | |
static MeasureUnit | getHour () |
Returns by value, unit of duration: hour. | |
static MeasureUnit * | createMicrosecond (UErrorCode &status) |
Returns by pointer, unit of duration: microsecond. | |
static MeasureUnit | getMicrosecond () |
Returns by value, unit of duration: microsecond. | |
static MeasureUnit * | createMillisecond (UErrorCode &status) |
Returns by pointer, unit of duration: millisecond. | |
static MeasureUnit | getMillisecond () |
Returns by value, unit of duration: millisecond. | |
static MeasureUnit * | createMinute (UErrorCode &status) |
Returns by pointer, unit of duration: minute. | |
static MeasureUnit | getMinute () |
Returns by value, unit of duration: minute. | |
static MeasureUnit * | createMonth (UErrorCode &status) |
Returns by pointer, unit of duration: month. | |
static MeasureUnit | getMonth () |
Returns by value, unit of duration: month. | |
static MeasureUnit * | createMonthPerson (UErrorCode &status) |
Returns by pointer, unit of duration: month-person. | |
static MeasureUnit | getMonthPerson () |
Returns by value, unit of duration: month-person. | |
static MeasureUnit * | createNanosecond (UErrorCode &status) |
Returns by pointer, unit of duration: nanosecond. | |
static MeasureUnit | getNanosecond () |
Returns by value, unit of duration: nanosecond. | |
static MeasureUnit * | createNight (UErrorCode &status) |
Returns by pointer, unit of duration: night. | |
static MeasureUnit | getNight () |
Returns by value, unit of duration: night. | |
static MeasureUnit * | createQuarter (UErrorCode &status) |
Returns by pointer, unit of duration: quarter. | |
static MeasureUnit | getQuarter () |
Returns by value, unit of duration: quarter. | |
static MeasureUnit * | createSecond (UErrorCode &status) |
Returns by pointer, unit of duration: second. | |
static MeasureUnit | getSecond () |
Returns by value, unit of duration: second. | |
static MeasureUnit * | createWeek (UErrorCode &status) |
Returns by pointer, unit of duration: week. | |
static MeasureUnit | getWeek () |
Returns by value, unit of duration: week. | |
static MeasureUnit * | createWeekPerson (UErrorCode &status) |
Returns by pointer, unit of duration: week-person. | |
static MeasureUnit | getWeekPerson () |
Returns by value, unit of duration: week-person. | |
static MeasureUnit * | createYear (UErrorCode &status) |
Returns by pointer, unit of duration: year. | |
static MeasureUnit | getYear () |
Returns by value, unit of duration: year. | |
static MeasureUnit * | createYearPerson (UErrorCode &status) |
Returns by pointer, unit of duration: year-person. | |
static MeasureUnit | getYearPerson () |
Returns by value, unit of duration: year-person. | |
static MeasureUnit * | createAmpere (UErrorCode &status) |
Returns by pointer, unit of electric: ampere. | |
static MeasureUnit | getAmpere () |
Returns by value, unit of electric: ampere. | |
static MeasureUnit * | createMilliampere (UErrorCode &status) |
Returns by pointer, unit of electric: milliampere. | |
static MeasureUnit | getMilliampere () |
Returns by value, unit of electric: milliampere. | |
static MeasureUnit * | createOhm (UErrorCode &status) |
Returns by pointer, unit of electric: ohm. | |
static MeasureUnit | getOhm () |
Returns by value, unit of electric: ohm. | |
static MeasureUnit * | createVolt (UErrorCode &status) |
Returns by pointer, unit of electric: volt. | |
static MeasureUnit | getVolt () |
Returns by value, unit of electric: volt. | |
static MeasureUnit * | createBritishThermalUnit (UErrorCode &status) |
Returns by pointer, unit of energy: british-thermal-unit. | |
static MeasureUnit | getBritishThermalUnit () |
Returns by value, unit of energy: british-thermal-unit. | |
static MeasureUnit * | createCalorie (UErrorCode &status) |
Returns by pointer, unit of energy: calorie. | |
static MeasureUnit | getCalorie () |
Returns by value, unit of energy: calorie. | |
static MeasureUnit * | createElectronvolt (UErrorCode &status) |
Returns by pointer, unit of energy: electronvolt. | |
static MeasureUnit | getElectronvolt () |
Returns by value, unit of energy: electronvolt. | |
static MeasureUnit * | createFoodcalorie (UErrorCode &status) |
Returns by pointer, unit of energy: foodcalorie. | |
static MeasureUnit | getFoodcalorie () |
Returns by value, unit of energy: foodcalorie. | |
static MeasureUnit * | createJoule (UErrorCode &status) |
Returns by pointer, unit of energy: joule. | |
static MeasureUnit | getJoule () |
Returns by value, unit of energy: joule. | |
static MeasureUnit * | createKilocalorie (UErrorCode &status) |
Returns by pointer, unit of energy: kilocalorie. | |
static MeasureUnit | getKilocalorie () |
Returns by value, unit of energy: kilocalorie. | |
static MeasureUnit * | createKilojoule (UErrorCode &status) |
Returns by pointer, unit of energy: kilojoule. | |
static MeasureUnit | getKilojoule () |
Returns by value, unit of energy: kilojoule. | |
static MeasureUnit * | createKilowattHour (UErrorCode &status) |
Returns by pointer, unit of energy: kilowatt-hour. | |
static MeasureUnit | getKilowattHour () |
Returns by value, unit of energy: kilowatt-hour. | |
static MeasureUnit * | createThermUs (UErrorCode &status) |
Returns by pointer, unit of energy: therm-us. | |
static MeasureUnit | getThermUs () |
Returns by value, unit of energy: therm-us. | |
static MeasureUnit * | createKilowattHourPer100Kilometer (UErrorCode &status) |
Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer. | |
static MeasureUnit | getKilowattHourPer100Kilometer () |
Returns by value, unit of force: kilowatt-hour-per-100-kilometer. | |
static MeasureUnit * | createNewton (UErrorCode &status) |
Returns by pointer, unit of force: newton. | |
static MeasureUnit | getNewton () |
Returns by value, unit of force: newton. | |
static MeasureUnit * | createPoundForce (UErrorCode &status) |
Returns by pointer, unit of force: pound-force. | |
static MeasureUnit | getPoundForce () |
Returns by value, unit of force: pound-force. | |
static MeasureUnit * | createGigahertz (UErrorCode &status) |
Returns by pointer, unit of frequency: gigahertz. | |
static MeasureUnit | getGigahertz () |
Returns by value, unit of frequency: gigahertz. | |
static MeasureUnit * | createHertz (UErrorCode &status) |
Returns by pointer, unit of frequency: hertz. | |
static MeasureUnit | getHertz () |
Returns by value, unit of frequency: hertz. | |
static MeasureUnit * | createKilohertz (UErrorCode &status) |
Returns by pointer, unit of frequency: kilohertz. | |
static MeasureUnit | getKilohertz () |
Returns by value, unit of frequency: kilohertz. | |
static MeasureUnit * | createMegahertz (UErrorCode &status) |
Returns by pointer, unit of frequency: megahertz. | |
static MeasureUnit | getMegahertz () |
Returns by value, unit of frequency: megahertz. | |
static MeasureUnit * | createDot (UErrorCode &status) |
Returns by pointer, unit of graphics: dot. | |
static MeasureUnit | getDot () |
Returns by value, unit of graphics: dot. | |
static MeasureUnit * | createDotPerCentimeter (UErrorCode &status) |
Returns by pointer, unit of graphics: dot-per-centimeter. | |
static MeasureUnit | getDotPerCentimeter () |
Returns by value, unit of graphics: dot-per-centimeter. | |
static MeasureUnit * | createDotPerInch (UErrorCode &status) |
Returns by pointer, unit of graphics: dot-per-inch. | |
static MeasureUnit | getDotPerInch () |
Returns by value, unit of graphics: dot-per-inch. | |
static MeasureUnit * | createEm (UErrorCode &status) |
Returns by pointer, unit of graphics: em. | |
static MeasureUnit | getEm () |
Returns by value, unit of graphics: em. | |
static MeasureUnit * | createMegapixel (UErrorCode &status) |
Returns by pointer, unit of graphics: megapixel. | |
static MeasureUnit | getMegapixel () |
Returns by value, unit of graphics: megapixel. | |
static MeasureUnit * | createPixel (UErrorCode &status) |
Returns by pointer, unit of graphics: pixel. | |
static MeasureUnit | getPixel () |
Returns by value, unit of graphics: pixel. | |
static MeasureUnit * | createPixelPerCentimeter (UErrorCode &status) |
Returns by pointer, unit of graphics: pixel-per-centimeter. | |
static MeasureUnit | getPixelPerCentimeter () |
Returns by value, unit of graphics: pixel-per-centimeter. | |
static MeasureUnit * | createPixelPerInch (UErrorCode &status) |
Returns by pointer, unit of graphics: pixel-per-inch. | |
static MeasureUnit | getPixelPerInch () |
Returns by value, unit of graphics: pixel-per-inch. | |
static MeasureUnit * | createAstronomicalUnit (UErrorCode &status) |
Returns by pointer, unit of length: astronomical-unit. | |
static MeasureUnit | getAstronomicalUnit () |
Returns by value, unit of length: astronomical-unit. | |
static MeasureUnit * | createCentimeter (UErrorCode &status) |
Returns by pointer, unit of length: centimeter. | |
static MeasureUnit | getCentimeter () |
Returns by value, unit of length: centimeter. | |
static MeasureUnit * | createDecimeter (UErrorCode &status) |
Returns by pointer, unit of length: decimeter. | |
static MeasureUnit | getDecimeter () |
Returns by value, unit of length: decimeter. | |
static MeasureUnit * | createEarthRadius (UErrorCode &status) |
Returns by pointer, unit of length: earth-radius. | |
static MeasureUnit | getEarthRadius () |
Returns by value, unit of length: earth-radius. | |
static MeasureUnit * | createFathom (UErrorCode &status) |
Returns by pointer, unit of length: fathom. | |
static MeasureUnit | getFathom () |
Returns by value, unit of length: fathom. | |
static MeasureUnit * | createFoot (UErrorCode &status) |
Returns by pointer, unit of length: foot. | |
static MeasureUnit | getFoot () |
Returns by value, unit of length: foot. | |
static MeasureUnit * | createFurlong (UErrorCode &status) |
Returns by pointer, unit of length: furlong. | |
static MeasureUnit | getFurlong () |
Returns by value, unit of length: furlong. | |
static MeasureUnit * | createInch (UErrorCode &status) |
Returns by pointer, unit of length: inch. | |
static MeasureUnit | getInch () |
Returns by value, unit of length: inch. | |
static MeasureUnit * | createKilometer (UErrorCode &status) |
Returns by pointer, unit of length: kilometer. | |
static MeasureUnit | getKilometer () |
Returns by value, unit of length: kilometer. | |
static MeasureUnit * | createLightYear (UErrorCode &status) |
Returns by pointer, unit of length: light-year. | |
static MeasureUnit | getLightYear () |
Returns by value, unit of length: light-year. | |
static MeasureUnit * | createMeter (UErrorCode &status) |
Returns by pointer, unit of length: meter. | |
static MeasureUnit | getMeter () |
Returns by value, unit of length: meter. | |
static MeasureUnit * | createMicrometer (UErrorCode &status) |
Returns by pointer, unit of length: micrometer. | |
static MeasureUnit | getMicrometer () |
Returns by value, unit of length: micrometer. | |
static MeasureUnit * | createMile (UErrorCode &status) |
Returns by pointer, unit of length: mile. | |
static MeasureUnit | getMile () |
Returns by value, unit of length: mile. | |
static MeasureUnit * | createMileScandinavian (UErrorCode &status) |
Returns by pointer, unit of length: mile-scandinavian. | |
static MeasureUnit | getMileScandinavian () |
Returns by value, unit of length: mile-scandinavian. | |
static MeasureUnit * | createMillimeter (UErrorCode &status) |
Returns by pointer, unit of length: millimeter. | |
static MeasureUnit | getMillimeter () |
Returns by value, unit of length: millimeter. | |
static MeasureUnit * | createNanometer (UErrorCode &status) |
Returns by pointer, unit of length: nanometer. | |
static MeasureUnit | getNanometer () |
Returns by value, unit of length: nanometer. | |
static MeasureUnit * | createNauticalMile (UErrorCode &status) |
Returns by pointer, unit of length: nautical-mile. | |
static MeasureUnit | getNauticalMile () |
Returns by value, unit of length: nautical-mile. | |
static MeasureUnit * | createParsec (UErrorCode &status) |
Returns by pointer, unit of length: parsec. | |
static MeasureUnit | getParsec () |
Returns by value, unit of length: parsec. | |
static MeasureUnit * | createPicometer (UErrorCode &status) |
Returns by pointer, unit of length: picometer. | |
static MeasureUnit | getPicometer () |
Returns by value, unit of length: picometer. | |
static MeasureUnit * | createPoint (UErrorCode &status) |
Returns by pointer, unit of length: point. | |
static MeasureUnit | getPoint () |
Returns by value, unit of length: point. | |
static MeasureUnit * | createSolarRadius (UErrorCode &status) |
Returns by pointer, unit of length: solar-radius. | |
static MeasureUnit | getSolarRadius () |
Returns by value, unit of length: solar-radius. | |
static MeasureUnit * | createYard (UErrorCode &status) |
Returns by pointer, unit of length: yard. | |
static MeasureUnit | getYard () |
Returns by value, unit of length: yard. | |
static MeasureUnit * | createCandela (UErrorCode &status) |
Returns by pointer, unit of light: candela. | |
static MeasureUnit | getCandela () |
Returns by value, unit of light: candela. | |
static MeasureUnit * | createLumen (UErrorCode &status) |
Returns by pointer, unit of light: lumen. | |
static MeasureUnit | getLumen () |
Returns by value, unit of light: lumen. | |
static MeasureUnit * | createLux (UErrorCode &status) |
Returns by pointer, unit of light: lux. | |
static MeasureUnit | getLux () |
Returns by value, unit of light: lux. | |
static MeasureUnit * | createSolarLuminosity (UErrorCode &status) |
Returns by pointer, unit of light: solar-luminosity. | |
static MeasureUnit | getSolarLuminosity () |
Returns by value, unit of light: solar-luminosity. | |
static MeasureUnit * | createCarat (UErrorCode &status) |
Returns by pointer, unit of mass: carat. | |
static MeasureUnit | getCarat () |
Returns by value, unit of mass: carat. | |
static MeasureUnit * | createDalton (UErrorCode &status) |
Returns by pointer, unit of mass: dalton. | |
static MeasureUnit | getDalton () |
Returns by value, unit of mass: dalton. | |
static MeasureUnit * | createEarthMass (UErrorCode &status) |
Returns by pointer, unit of mass: earth-mass. | |
static MeasureUnit | getEarthMass () |
Returns by value, unit of mass: earth-mass. | |
static MeasureUnit * | createGrain (UErrorCode &status) |
Returns by pointer, unit of mass: grain. | |
static MeasureUnit | getGrain () |
Returns by value, unit of mass: grain. | |
static MeasureUnit * | createGram (UErrorCode &status) |
Returns by pointer, unit of mass: gram. | |
static MeasureUnit | getGram () |
Returns by value, unit of mass: gram. | |
static MeasureUnit * | createKilogram (UErrorCode &status) |
Returns by pointer, unit of mass: kilogram. | |
static MeasureUnit | getKilogram () |
Returns by value, unit of mass: kilogram. | |
static MeasureUnit * | createMicrogram (UErrorCode &status) |
Returns by pointer, unit of mass: microgram. | |
static MeasureUnit | getMicrogram () |
Returns by value, unit of mass: microgram. | |
static MeasureUnit * | createMilligram (UErrorCode &status) |
Returns by pointer, unit of mass: milligram. | |
static MeasureUnit | getMilligram () |
Returns by value, unit of mass: milligram. | |
static MeasureUnit * | createOunce (UErrorCode &status) |
Returns by pointer, unit of mass: ounce. | |
static MeasureUnit | getOunce () |
Returns by value, unit of mass: ounce. | |
static MeasureUnit * | createOunceTroy (UErrorCode &status) |
Returns by pointer, unit of mass: ounce-troy. | |
static MeasureUnit | getOunceTroy () |
Returns by value, unit of mass: ounce-troy. | |
static MeasureUnit * | createPound (UErrorCode &status) |
Returns by pointer, unit of mass: pound. | |
static MeasureUnit | getPound () |
Returns by value, unit of mass: pound. | |
static MeasureUnit * | createSolarMass (UErrorCode &status) |
Returns by pointer, unit of mass: solar-mass. | |
static MeasureUnit | getSolarMass () |
Returns by value, unit of mass: solar-mass. | |
static MeasureUnit * | createStone (UErrorCode &status) |
Returns by pointer, unit of mass: stone. | |
static MeasureUnit | getStone () |
Returns by value, unit of mass: stone. | |
static MeasureUnit * | createTon (UErrorCode &status) |
Returns by pointer, unit of mass: ton. | |
static MeasureUnit | getTon () |
Returns by value, unit of mass: ton. | |
static MeasureUnit * | createTonne (UErrorCode &status) |
Returns by pointer, unit of mass: tonne. | |
static MeasureUnit | getTonne () |
Returns by value, unit of mass: tonne. | |
static MeasureUnit * | createMetricTon (UErrorCode &status) |
Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72). | |
static MeasureUnit | getMetricTon () |
Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72). | |
static MeasureUnit * | createGigawatt (UErrorCode &status) |
Returns by pointer, unit of power: gigawatt. | |
static MeasureUnit | getGigawatt () |
Returns by value, unit of power: gigawatt. | |
static MeasureUnit * | createHorsepower (UErrorCode &status) |
Returns by pointer, unit of power: horsepower. | |
static MeasureUnit | getHorsepower () |
Returns by value, unit of power: horsepower. | |
static MeasureUnit * | createKilowatt (UErrorCode &status) |
Returns by pointer, unit of power: kilowatt. | |
static MeasureUnit | getKilowatt () |
Returns by value, unit of power: kilowatt. | |
static MeasureUnit * | createMegawatt (UErrorCode &status) |
Returns by pointer, unit of power: megawatt. | |
static MeasureUnit | getMegawatt () |
Returns by value, unit of power: megawatt. | |
static MeasureUnit * | createMilliwatt (UErrorCode &status) |
Returns by pointer, unit of power: milliwatt. | |
static MeasureUnit | getMilliwatt () |
Returns by value, unit of power: milliwatt. | |
static MeasureUnit * | createWatt (UErrorCode &status) |
Returns by pointer, unit of power: watt. | |
static MeasureUnit | getWatt () |
Returns by value, unit of power: watt. | |
static MeasureUnit * | createAtmosphere (UErrorCode &status) |
Returns by pointer, unit of pressure: atmosphere. | |
static MeasureUnit | getAtmosphere () |
Returns by value, unit of pressure: atmosphere. | |
static MeasureUnit * | createBar (UErrorCode &status) |
Returns by pointer, unit of pressure: bar. | |
static MeasureUnit | getBar () |
Returns by value, unit of pressure: bar. | |
static MeasureUnit * | createGasolineEnergyDensity (UErrorCode &status) |
Returns by pointer, unit of pressure: gasoline-energy-density. | |
static MeasureUnit | getGasolineEnergyDensity () |
Returns by value, unit of pressure: gasoline-energy-density. | |
static MeasureUnit * | createHectopascal (UErrorCode &status) |
Returns by pointer, unit of pressure: hectopascal. | |
static MeasureUnit | getHectopascal () |
Returns by value, unit of pressure: hectopascal. | |
static MeasureUnit * | createInchHg (UErrorCode &status) |
Returns by pointer, unit of pressure: inch-ofhg. | |
static MeasureUnit | getInchHg () |
Returns by value, unit of pressure: inch-ofhg. | |
static MeasureUnit * | createKilopascal (UErrorCode &status) |
Returns by pointer, unit of pressure: kilopascal. | |
static MeasureUnit | getKilopascal () |
Returns by value, unit of pressure: kilopascal. | |
static MeasureUnit * | createMegapascal (UErrorCode &status) |
Returns by pointer, unit of pressure: megapascal. | |
static MeasureUnit | getMegapascal () |
Returns by value, unit of pressure: megapascal. | |
static MeasureUnit * | createMillibar (UErrorCode &status) |
Returns by pointer, unit of pressure: millibar. | |
static MeasureUnit | getMillibar () |
Returns by value, unit of pressure: millibar. | |
static MeasureUnit * | createMillimeterOfMercury (UErrorCode &status) |
Returns by pointer, unit of pressure: millimeter-ofhg. | |
static MeasureUnit | getMillimeterOfMercury () |
Returns by value, unit of pressure: millimeter-ofhg. | |
static MeasureUnit * | createPascal (UErrorCode &status) |
Returns by pointer, unit of pressure: pascal. | |
static MeasureUnit | getPascal () |
Returns by value, unit of pressure: pascal. | |
static MeasureUnit * | createPoundPerSquareInch (UErrorCode &status) |
Returns by pointer, unit of pressure: pound-force-per-square-inch. | |
static MeasureUnit | getPoundPerSquareInch () |
Returns by value, unit of pressure: pound-force-per-square-inch. | |
static MeasureUnit * | createBeaufort (UErrorCode &status) |
Returns by pointer, unit of speed: beaufort. | |
static MeasureUnit | getBeaufort () |
Returns by value, unit of speed: beaufort. | |
static MeasureUnit * | createKilometerPerHour (UErrorCode &status) |
Returns by pointer, unit of speed: kilometer-per-hour. | |
static MeasureUnit | getKilometerPerHour () |
Returns by value, unit of speed: kilometer-per-hour. | |
static MeasureUnit * | createKnot (UErrorCode &status) |
Returns by pointer, unit of speed: knot. | |
static MeasureUnit | getKnot () |
Returns by value, unit of speed: knot. | |
static MeasureUnit * | createLightSpeed (UErrorCode &status) |
Returns by pointer, unit of speed: light-speed. | |
static MeasureUnit | getLightSpeed () |
Returns by value, unit of speed: light-speed. | |
static MeasureUnit * | createMeterPerSecond (UErrorCode &status) |
Returns by pointer, unit of speed: meter-per-second. | |
static MeasureUnit | getMeterPerSecond () |
Returns by value, unit of speed: meter-per-second. | |
static MeasureUnit * | createMilePerHour (UErrorCode &status) |
Returns by pointer, unit of speed: mile-per-hour. | |
static MeasureUnit | getMilePerHour () |
Returns by value, unit of speed: mile-per-hour. | |
static MeasureUnit * | createCelsius (UErrorCode &status) |
Returns by pointer, unit of temperature: celsius. | |
static MeasureUnit | getCelsius () |
Returns by value, unit of temperature: celsius. | |
static MeasureUnit * | createFahrenheit (UErrorCode &status) |
Returns by pointer, unit of temperature: fahrenheit. | |
static MeasureUnit | getFahrenheit () |
Returns by value, unit of temperature: fahrenheit. | |
static MeasureUnit * | createGenericTemperature (UErrorCode &status) |
Returns by pointer, unit of temperature: generic. | |
static MeasureUnit | getGenericTemperature () |
Returns by value, unit of temperature: generic. | |
static MeasureUnit * | createKelvin (UErrorCode &status) |
Returns by pointer, unit of temperature: kelvin. | |
static MeasureUnit | getKelvin () |
Returns by value, unit of temperature: kelvin. | |
static MeasureUnit * | createNewtonMeter (UErrorCode &status) |
Returns by pointer, unit of torque: newton-meter. | |
static MeasureUnit | getNewtonMeter () |
Returns by value, unit of torque: newton-meter. | |
static MeasureUnit * | createPoundFoot (UErrorCode &status) |
Returns by pointer, unit of torque: pound-force-foot. | |
static MeasureUnit | getPoundFoot () |
Returns by value, unit of torque: pound-force-foot. | |
static MeasureUnit * | createAcreFoot (UErrorCode &status) |
Returns by pointer, unit of volume: acre-foot. | |
static MeasureUnit | getAcreFoot () |
Returns by value, unit of volume: acre-foot. | |
static MeasureUnit * | createBarrel (UErrorCode &status) |
Returns by pointer, unit of volume: barrel. | |
static MeasureUnit | getBarrel () |
Returns by value, unit of volume: barrel. | |
static MeasureUnit * | createBushel (UErrorCode &status) |
Returns by pointer, unit of volume: bushel. | |
static MeasureUnit | getBushel () |
Returns by value, unit of volume: bushel. | |
static MeasureUnit * | createCentiliter (UErrorCode &status) |
Returns by pointer, unit of volume: centiliter. | |
static MeasureUnit | getCentiliter () |
Returns by value, unit of volume: centiliter. | |
static MeasureUnit * | createCubicCentimeter (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-centimeter. | |
static MeasureUnit | getCubicCentimeter () |
Returns by value, unit of volume: cubic-centimeter. | |
static MeasureUnit * | createCubicFoot (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-foot. | |
static MeasureUnit | getCubicFoot () |
Returns by value, unit of volume: cubic-foot. | |
static MeasureUnit * | createCubicInch (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-inch. | |
static MeasureUnit | getCubicInch () |
Returns by value, unit of volume: cubic-inch. | |
static MeasureUnit * | createCubicKilometer (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-kilometer. | |
static MeasureUnit | getCubicKilometer () |
Returns by value, unit of volume: cubic-kilometer. | |
static MeasureUnit * | createCubicMeter (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-meter. | |
static MeasureUnit | getCubicMeter () |
Returns by value, unit of volume: cubic-meter. | |
static MeasureUnit * | createCubicMile (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-mile. | |
static MeasureUnit | getCubicMile () |
Returns by value, unit of volume: cubic-mile. | |
static MeasureUnit * | createCubicYard (UErrorCode &status) |
Returns by pointer, unit of volume: cubic-yard. | |
static MeasureUnit | getCubicYard () |
Returns by value, unit of volume: cubic-yard. | |
static MeasureUnit * | createCup (UErrorCode &status) |
Returns by pointer, unit of volume: cup. | |
static MeasureUnit | getCup () |
Returns by value, unit of volume: cup. | |
static MeasureUnit * | createCupMetric (UErrorCode &status) |
Returns by pointer, unit of volume: cup-metric. | |
static MeasureUnit | getCupMetric () |
Returns by value, unit of volume: cup-metric. | |
static MeasureUnit * | createDeciliter (UErrorCode &status) |
Returns by pointer, unit of volume: deciliter. | |
static MeasureUnit | getDeciliter () |
Returns by value, unit of volume: deciliter. | |
static MeasureUnit * | createDessertSpoon (UErrorCode &status) |
Returns by pointer, unit of volume: dessert-spoon. | |
static MeasureUnit | getDessertSpoon () |
Returns by value, unit of volume: dessert-spoon. | |
static MeasureUnit * | createDessertSpoonImperial (UErrorCode &status) |
Returns by pointer, unit of volume: dessert-spoon-imperial. | |
static MeasureUnit | getDessertSpoonImperial () |
Returns by value, unit of volume: dessert-spoon-imperial. | |
static MeasureUnit * | createDram (UErrorCode &status) |
Returns by pointer, unit of volume: dram. | |
static MeasureUnit | getDram () |
Returns by value, unit of volume: dram. | |
static MeasureUnit * | createDrop (UErrorCode &status) |
Returns by pointer, unit of volume: drop. | |
static MeasureUnit | getDrop () |
Returns by value, unit of volume: drop. | |
static MeasureUnit * | createFluidOunce (UErrorCode &status) |
Returns by pointer, unit of volume: fluid-ounce. | |
static MeasureUnit | getFluidOunce () |
Returns by value, unit of volume: fluid-ounce. | |
static MeasureUnit * | createFluidOunceImperial (UErrorCode &status) |
Returns by pointer, unit of volume: fluid-ounce-imperial. | |
static MeasureUnit | getFluidOunceImperial () |
Returns by value, unit of volume: fluid-ounce-imperial. | |
static MeasureUnit * | createGallon (UErrorCode &status) |
Returns by pointer, unit of volume: gallon. | |
static MeasureUnit | getGallon () |
Returns by value, unit of volume: gallon. | |
static MeasureUnit * | createGallonImperial (UErrorCode &status) |
Returns by pointer, unit of volume: gallon-imperial. | |
static MeasureUnit | getGallonImperial () |
Returns by value, unit of volume: gallon-imperial. | |
static MeasureUnit * | createHectoliter (UErrorCode &status) |
Returns by pointer, unit of volume: hectoliter. | |
static MeasureUnit | getHectoliter () |
Returns by value, unit of volume: hectoliter. | |
static MeasureUnit * | createJigger (UErrorCode &status) |
Returns by pointer, unit of volume: jigger. | |
static MeasureUnit | getJigger () |
Returns by value, unit of volume: jigger. | |
static MeasureUnit * | createLiter (UErrorCode &status) |
Returns by pointer, unit of volume: liter. | |
static MeasureUnit | getLiter () |
Returns by value, unit of volume: liter. | |
static MeasureUnit * | createMegaliter (UErrorCode &status) |
Returns by pointer, unit of volume: megaliter. | |
static MeasureUnit | getMegaliter () |
Returns by value, unit of volume: megaliter. | |
static MeasureUnit * | createMilliliter (UErrorCode &status) |
Returns by pointer, unit of volume: milliliter. | |
static MeasureUnit | getMilliliter () |
Returns by value, unit of volume: milliliter. | |
static MeasureUnit * | createPinch (UErrorCode &status) |
Returns by pointer, unit of volume: pinch. | |
static MeasureUnit | getPinch () |
Returns by value, unit of volume: pinch. | |
static MeasureUnit * | createPint (UErrorCode &status) |
Returns by pointer, unit of volume: pint. | |
static MeasureUnit | getPint () |
Returns by value, unit of volume: pint. | |
static MeasureUnit * | createPintMetric (UErrorCode &status) |
Returns by pointer, unit of volume: pint-metric. | |
static MeasureUnit | getPintMetric () |
Returns by value, unit of volume: pint-metric. | |
static MeasureUnit * | createQuart (UErrorCode &status) |
Returns by pointer, unit of volume: quart. | |
static MeasureUnit | getQuart () |
Returns by value, unit of volume: quart. | |
static MeasureUnit * | createQuartImperial (UErrorCode &status) |
Returns by pointer, unit of volume: quart-imperial. | |
static MeasureUnit | getQuartImperial () |
Returns by value, unit of volume: quart-imperial. | |
static MeasureUnit * | createTablespoon (UErrorCode &status) |
Returns by pointer, unit of volume: tablespoon. | |
static MeasureUnit | getTablespoon () |
Returns by value, unit of volume: tablespoon. | |
static MeasureUnit * | createTeaspoon (UErrorCode &status) |
Returns by pointer, unit of volume: teaspoon. | |
static MeasureUnit | getTeaspoon () |
Returns by value, unit of volume: teaspoon. | |
Protected Member Functions | |
void | initTime (const char *timeId) |
For ICU use only. | |
void | initCurrency (StringPiece isoCurrency) |
For ICU use only. | |
Friends | |
class | MeasureUnitImpl |
class | number::impl::LongNameHandler |
A unit such as length, mass, volume, currency, etc.
A unit is coupled with a numeric amount to produce a Measure.
Definition at line 409 of file measunit.h.
icu::MeasureUnit::MeasureUnit | ( | ) |
Default constructor.
Populates the instance with the base dimensionless unit, which means that there will be no unit on the formatted number.
Referenced by clone(), createAcre(), createAcreFoot(), createAmpere(), createArcMinute(), createArcSecond(), createAstronomicalUnit(), createAtmosphere(), createBar(), createBarrel(), createBeaufort(), createBit(), createBritishThermalUnit(), createBushel(), createByte(), createCalorie(), createCandela(), createCarat(), createCelsius(), createCentiliter(), createCentimeter(), createCentury(), createCubicCentimeter(), createCubicFoot(), createCubicInch(), createCubicKilometer(), createCubicMeter(), createCubicMile(), createCubicYard(), createCup(), createCupMetric(), createDalton(), createDay(), createDayPerson(), createDecade(), createDeciliter(), createDecimeter(), createDegree(), createDessertSpoon(), createDessertSpoonImperial(), createDot(), createDotPerCentimeter(), createDotPerInch(), createDram(), createDrop(), createDunam(), createEarthMass(), createEarthRadius(), createElectronvolt(), createEm(), createFahrenheit(), createFathom(), createFluidOunce(), createFluidOunceImperial(), createFoodcalorie(), createFoot(), createFurlong(), createGallon(), createGallonImperial(), createGasolineEnergyDensity(), createGenericTemperature(), createGForce(), createGigabit(), createGigabyte(), createGigahertz(), createGigawatt(), createGrain(), createGram(), createHectare(), createHectoliter(), createHectopascal(), createHertz(), createHorsepower(), createHour(), createInch(), createInchHg(), createItem(), createJigger(), createJoule(), createKarat(), createKelvin(), createKilobit(), createKilobyte(), createKilocalorie(), createKilogram(), createKilohertz(), createKilojoule(), createKilometer(), createKilometerPerHour(), createKilopascal(), createKilowatt(), createKilowattHour(), createKilowattHourPer100Kilometer(), createKnot(), createLightSpeed(), createLightYear(), createLiter(), createLiterPer100Kilometers(), createLiterPerKilometer(), createLumen(), createLux(), createMegabit(), createMegabyte(), createMegahertz(), createMegaliter(), createMegapascal(), createMegapixel(), createMegawatt(), createMeter(), createMeterPerSecond(), createMeterPerSecondSquared(), createMetricTon(), createMicrogram(), createMicrometer(), createMicrosecond(), createMile(), createMilePerGallon(), createMilePerGallonImperial(), createMilePerHour(), createMileScandinavian(), createMilliampere(), createMillibar(), createMilligram(), createMilligramOfglucosePerDeciliter(), createMilligramPerDeciliter(), createMilliliter(), createMillimeter(), createMillimeterOfMercury(), createMillimolePerLiter(), createMillisecond(), createMilliwatt(), createMinute(), createMole(), createMonth(), createMonthPerson(), createNanometer(), createNanosecond(), createNauticalMile(), createNewton(), createNewtonMeter(), createNight(), createOhm(), createOunce(), createOunceTroy(), createParsec(), createPartPerMillion(), createPascal(), createPercent(), createPermille(), createPermyriad(), createPetabyte(), createPicometer(), createPinch(), createPint(), createPintMetric(), createPixel(), createPixelPerCentimeter(), createPixelPerInch(), createPoint(), createPound(), createPoundFoot(), createPoundForce(), createPoundPerSquareInch(), createQuart(), createQuarter(), createQuartImperial(), createRadian(), createRevolutionAngle(), createSecond(), createSolarLuminosity(), createSolarMass(), createSolarRadius(), createSquareCentimeter(), createSquareFoot(), createSquareInch(), createSquareKilometer(), createSquareMeter(), createSquareMile(), createSquareYard(), createStone(), createTablespoon(), createTeaspoon(), createTerabit(), createTerabyte(), createThermUs(), createTon(), createTonne(), createVolt(), createWatt(), createWeek(), createWeekPerson(), createYard(), createYear(), createYearPerson(), icu::CurrencyUnit::CurrencyUnit(), forIdentifier(), getAcre(), getAcreFoot(), getAmpere(), getArcMinute(), getArcSecond(), getAstronomicalUnit(), getAtmosphere(), getAvailable(), getAvailable(), getBar(), getBarrel(), getBeaufort(), getBit(), getBritishThermalUnit(), getBushel(), getByte(), getCalorie(), getCandela(), getCarat(), getCelsius(), getCentiliter(), getCentimeter(), getCentury(), getCubicCentimeter(), getCubicFoot(), getCubicInch(), getCubicKilometer(), getCubicMeter(), getCubicMile(), getCubicYard(), getCup(), getCupMetric(), getDalton(), getDay(), getDayPerson(), getDecade(), getDeciliter(), getDecimeter(), getDegree(), getDessertSpoon(), getDessertSpoonImperial(), getDot(), getDotPerCentimeter(), getDotPerInch(), getDram(), getDrop(), getDunam(), getEarthMass(), getEarthRadius(), getElectronvolt(), getEm(), getFahrenheit(), getFathom(), getFluidOunce(), getFluidOunceImperial(), getFoodcalorie(), getFoot(), getFurlong(), getGallon(), getGallonImperial(), getGasolineEnergyDensity(), getGenericTemperature(), getGForce(), getGigabit(), getGigabyte(), getGigahertz(), getGigawatt(), getGrain(), getGram(), getHectare(), getHectoliter(), getHectopascal(), getHertz(), getHorsepower(), getHour(), getInch(), getInchHg(), getItem(), getJigger(), getJoule(), getKarat(), getKelvin(), getKilobit(), getKilobyte(), getKilocalorie(), getKilogram(), getKilohertz(), getKilojoule(), getKilometer(), getKilometerPerHour(), getKilopascal(), getKilowatt(), getKilowattHour(), getKilowattHourPer100Kilometer(), getKnot(), getLightSpeed(), getLightYear(), getLiter(), getLiterPer100Kilometers(), getLiterPerKilometer(), getLumen(), getLux(), getMegabit(), getMegabyte(), getMegahertz(), getMegaliter(), getMegapascal(), getMegapixel(), getMegawatt(), getMeter(), getMeterPerSecond(), getMeterPerSecondSquared(), getMetricTon(), getMicrogram(), getMicrometer(), getMicrosecond(), getMile(), getMilePerGallon(), getMilePerGallonImperial(), getMilePerHour(), getMileScandinavian(), getMilliampere(), getMillibar(), getMilligram(), getMilligramOfglucosePerDeciliter(), getMilligramPerDeciliter(), getMilliliter(), getMillimeter(), getMillimeterOfMercury(), getMillimolePerLiter(), getMillisecond(), getMilliwatt(), getMinute(), getMole(), getMonth(), getMonthPerson(), getNanometer(), getNanosecond(), getNauticalMile(), getNewton(), getNewtonMeter(), getNight(), getOhm(), getOunce(), getOunceTroy(), getParsec(), getPartPerMillion(), getPascal(), getPercent(), getPermille(), getPermyriad(), getPetabyte(), getPicometer(), getPinch(), getPint(), getPintMetric(), getPixel(), getPixelPerCentimeter(), getPixelPerInch(), getPoint(), getPound(), getPoundFoot(), getPoundForce(), getPoundPerSquareInch(), getQuart(), getQuarter(), getQuartImperial(), getRadian(), getRevolutionAngle(), getSecond(), getSolarLuminosity(), getSolarMass(), getSolarRadius(), getSquareCentimeter(), getSquareFoot(), getSquareInch(), getSquareKilometer(), getSquareMeter(), getSquareMile(), getSquareYard(), getStone(), getTablespoon(), getTeaspoon(), getTerabit(), getTerabyte(), getThermUs(), getTon(), getTonne(), getVolt(), getWatt(), getWeek(), getWeekPerson(), getYard(), getYear(), getYearPerson(), initCurrency(), MeasureUnit(), MeasureUnit(), operator=(), operator=(), product(), reciprocal(), withDimensionality(), and withPrefix().
icu::MeasureUnit::MeasureUnit | ( | const MeasureUnit & | other | ) |
|
noexcept |
|
virtual |
Destructor.
|
virtual |
Returns a polymorphic clone of this object.
The result will have the same class as returned by getDynamicClassID().
Reimplemented in icu::CurrencyUnit, and icu::TimeUnit.
References MeasureUnit().
|
static |
Returns by pointer, unit of area: acre.
Caller owns returned value and must free it. Also see getAcre()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: acre-foot.
Caller owns returned value and must free it. Also see getAcreFoot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of electric: ampere.
Caller owns returned value and must free it. Also see getAmpere()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of angle: arc-minute.
Caller owns returned value and must free it. Also see getArcMinute()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of angle: arc-second.
Caller owns returned value and must free it. Also see getArcSecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: astronomical-unit.
Caller owns returned value and must free it. Also see getAstronomicalUnit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: atmosphere.
Caller owns returned value and must free it. Also see getAtmosphere()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: bar.
Caller owns returned value and must free it. Also see getBar()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: barrel.
Caller owns returned value and must free it. Also see getBarrel()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: beaufort.
Caller owns returned value and must free it. Also see getBeaufort()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: bit.
Caller owns returned value and must free it. Also see getBit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: british-thermal-unit.
Caller owns returned value and must free it. Also see getBritishThermalUnit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: bushel.
Caller owns returned value and must free it. Also see getBushel()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: byte.
Caller owns returned value and must free it. Also see getByte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: calorie.
Caller owns returned value and must free it. Also see getCalorie()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of light: candela.
Caller owns returned value and must free it. Also see getCandela()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: carat.
Caller owns returned value and must free it. Also see getCarat()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of temperature: celsius.
Caller owns returned value and must free it. Also see getCelsius()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: centiliter.
Caller owns returned value and must free it. Also see getCentiliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: centimeter.
Caller owns returned value and must free it. Also see getCentimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: century.
Caller owns returned value and must free it. Also see getCentury()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-centimeter.
Caller owns returned value and must free it. Also see getCubicCentimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-foot.
Caller owns returned value and must free it. Also see getCubicFoot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-inch.
Caller owns returned value and must free it. Also see getCubicInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-kilometer.
Caller owns returned value and must free it. Also see getCubicKilometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-meter.
Caller owns returned value and must free it. Also see getCubicMeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-mile.
Caller owns returned value and must free it. Also see getCubicMile()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cubic-yard.
Caller owns returned value and must free it. Also see getCubicYard()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cup.
Caller owns returned value and must free it. Also see getCup()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: cup-metric.
Caller owns returned value and must free it. Also see getCupMetric()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: dalton.
Caller owns returned value and must free it. Also see getDalton()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: day.
Caller owns returned value and must free it. Also see getDay()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: day-person.
Caller owns returned value and must free it. Also see getDayPerson()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: decade.
Caller owns returned value and must free it. Also see getDecade()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: deciliter.
Caller owns returned value and must free it. Also see getDeciliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: decimeter.
Caller owns returned value and must free it. Also see getDecimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of angle: degree.
Caller owns returned value and must free it. Also see getDegree()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: dessert-spoon.
Caller owns returned value and must free it. Also see getDessertSpoon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: dessert-spoon-imperial.
Caller owns returned value and must free it. Also see getDessertSpoonImperial()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: dot.
Caller owns returned value and must free it. Also see getDot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: dot-per-centimeter.
Caller owns returned value and must free it. Also see getDotPerCentimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: dot-per-inch.
Caller owns returned value and must free it. Also see getDotPerInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: dram.
Caller owns returned value and must free it. Also see getDram()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: drop.
Caller owns returned value and must free it. Also see getDrop()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: dunam.
Caller owns returned value and must free it. Also see getDunam()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: earth-mass.
Caller owns returned value and must free it. Also see getEarthMass()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: earth-radius.
Caller owns returned value and must free it. Also see getEarthRadius()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: electronvolt.
Caller owns returned value and must free it. Also see getElectronvolt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: em.
Caller owns returned value and must free it. Also see getEm()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of temperature: fahrenheit.
Caller owns returned value and must free it. Also see getFahrenheit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: fathom.
Caller owns returned value and must free it. Also see getFathom()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: fluid-ounce.
Caller owns returned value and must free it. Also see getFluidOunce()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: fluid-ounce-imperial.
Caller owns returned value and must free it. Also see getFluidOunceImperial()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: foodcalorie.
Caller owns returned value and must free it. Also see getFoodcalorie()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: foot.
Caller owns returned value and must free it. Also see getFoot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: furlong.
Caller owns returned value and must free it. Also see getFurlong()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: gallon.
Caller owns returned value and must free it. Also see getGallon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: gallon-imperial.
Caller owns returned value and must free it. Also see getGallonImperial()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: gasoline-energy-density.
Caller owns returned value and must free it. Also see getGasolineEnergyDensity()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of temperature: generic.
Caller owns returned value and must free it. Also see getGenericTemperature()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of acceleration: g-force.
Caller owns returned value and must free it. Also see getGForce()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: gigabit.
Caller owns returned value and must free it. Also see getGigabit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: gigabyte.
Caller owns returned value and must free it. Also see getGigabyte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of frequency: gigahertz.
Caller owns returned value and must free it. Also see getGigahertz()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: gigawatt.
Caller owns returned value and must free it. Also see getGigawatt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: grain.
Caller owns returned value and must free it. Also see getGrain()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: gram.
Caller owns returned value and must free it. Also see getGram()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: hectare.
Caller owns returned value and must free it. Also see getHectare()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: hectoliter.
Caller owns returned value and must free it. Also see getHectoliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: hectopascal.
Caller owns returned value and must free it. Also see getHectopascal()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of frequency: hertz.
Caller owns returned value and must free it. Also see getHertz()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: horsepower.
Caller owns returned value and must free it. Also see getHorsepower()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: hour.
Caller owns returned value and must free it. Also see getHour()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: inch.
Caller owns returned value and must free it. Also see getInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: inch-ofhg.
Caller owns returned value and must free it. Also see getInchHg()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: item.
Caller owns returned value and must free it. Also see getItem()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: jigger.
Caller owns returned value and must free it. Also see getJigger()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: joule.
Caller owns returned value and must free it. Also see getJoule()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: karat.
Caller owns returned value and must free it. Also see getKarat()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of temperature: kelvin.
Caller owns returned value and must free it. Also see getKelvin()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: kilobit.
Caller owns returned value and must free it. Also see getKilobit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: kilobyte.
Caller owns returned value and must free it. Also see getKilobyte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: kilocalorie.
Caller owns returned value and must free it. Also see getKilocalorie()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: kilogram.
Caller owns returned value and must free it. Also see getKilogram()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of frequency: kilohertz.
Caller owns returned value and must free it. Also see getKilohertz()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: kilojoule.
Caller owns returned value and must free it. Also see getKilojoule()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: kilometer.
Caller owns returned value and must free it. Also see getKilometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: kilometer-per-hour.
Caller owns returned value and must free it. Also see getKilometerPerHour()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: kilopascal.
Caller owns returned value and must free it. Also see getKilopascal()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: kilowatt.
Caller owns returned value and must free it. Also see getKilowatt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: kilowatt-hour.
Caller owns returned value and must free it. Also see getKilowattHour()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.
Caller owns returned value and must free it. Also see getKilowattHourPer100Kilometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: knot.
Caller owns returned value and must free it. Also see getKnot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: light-speed.
Caller owns returned value and must free it. Also see getLightSpeed()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: light-year.
Caller owns returned value and must free it. Also see getLightYear()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: liter.
Caller owns returned value and must free it. Also see getLiter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of consumption: liter-per-100-kilometer.
Caller owns returned value and must free it. Also see getLiterPer100Kilometers()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of consumption: liter-per-kilometer.
Caller owns returned value and must free it. Also see getLiterPerKilometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of light: lumen.
Caller owns returned value and must free it. Also see getLumen()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of light: lux.
Caller owns returned value and must free it. Also see getLux()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: megabit.
Caller owns returned value and must free it. Also see getMegabit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: megabyte.
Caller owns returned value and must free it. Also see getMegabyte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of frequency: megahertz.
Caller owns returned value and must free it. Also see getMegahertz()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: megaliter.
Caller owns returned value and must free it. Also see getMegaliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: megapascal.
Caller owns returned value and must free it. Also see getMegapascal()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: megapixel.
Caller owns returned value and must free it. Also see getMegapixel()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: megawatt.
Caller owns returned value and must free it. Also see getMegawatt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: meter.
Caller owns returned value and must free it. Also see getMeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: meter-per-second.
Caller owns returned value and must free it. Also see getMeterPerSecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of acceleration: meter-per-square-second.
Caller owns returned value and must free it. Also see getMeterPerSecondSquared()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
Caller owns returned value and must free it. Note: In ICU 74 this will be deprecated in favor of createTonne(), which is currently draft but will become stable in ICU 74, and which uses the preferred naming. Also see getMetricTon()
and createTonne()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: microgram.
Caller owns returned value and must free it. Also see getMicrogram()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: micrometer.
Caller owns returned value and must free it. Also see getMicrometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: microsecond.
Caller owns returned value and must free it. Also see getMicrosecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: mile.
Caller owns returned value and must free it. Also see getMile()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of consumption: mile-per-gallon.
Caller owns returned value and must free it. Also see getMilePerGallon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of consumption: mile-per-gallon-imperial.
Caller owns returned value and must free it. Also see getMilePerGallonImperial()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of speed: mile-per-hour.
Caller owns returned value and must free it. Also see getMilePerHour()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: mile-scandinavian.
Caller owns returned value and must free it. Also see getMileScandinavian()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of electric: milliampere.
Caller owns returned value and must free it. Also see getMilliampere()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: millibar.
Caller owns returned value and must free it. Also see getMillibar()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: milligram.
Caller owns returned value and must free it. Also see getMilligram()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.
Caller owns returned value and must free it. Also see getMilligramOfglucosePerDeciliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: milligram-per-deciliter.
Caller owns returned value and must free it. Also see getMilligramPerDeciliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: milliliter.
Caller owns returned value and must free it. Also see getMilliliter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: millimeter.
Caller owns returned value and must free it. Also see getMillimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: millimeter-ofhg.
Caller owns returned value and must free it. Also see getMillimeterOfMercury()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: millimole-per-liter.
Caller owns returned value and must free it. Also see getMillimolePerLiter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: millisecond.
Caller owns returned value and must free it. Also see getMillisecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: milliwatt.
Caller owns returned value and must free it. Also see getMilliwatt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: minute.
Caller owns returned value and must free it. Also see getMinute()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: mole.
Caller owns returned value and must free it. Also see getMole()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: month.
Caller owns returned value and must free it. Also see getMonth()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: month-person.
Caller owns returned value and must free it. Also see getMonthPerson()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: nanometer.
Caller owns returned value and must free it. Also see getNanometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: nanosecond.
Caller owns returned value and must free it. Also see getNanosecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: nautical-mile.
Caller owns returned value and must free it. Also see getNauticalMile()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of force: newton.
Caller owns returned value and must free it. Also see getNewton()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of torque: newton-meter.
Caller owns returned value and must free it. Also see getNewtonMeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: night.
Caller owns returned value and must free it. Also see getNight()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of electric: ohm.
Caller owns returned value and must free it. Also see getOhm()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: ounce.
Caller owns returned value and must free it. Also see getOunce()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: ounce-troy.
Caller owns returned value and must free it. Also see getOunceTroy()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: parsec.
Caller owns returned value and must free it. Also see getParsec()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: permillion.
Caller owns returned value and must free it. Also see getPartPerMillion()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: pascal.
Caller owns returned value and must free it. Also see getPascal()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: percent.
Caller owns returned value and must free it. Also see getPercent()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: permille.
Caller owns returned value and must free it. Also see getPermille()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of concentr: permyriad.
Caller owns returned value and must free it. Also see getPermyriad()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: petabyte.
Caller owns returned value and must free it. Also see getPetabyte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: picometer.
Caller owns returned value and must free it. Also see getPicometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: pinch.
Caller owns returned value and must free it. Also see getPinch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: pint.
Caller owns returned value and must free it. Also see getPint()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: pint-metric.
Caller owns returned value and must free it. Also see getPintMetric()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: pixel.
Caller owns returned value and must free it. Also see getPixel()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: pixel-per-centimeter.
Caller owns returned value and must free it. Also see getPixelPerCentimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of graphics: pixel-per-inch.
Caller owns returned value and must free it. Also see getPixelPerInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: point.
Caller owns returned value and must free it. Also see getPoint()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: pound.
Caller owns returned value and must free it. Also see getPound()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of torque: pound-force-foot.
Caller owns returned value and must free it. Also see getPoundFoot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of force: pound-force.
Caller owns returned value and must free it. Also see getPoundForce()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of pressure: pound-force-per-square-inch.
Caller owns returned value and must free it. Also see getPoundPerSquareInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: quart.
Caller owns returned value and must free it. Also see getQuart()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: quarter.
Caller owns returned value and must free it. Also see getQuarter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: quart-imperial.
Caller owns returned value and must free it. Also see getQuartImperial()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of angle: radian.
Caller owns returned value and must free it. Also see getRadian()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of angle: revolution.
Caller owns returned value and must free it. Also see getRevolutionAngle()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: second.
Caller owns returned value and must free it. Also see getSecond()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of light: solar-luminosity.
Caller owns returned value and must free it. Also see getSolarLuminosity()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: solar-mass.
Caller owns returned value and must free it. Also see getSolarMass()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: solar-radius.
Caller owns returned value and must free it. Also see getSolarRadius()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-centimeter.
Caller owns returned value and must free it. Also see getSquareCentimeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-foot.
Caller owns returned value and must free it. Also see getSquareFoot()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-inch.
Caller owns returned value and must free it. Also see getSquareInch()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-kilometer.
Caller owns returned value and must free it. Also see getSquareKilometer()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-meter.
Caller owns returned value and must free it. Also see getSquareMeter()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-mile.
Caller owns returned value and must free it. Also see getSquareMile()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of area: square-yard.
Caller owns returned value and must free it. Also see getSquareYard()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: stone.
Caller owns returned value and must free it. Also see getStone()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: tablespoon.
Caller owns returned value and must free it. Also see getTablespoon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of volume: teaspoon.
Caller owns returned value and must free it. Also see getTeaspoon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: terabit.
Caller owns returned value and must free it. Also see getTerabit()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of digital: terabyte.
Caller owns returned value and must free it. Also see getTerabyte()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of energy: therm-us.
Caller owns returned value and must free it. Also see getThermUs()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: ton.
Caller owns returned value and must free it. Also see getTon()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of mass: tonne.
Caller owns returned value and must free it. Also see getTonne()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of electric: volt.
Caller owns returned value and must free it. Also see getVolt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of power: watt.
Caller owns returned value and must free it. Also see getWatt()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: week.
Caller owns returned value and must free it. Also see getWeek()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: week-person.
Caller owns returned value and must free it. Also see getWeekPerson()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of length: yard.
Caller owns returned value and must free it. Also see getYard()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: year.
Caller owns returned value and must free it. Also see getYear()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Returns by pointer, unit of duration: year-person.
Caller owns returned value and must free it. Also see getYearPerson()
.
status | ICU error code. |
References MeasureUnit().
|
static |
Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS.
MeasureUnit example = MeasureUnit::forIdentifier("furlong-per-nanosecond")
identifier | The CLDR Unit Identifier. |
status | Set if the identifier is invalid. |
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of volume: acre-foot.
Also see createAcreFoot()
.
References MeasureUnit().
|
static |
Returns by value, unit of electric: ampere.
Also see createAmpere()
.
References MeasureUnit().
|
static |
Returns by value, unit of angle: arc-minute.
Also see createArcMinute()
.
References MeasureUnit().
|
static |
Returns by value, unit of angle: arc-second.
Also see createArcSecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: astronomical-unit.
Also see createAstronomicalUnit()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: atmosphere.
Also see createAtmosphere()
.
References MeasureUnit().
|
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.
type | the type |
destArray | destination buffer. |
destCapacity | number of MeasureUnit instances available at dest. |
errorCode | ICU error code. |
References MeasureUnit().
|
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.
destArray | destination buffer. |
destCapacity | number of MeasureUnit instances available at dest. |
errorCode | ICU error code. |
References MeasureUnit().
|
static |
getAvailableTypes gets all of the available types.
Caller owns the returned StringEnumeration and must delete it when finished using it.
errorCode | ICU error code. |
|
static |
Returns by value, unit of pressure: bar.
Also see createBar()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: barrel.
Also see createBarrel()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: beaufort.
Also see createBeaufort()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: bit.
Also see createBit()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: british-thermal-unit.
Also see createBritishThermalUnit()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: bushel.
Also see createBushel()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: byte.
Also see createByte()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: calorie.
Also see createCalorie()
.
References MeasureUnit().
|
static |
Returns by value, unit of light: candela.
Also see createCandela()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: carat.
Also see createCarat()
.
References MeasureUnit().
|
static |
Returns by value, unit of temperature: celsius.
Also see createCelsius()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: centiliter.
Also see createCentiliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: centimeter.
Also see createCentimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: century.
Also see createCentury()
.
References MeasureUnit().
UMeasureUnitComplexity icu::MeasureUnit::getComplexity | ( | UErrorCode & | status | ) | const |
Compute the complexity of the unit.
See UMeasureUnitComplexity for more information.
status | Set if an error occurs. |
|
static |
Returns by value, unit of volume: cubic-centimeter.
Also see createCubicCentimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-foot.
Also see createCubicFoot()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-inch.
Also see createCubicInch()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-kilometer.
Also see createCubicKilometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-meter.
Also see createCubicMeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-mile.
Also see createCubicMile()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: cubic-yard.
Also see createCubicYard()
.
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of volume: cup-metric.
Also see createCupMetric()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: dalton.
Also see createDalton()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: day.
Also see createDay()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: day-person.
Also see createDayPerson()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: decade.
Also see createDecade()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: deciliter.
Also see createDeciliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: decimeter.
Also see createDecimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of angle: degree.
Also see createDegree()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: dessert-spoon.
Also see createDessertSpoon()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: dessert-spoon-imperial.
Also see createDessertSpoonImperial()
.
References MeasureUnit().
int32_t icu::MeasureUnit::getDimensionality | ( | UErrorCode & | status | ) | const |
Gets the dimensionality (power) of this MeasureUnit.
For example, if the unit is square, then 2 is returned.
NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
For the base dimensionless unit, getDimensionality returns 0.
status | Set if this is not a SINGLE unit or if another error occurs. |
|
static |
Returns by value, unit of graphics: dot.
Also see createDot()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: dot-per-centimeter.
Also see createDotPerCentimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: dot-per-inch.
Also see createDotPerInch()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: dram.
Also see createDram()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: drop.
Also see createDrop()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: dunam.
Also see createDunam()
.
References MeasureUnit().
|
overridevirtual |
Returns a unique class ID POLYMORPHICALLY.
Pure virtual override. This method is to implement a simple version of RTTI, since not all C++ compilers support genuine RTTI. Polymorphic operator==() and clone() methods call this method.
Reimplemented from icu::UObject.
Reimplemented in icu::CurrencyUnit, and icu::TimeUnit.
|
static |
Returns by value, unit of mass: earth-mass.
Also see createEarthMass()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: earth-radius.
Also see createEarthRadius()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: electronvolt.
Also see createElectronvolt()
.
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of temperature: fahrenheit.
Also see createFahrenheit()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: fathom.
Also see createFathom()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: fluid-ounce.
Also see createFluidOunce()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: fluid-ounce-imperial.
Also see createFluidOunceImperial()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: foodcalorie.
Also see createFoodcalorie()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: foot.
Also see createFoot()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: furlong.
Also see createFurlong()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: gallon.
Also see createGallon()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: gallon-imperial.
Also see createGallonImperial()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: gasoline-energy-density.
Also see createGasolineEnergyDensity()
.
References MeasureUnit().
|
static |
Returns by value, unit of temperature: generic.
Also see createGenericTemperature()
.
References MeasureUnit().
|
static |
Returns by value, unit of acceleration: g-force.
Also see createGForce()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: gigabit.
Also see createGigabit()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: gigabyte.
Also see createGigabyte()
.
References MeasureUnit().
|
static |
Returns by value, unit of frequency: gigahertz.
Also see createGigahertz()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: gigawatt.
Also see createGigawatt()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: grain.
Also see createGrain()
.
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of area: hectare.
Also see createHectare()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: hectoliter.
Also see createHectoliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: hectopascal.
Also see createHectopascal()
.
References MeasureUnit().
|
static |
Returns by value, unit of frequency: hertz.
Also see createHertz()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: horsepower.
Also see createHorsepower()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: hour.
Also see createHour()
.
References MeasureUnit().
const char * icu::MeasureUnit::getIdentifier | ( | ) | const |
Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.
|
static |
Returns by value, unit of length: inch.
Also see createInch()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: inch-ofhg.
Also see createInchHg()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: item.
Also see createItem()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: jigger.
Also see createJigger()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: joule.
Also see createJoule()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: karat.
Also see createKarat()
.
References MeasureUnit().
|
static |
Returns by value, unit of temperature: kelvin.
Also see createKelvin()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: kilobit.
Also see createKilobit()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: kilobyte.
Also see createKilobyte()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: kilocalorie.
Also see createKilocalorie()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: kilogram.
Also see createKilogram()
.
References MeasureUnit().
|
static |
Returns by value, unit of frequency: kilohertz.
Also see createKilohertz()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: kilojoule.
Also see createKilojoule()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: kilometer.
Also see createKilometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: kilometer-per-hour.
Also see createKilometerPerHour()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: kilopascal.
Also see createKilopascal()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: kilowatt.
Also see createKilowatt()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: kilowatt-hour.
Also see createKilowattHour()
.
References MeasureUnit().
|
static |
Returns by value, unit of force: kilowatt-hour-per-100-kilometer.
Also see createKilowattHourPer100Kilometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: knot.
Also see createKnot()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: light-speed.
Also see createLightSpeed()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: light-year.
Also see createLightYear()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: liter.
Also see createLiter()
.
References MeasureUnit().
|
static |
Returns by value, unit of consumption: liter-per-100-kilometer.
Also see createLiterPer100Kilometers()
.
References MeasureUnit().
|
static |
Returns by value, unit of consumption: liter-per-kilometer.
Also see createLiterPerKilometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of light: lumen.
Also see createLumen()
.
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of digital: megabit.
Also see createMegabit()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: megabyte.
Also see createMegabyte()
.
References MeasureUnit().
|
static |
Returns by value, unit of frequency: megahertz.
Also see createMegahertz()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: megaliter.
Also see createMegaliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: megapascal.
Also see createMegapascal()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: megapixel.
Also see createMegapixel()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: megawatt.
Also see createMegawatt()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: meter.
Also see createMeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: meter-per-second.
Also see createMeterPerSecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of acceleration: meter-per-square-second.
Also see createMeterPerSecondSquared()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
Note: In ICU 74 this will be deprecated in favor of getTonne(), which is currently draft but will become stable in ICU 74, and which uses the preferred naming. Also see createMetricTon()
and getTonne()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: microgram.
Also see createMicrogram()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: micrometer.
Also see createMicrometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: microsecond.
Also see createMicrosecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: mile.
Also see createMile()
.
References MeasureUnit().
|
static |
Returns by value, unit of consumption: mile-per-gallon.
Also see createMilePerGallon()
.
References MeasureUnit().
|
static |
Returns by value, unit of consumption: mile-per-gallon-imperial.
Also see createMilePerGallonImperial()
.
References MeasureUnit().
|
static |
Returns by value, unit of speed: mile-per-hour.
Also see createMilePerHour()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: mile-scandinavian.
Also see createMileScandinavian()
.
References MeasureUnit().
|
static |
Returns by value, unit of electric: milliampere.
Also see createMilliampere()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: millibar.
Also see createMillibar()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: milligram.
Also see createMilligram()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.
Also see createMilligramOfglucosePerDeciliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: milligram-per-deciliter.
Also see createMilligramPerDeciliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: milliliter.
Also see createMilliliter()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: millimeter.
Also see createMillimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: millimeter-ofhg.
Also see createMillimeterOfMercury()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: millimole-per-liter.
Also see createMillimolePerLiter()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: millisecond.
Also see createMillisecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: milliwatt.
Also see createMilliwatt()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: minute.
Also see createMinute()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: mole.
Also see createMole()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: month.
Also see createMonth()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: month-person.
Also see createMonthPerson()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: nanometer.
Also see createNanometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: nanosecond.
Also see createNanosecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: nautical-mile.
Also see createNauticalMile()
.
References MeasureUnit().
|
static |
Returns by value, unit of force: newton.
Also see createNewton()
.
References MeasureUnit().
|
static |
Returns by value, unit of torque: newton-meter.
Also see createNewtonMeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: night.
Also see createNight()
.
References MeasureUnit().
int32_t icu::MeasureUnit::getOffset | ( | ) | const |
ICU use only.
Returns associated array index for this measure unit.
|
static |
Returns by value, unit of electric: ohm.
Also see createOhm()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: ounce.
Also see createOunce()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: ounce-troy.
Also see createOunceTroy()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: parsec.
Also see createParsec()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: permillion.
Also see createPartPerMillion()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: pascal.
Also see createPascal()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: percent.
Also see createPercent()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: permille.
Also see createPermille()
.
References MeasureUnit().
|
static |
Returns by value, unit of concentr: permyriad.
Also see createPermyriad()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: petabyte.
Also see createPetabyte()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: picometer.
Also see createPicometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: pinch.
Also see createPinch()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: pint.
Also see createPint()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: pint-metric.
Also see createPintMetric()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: pixel.
Also see createPixel()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: pixel-per-centimeter.
Also see createPixelPerCentimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of graphics: pixel-per-inch.
Also see createPixelPerInch()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: point.
Also see createPoint()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: pound.
Also see createPound()
.
References MeasureUnit().
|
static |
Returns by value, unit of torque: pound-force-foot.
Also see createPoundFoot()
.
References MeasureUnit().
|
static |
Returns by value, unit of force: pound-force.
Also see createPoundForce()
.
References MeasureUnit().
|
static |
Returns by value, unit of pressure: pound-force-per-square-inch.
Also see createPoundPerSquareInch()
.
References MeasureUnit().
UMeasurePrefix icu::MeasureUnit::getPrefix | ( | UErrorCode & | status | ) | const |
Returns the current SI or binary prefix of this SINGLE unit.
For example, if the unit has the prefix "kilo", then UMEASURE_PREFIX_KILO is returned.
NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
status | Set if this is not a SINGLE unit or if another error occurs. |
|
static |
Returns by value, unit of volume: quart.
Also see createQuart()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: quarter.
Also see createQuarter()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: quart-imperial.
Also see createQuartImperial()
.
References MeasureUnit().
|
static |
Returns by value, unit of angle: radian.
Also see createRadian()
.
References MeasureUnit().
|
static |
Returns by value, unit of angle: revolution.
Also see createRevolutionAngle()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: second.
Also see createSecond()
.
References MeasureUnit().
|
static |
Returns by value, unit of light: solar-luminosity.
Also see createSolarLuminosity()
.
References MeasureUnit().
|
static |
Returns by value, unit of mass: solar-mass.
Also see createSolarMass()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: solar-radius.
Also see createSolarRadius()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-centimeter.
Also see createSquareCentimeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-foot.
Also see createSquareFoot()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-inch.
Also see createSquareInch()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-kilometer.
Also see createSquareKilometer()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-meter.
Also see createSquareMeter()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-mile.
Also see createSquareMile()
.
References MeasureUnit().
|
static |
Returns by value, unit of area: square-yard.
Also see createSquareYard()
.
References MeasureUnit().
|
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()) ...
|
static |
Returns by value, unit of mass: stone.
Also see createStone()
.
References MeasureUnit().
const char * icu::MeasureUnit::getSubtype | ( | ) | const |
|
static |
Returns by value, unit of volume: tablespoon.
Also see createTablespoon()
.
References MeasureUnit().
|
static |
Returns by value, unit of volume: teaspoon.
Also see createTeaspoon()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: terabit.
Also see createTerabit()
.
References MeasureUnit().
|
static |
Returns by value, unit of digital: terabyte.
Also see createTerabyte()
.
References MeasureUnit().
|
static |
Returns by value, unit of energy: therm-us.
Also see createThermUs()
.
References MeasureUnit().
|
static |
|
static |
Returns by value, unit of mass: tonne.
Also see createTonne()
.
References MeasureUnit().
const char * icu::MeasureUnit::getType | ( | ) | const |
|
static |
Returns by value, unit of electric: volt.
Also see createVolt()
.
References MeasureUnit().
|
static |
Returns by value, unit of power: watt.
Also see createWatt()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: week.
Also see createWeek()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: week-person.
Also see createWeekPerson()
.
References MeasureUnit().
|
static |
Returns by value, unit of length: yard.
Also see createYard()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: year.
Also see createYear()
.
References MeasureUnit().
|
static |
Returns by value, unit of duration: year-person.
Also see createYearPerson()
.
References MeasureUnit().
|
protected |
|
protected |
For ICU use only.
|
inline |
Inequality operator.
Return true if this object is not equal to the given object.
Definition at line 484 of file measunit.h.
MeasureUnit & icu::MeasureUnit::operator= | ( | const MeasureUnit & | other | ) |
|
noexcept |
|
virtual |
MeasureUnit icu::MeasureUnit::product | ( | const MeasureUnit & | other, |
UErrorCode & | status ) const |
Gets the product of this unit with another unit.
This is a way to build units from constituent parts.
The numerator and denominator are preserved through this operation.
For example, if the receiver is "kilowatt" and the argument is "hour-per-day", then the unit "kilowatt-hour-per-day" is returned.
NOTE: Only works on SINGLE and COMPOUND units. If either unit (receiver and argument) is a MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
other | The MeasureUnit to multiply with the target. |
status | Set if this or other is a MIXED unit or if another error occurs. |
References MeasureUnit(), and splitToSingleUnits().
MeasureUnit icu::MeasureUnit::reciprocal | ( | UErrorCode & | status | ) | const |
Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped.
For example, if the receiver is "meter-per-second", the unit "second-per-meter" is returned.
NOTE: Only works on SINGLE and COMPOUND units. If this is a MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
status | Set if this is a MIXED unit or if another error occurs. |
References MeasureUnit().
|
inline |
Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.
Examples:
If this is a SINGLE unit, an array of length 1 will be returned.
status | Set if an error occurs. |
Definition at line 3880 of file measunit.h.
References splitToSingleUnits().
Referenced by product(), and splitToSingleUnits().
MeasureUnit icu::MeasureUnit::withDimensionality | ( | int32_t | dimensionality, |
UErrorCode & | status ) const |
Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).
For example, if dimensionality is 2, the unit will be squared.
NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
For the base dimensionless unit, withDimensionality does nothing.
dimensionality | The dimensionality (power). |
status | Set if this is not a SINGLE unit or if another error occurs. |
References MeasureUnit().
MeasureUnit icu::MeasureUnit::withPrefix | ( | UMeasurePrefix | prefix, |
UErrorCode & | status ) const |
Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.
For example, UMEASURE_PREFIX_KILO for "kilo", or UMEASURE_PREFIX_KIBI for "kibi".
There is sufficient locale data to format all standard prefixes.
NOTE: Only works on SINGLE units. If this is a COMPOUND or MIXED unit, an error will occur. For more information, see UMeasureUnitComplexity.
prefix | The prefix, from UMeasurePrefix. |
status | Set if this is not a SINGLE unit or if another error occurs. |
References MeasureUnit().
|
friend |
Definition at line 3872 of file measunit.h.
|
friend |
Definition at line 3875 of file measunit.h.