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