ICU 54.1  54.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Static Public Member Functions | Protected Member Functions
icu::MeasureUnit Class Reference

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

#include <measunit.h>

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

Public Member Functions

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

Static Public Member Functions

static int32_t getAvailable (MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
 getAvailable gets all of the available units.
static int32_t getAvailable (const char *type, MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
 getAvailable gets all of the available units for a specific type.
static StringEnumerationgetAvailableTypes (UErrorCode &errorCode)
 getAvailableTypes gets all of the available types.
static UClassID getStaticClassID (void)
 Return the class ID for this class.
static int32_t getIndexCount ()
 ICU use only.
static MeasureUnitcreateGForce (UErrorCode &status)
 Returns unit of acceleration: g-force.
static MeasureUnitcreateMeterPerSecondSquared (UErrorCode &status)
 Returns unit of acceleration: meter-per-second-squared.
static MeasureUnitcreateArcMinute (UErrorCode &status)
 Returns unit of angle: arc-minute.
static MeasureUnitcreateArcSecond (UErrorCode &status)
 Returns unit of angle: arc-second.
static MeasureUnitcreateDegree (UErrorCode &status)
 Returns unit of angle: degree.
static MeasureUnitcreateRadian (UErrorCode &status)
 Returns unit of angle: radian.
static MeasureUnitcreateAcre (UErrorCode &status)
 Returns unit of area: acre.
static MeasureUnitcreateHectare (UErrorCode &status)
 Returns unit of area: hectare.
static MeasureUnitcreateSquareCentimeter (UErrorCode &status)
 Returns unit of area: square-centimeter.
static MeasureUnitcreateSquareFoot (UErrorCode &status)
 Returns unit of area: square-foot.
static MeasureUnitcreateSquareInch (UErrorCode &status)
 Returns unit of area: square-inch.
static MeasureUnitcreateSquareKilometer (UErrorCode &status)
 Returns unit of area: square-kilometer.
static MeasureUnitcreateSquareMeter (UErrorCode &status)
 Returns unit of area: square-meter.
static MeasureUnitcreateSquareMile (UErrorCode &status)
 Returns unit of area: square-mile.
static MeasureUnitcreateSquareYard (UErrorCode &status)
 Returns unit of area: square-yard.
static MeasureUnitcreateLiterPerKilometer (UErrorCode &status)
 Returns unit of consumption: liter-per-kilometer.
static MeasureUnitcreateMilePerGallon (UErrorCode &status)
 Returns unit of consumption: mile-per-gallon.
static MeasureUnitcreateBit (UErrorCode &status)
 Returns unit of digital: bit.
static MeasureUnitcreateByte (UErrorCode &status)
 Returns unit of digital: byte.
static MeasureUnitcreateGigabit (UErrorCode &status)
 Returns unit of digital: gigabit.
static MeasureUnitcreateGigabyte (UErrorCode &status)
 Returns unit of digital: gigabyte.
static MeasureUnitcreateKilobit (UErrorCode &status)
 Returns unit of digital: kilobit.
static MeasureUnitcreateKilobyte (UErrorCode &status)
 Returns unit of digital: kilobyte.
static MeasureUnitcreateMegabit (UErrorCode &status)
 Returns unit of digital: megabit.
static MeasureUnitcreateMegabyte (UErrorCode &status)
 Returns unit of digital: megabyte.
static MeasureUnitcreateTerabit (UErrorCode &status)
 Returns unit of digital: terabit.
static MeasureUnitcreateTerabyte (UErrorCode &status)
 Returns unit of digital: terabyte.
static MeasureUnitcreateDay (UErrorCode &status)
 Returns unit of duration: day.
static MeasureUnitcreateHour (UErrorCode &status)
 Returns unit of duration: hour.
static MeasureUnitcreateMicrosecond (UErrorCode &status)
 Returns unit of duration: microsecond.
static MeasureUnitcreateMillisecond (UErrorCode &status)
 Returns unit of duration: millisecond.
static MeasureUnitcreateMinute (UErrorCode &status)
 Returns unit of duration: minute.
static MeasureUnitcreateMonth (UErrorCode &status)
 Returns unit of duration: month.
static MeasureUnitcreateNanosecond (UErrorCode &status)
 Returns unit of duration: nanosecond.
static MeasureUnitcreateSecond (UErrorCode &status)
 Returns unit of duration: second.
static MeasureUnitcreateWeek (UErrorCode &status)
 Returns unit of duration: week.
static MeasureUnitcreateYear (UErrorCode &status)
 Returns unit of duration: year.
static MeasureUnitcreateAmpere (UErrorCode &status)
 Returns unit of electric: ampere.
static MeasureUnitcreateMilliampere (UErrorCode &status)
 Returns unit of electric: milliampere.
static MeasureUnitcreateOhm (UErrorCode &status)
 Returns unit of electric: ohm.
static MeasureUnitcreateVolt (UErrorCode &status)
 Returns unit of electric: volt.
static MeasureUnitcreateCalorie (UErrorCode &status)
 Returns unit of energy: calorie.
static MeasureUnitcreateFoodcalorie (UErrorCode &status)
 Returns unit of energy: foodcalorie.
static MeasureUnitcreateJoule (UErrorCode &status)
 Returns unit of energy: joule.
static MeasureUnitcreateKilocalorie (UErrorCode &status)
 Returns unit of energy: kilocalorie.
static MeasureUnitcreateKilojoule (UErrorCode &status)
 Returns unit of energy: kilojoule.
static MeasureUnitcreateKilowattHour (UErrorCode &status)
 Returns unit of energy: kilowatt-hour.
static MeasureUnitcreateGigahertz (UErrorCode &status)
 Returns unit of frequency: gigahertz.
static MeasureUnitcreateHertz (UErrorCode &status)
 Returns unit of frequency: hertz.
static MeasureUnitcreateKilohertz (UErrorCode &status)
 Returns unit of frequency: kilohertz.
static MeasureUnitcreateMegahertz (UErrorCode &status)
 Returns unit of frequency: megahertz.
static MeasureUnitcreateAstronomicalUnit (UErrorCode &status)
 Returns unit of length: astronomical-unit.
static MeasureUnitcreateCentimeter (UErrorCode &status)
 Returns unit of length: centimeter.
static MeasureUnitcreateDecimeter (UErrorCode &status)
 Returns unit of length: decimeter.
static MeasureUnitcreateFathom (UErrorCode &status)
 Returns unit of length: fathom.
static MeasureUnitcreateFoot (UErrorCode &status)
 Returns unit of length: foot.
static MeasureUnitcreateFurlong (UErrorCode &status)
 Returns unit of length: furlong.
static MeasureUnitcreateInch (UErrorCode &status)
 Returns unit of length: inch.
static MeasureUnitcreateKilometer (UErrorCode &status)
 Returns unit of length: kilometer.
static MeasureUnitcreateLightYear (UErrorCode &status)
 Returns unit of length: light-year.
static MeasureUnitcreateMeter (UErrorCode &status)
 Returns unit of length: meter.
static MeasureUnitcreateMicrometer (UErrorCode &status)
 Returns unit of length: micrometer.
static MeasureUnitcreateMile (UErrorCode &status)
 Returns unit of length: mile.
static MeasureUnitcreateMillimeter (UErrorCode &status)
 Returns unit of length: millimeter.
static MeasureUnitcreateNanometer (UErrorCode &status)
 Returns unit of length: nanometer.
static MeasureUnitcreateNauticalMile (UErrorCode &status)
 Returns unit of length: nautical-mile.
static MeasureUnitcreateParsec (UErrorCode &status)
 Returns unit of length: parsec.
static MeasureUnitcreatePicometer (UErrorCode &status)
 Returns unit of length: picometer.
static MeasureUnitcreateYard (UErrorCode &status)
 Returns unit of length: yard.
static MeasureUnitcreateLux (UErrorCode &status)
 Returns unit of light: lux.
static MeasureUnitcreateCarat (UErrorCode &status)
 Returns unit of mass: carat.
static MeasureUnitcreateGram (UErrorCode &status)
 Returns unit of mass: gram.
static MeasureUnitcreateKilogram (UErrorCode &status)
 Returns unit of mass: kilogram.
static MeasureUnitcreateMetricTon (UErrorCode &status)
 Returns unit of mass: metric-ton.
static MeasureUnitcreateMicrogram (UErrorCode &status)
 Returns unit of mass: microgram.
static MeasureUnitcreateMilligram (UErrorCode &status)
 Returns unit of mass: milligram.
static MeasureUnitcreateOunce (UErrorCode &status)
 Returns unit of mass: ounce.
static MeasureUnitcreateOunceTroy (UErrorCode &status)
 Returns unit of mass: ounce-troy.
static MeasureUnitcreatePound (UErrorCode &status)
 Returns unit of mass: pound.
static MeasureUnitcreateStone (UErrorCode &status)
 Returns unit of mass: stone.
static MeasureUnitcreateTon (UErrorCode &status)
 Returns unit of mass: ton.
static MeasureUnitcreateGigawatt (UErrorCode &status)
 Returns unit of power: gigawatt.
static MeasureUnitcreateHorsepower (UErrorCode &status)
 Returns unit of power: horsepower.
static MeasureUnitcreateKilowatt (UErrorCode &status)
 Returns unit of power: kilowatt.
static MeasureUnitcreateMegawatt (UErrorCode &status)
 Returns unit of power: megawatt.
static MeasureUnitcreateMilliwatt (UErrorCode &status)
 Returns unit of power: milliwatt.
static MeasureUnitcreateWatt (UErrorCode &status)
 Returns unit of power: watt.
static MeasureUnitcreateHectopascal (UErrorCode &status)
 Returns unit of pressure: hectopascal.
static MeasureUnitcreateInchHg (UErrorCode &status)
 Returns unit of pressure: inch-hg.
static MeasureUnitcreateMillibar (UErrorCode &status)
 Returns unit of pressure: millibar.
static MeasureUnitcreateMillimeterOfMercury (UErrorCode &status)
 Returns unit of pressure: millimeter-of-mercury.
static MeasureUnitcreatePoundPerSquareInch (UErrorCode &status)
 Returns unit of pressure: pound-per-square-inch.
static MeasureUnitcreateKarat (UErrorCode &status)
 Returns unit of proportion: karat.
static MeasureUnitcreateKilometerPerHour (UErrorCode &status)
 Returns unit of speed: kilometer-per-hour.
static MeasureUnitcreateMeterPerSecond (UErrorCode &status)
 Returns unit of speed: meter-per-second.
static MeasureUnitcreateMilePerHour (UErrorCode &status)
 Returns unit of speed: mile-per-hour.
static MeasureUnitcreateCelsius (UErrorCode &status)
 Returns unit of temperature: celsius.
static MeasureUnitcreateFahrenheit (UErrorCode &status)
 Returns unit of temperature: fahrenheit.
static MeasureUnitcreateKelvin (UErrorCode &status)
 Returns unit of temperature: kelvin.
static MeasureUnitcreateAcreFoot (UErrorCode &status)
 Returns unit of volume: acre-foot.
static MeasureUnitcreateBushel (UErrorCode &status)
 Returns unit of volume: bushel.
static MeasureUnitcreateCentiliter (UErrorCode &status)
 Returns unit of volume: centiliter.
static MeasureUnitcreateCubicCentimeter (UErrorCode &status)
 Returns unit of volume: cubic-centimeter.
static MeasureUnitcreateCubicFoot (UErrorCode &status)
 Returns unit of volume: cubic-foot.
static MeasureUnitcreateCubicInch (UErrorCode &status)
 Returns unit of volume: cubic-inch.
static MeasureUnitcreateCubicKilometer (UErrorCode &status)
 Returns unit of volume: cubic-kilometer.
static MeasureUnitcreateCubicMeter (UErrorCode &status)
 Returns unit of volume: cubic-meter.
static MeasureUnitcreateCubicMile (UErrorCode &status)
 Returns unit of volume: cubic-mile.
static MeasureUnitcreateCubicYard (UErrorCode &status)
 Returns unit of volume: cubic-yard.
static MeasureUnitcreateCup (UErrorCode &status)
 Returns unit of volume: cup.
static MeasureUnitcreateDeciliter (UErrorCode &status)
 Returns unit of volume: deciliter.
static MeasureUnitcreateFluidOunce (UErrorCode &status)
 Returns unit of volume: fluid-ounce.
static MeasureUnitcreateGallon (UErrorCode &status)
 Returns unit of volume: gallon.
static MeasureUnitcreateHectoliter (UErrorCode &status)
 Returns unit of volume: hectoliter.
static MeasureUnitcreateLiter (UErrorCode &status)
 Returns unit of volume: liter.
static MeasureUnitcreateMegaliter (UErrorCode &status)
 Returns unit of volume: megaliter.
static MeasureUnitcreateMilliliter (UErrorCode &status)
 Returns unit of volume: milliliter.
static MeasureUnitcreatePint (UErrorCode &status)
 Returns unit of volume: pint.
static MeasureUnitcreateQuart (UErrorCode &status)
 Returns unit of volume: quart.
static MeasureUnitcreateTablespoon (UErrorCode &status)
 Returns unit of volume: tablespoon.
static MeasureUnitcreateTeaspoon (UErrorCode &status)
 Returns unit of volume: teaspoon.

Protected Member Functions

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

Detailed Description

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

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

Author
Alan Liu
Stable:
ICU 3.0

Definition at line 36 of file measunit.h.

Constructor & Destructor Documentation

icu::MeasureUnit::MeasureUnit ( )
inline

Default constructor.

Stable:
ICU 3.0

Definition at line 43 of file measunit.h.

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

Copy constructor.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
virtual icu::MeasureUnit::~MeasureUnit ( )
virtual

Destructor.

Stable:
ICU 3.0

Member Function Documentation

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

Returns a polymorphic clone of this object.

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

Stable:
ICU 3.0

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

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

Returns unit of area: acre.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createAcreFoot ( UErrorCode status)
static

Returns unit of volume: acre-foot.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createAmpere ( UErrorCode status)
static

Returns unit of electric: ampere.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createArcMinute ( UErrorCode status)
static

Returns unit of angle: arc-minute.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createArcSecond ( UErrorCode status)
static

Returns unit of angle: arc-second.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createAstronomicalUnit ( UErrorCode status)
static

Returns unit of length: astronomical-unit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createBit ( UErrorCode status)
static

Returns unit of digital: bit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createBushel ( UErrorCode status)
static

Returns unit of volume: bushel.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createByte ( UErrorCode status)
static

Returns unit of digital: byte.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCalorie ( UErrorCode status)
static

Returns unit of energy: calorie.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCarat ( UErrorCode status)
static

Returns unit of mass: carat.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCelsius ( UErrorCode status)
static

Returns unit of temperature: celsius.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createCentiliter ( UErrorCode status)
static

Returns unit of volume: centiliter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCentimeter ( UErrorCode status)
static

Returns unit of length: centimeter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createCubicCentimeter ( UErrorCode status)
static

Returns unit of volume: cubic-centimeter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCubicFoot ( UErrorCode status)
static

Returns unit of volume: cubic-foot.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCubicInch ( UErrorCode status)
static

Returns unit of volume: cubic-inch.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCubicKilometer ( UErrorCode status)
static

Returns unit of volume: cubic-kilometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createCubicMeter ( UErrorCode status)
static

Returns unit of volume: cubic-meter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCubicMile ( UErrorCode status)
static

Returns unit of volume: cubic-mile.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createCubicYard ( UErrorCode status)
static

Returns unit of volume: cubic-yard.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createCup ( UErrorCode status)
static

Returns unit of volume: cup.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createDay ( UErrorCode status)
static

Returns unit of duration: day.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createDeciliter ( UErrorCode status)
static

Returns unit of volume: deciliter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createDecimeter ( UErrorCode status)
static

Returns unit of length: decimeter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createDegree ( UErrorCode status)
static

Returns unit of angle: degree.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createFahrenheit ( UErrorCode status)
static

Returns unit of temperature: fahrenheit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createFathom ( UErrorCode status)
static

Returns unit of length: fathom.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createFluidOunce ( UErrorCode status)
static

Returns unit of volume: fluid-ounce.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createFoodcalorie ( UErrorCode status)
static

Returns unit of energy: foodcalorie.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createFoot ( UErrorCode status)
static

Returns unit of length: foot.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createFurlong ( UErrorCode status)
static

Returns unit of length: furlong.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGallon ( UErrorCode status)
static

Returns unit of volume: gallon.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGForce ( UErrorCode status)
static

Returns unit of acceleration: g-force.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createGigabit ( UErrorCode status)
static

Returns unit of digital: gigabit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGigabyte ( UErrorCode status)
static

Returns unit of digital: gigabyte.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGigahertz ( UErrorCode status)
static

Returns unit of frequency: gigahertz.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGigawatt ( UErrorCode status)
static

Returns unit of power: gigawatt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createGram ( UErrorCode status)
static

Returns unit of mass: gram.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createHectare ( UErrorCode status)
static

Returns unit of area: hectare.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createHectoliter ( UErrorCode status)
static

Returns unit of volume: hectoliter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createHectopascal ( UErrorCode status)
static

Returns unit of pressure: hectopascal.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createHertz ( UErrorCode status)
static

Returns unit of frequency: hertz.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createHorsepower ( UErrorCode status)
static

Returns unit of power: horsepower.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createHour ( UErrorCode status)
static

Returns unit of duration: hour.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createInch ( UErrorCode status)
static

Returns unit of length: inch.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createInchHg ( UErrorCode status)
static

Returns unit of pressure: inch-hg.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createJoule ( UErrorCode status)
static

Returns unit of energy: joule.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKarat ( UErrorCode status)
static

Returns unit of proportion: karat.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKelvin ( UErrorCode status)
static

Returns unit of temperature: kelvin.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilobit ( UErrorCode status)
static

Returns unit of digital: kilobit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilobyte ( UErrorCode status)
static

Returns unit of digital: kilobyte.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilocalorie ( UErrorCode status)
static

Returns unit of energy: kilocalorie.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilogram ( UErrorCode status)
static

Returns unit of mass: kilogram.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createKilohertz ( UErrorCode status)
static

Returns unit of frequency: kilohertz.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilojoule ( UErrorCode status)
static

Returns unit of energy: kilojoule.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createKilometer ( UErrorCode status)
static

Returns unit of length: kilometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createKilometerPerHour ( UErrorCode status)
static

Returns unit of speed: kilometer-per-hour.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createKilowatt ( UErrorCode status)
static

Returns unit of power: kilowatt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createKilowattHour ( UErrorCode status)
static

Returns unit of energy: kilowatt-hour.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createLightYear ( UErrorCode status)
static

Returns unit of length: light-year.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createLiter ( UErrorCode status)
static

Returns unit of volume: liter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createLiterPerKilometer ( UErrorCode status)
static

Returns unit of consumption: liter-per-kilometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createLux ( UErrorCode status)
static

Returns unit of light: lux.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMegabit ( UErrorCode status)
static

Returns unit of digital: megabit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMegabyte ( UErrorCode status)
static

Returns unit of digital: megabyte.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMegahertz ( UErrorCode status)
static

Returns unit of frequency: megahertz.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMegaliter ( UErrorCode status)
static

Returns unit of volume: megaliter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMegawatt ( UErrorCode status)
static

Returns unit of power: megawatt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMeter ( UErrorCode status)
static

Returns unit of length: meter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMeterPerSecond ( UErrorCode status)
static

Returns unit of speed: meter-per-second.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMeterPerSecondSquared ( UErrorCode status)
static

Returns unit of acceleration: meter-per-second-squared.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMetricTon ( UErrorCode status)
static

Returns unit of mass: metric-ton.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMicrogram ( UErrorCode status)
static

Returns unit of mass: microgram.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMicrometer ( UErrorCode status)
static

Returns unit of length: micrometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMicrosecond ( UErrorCode status)
static

Returns unit of duration: microsecond.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMile ( UErrorCode status)
static

Returns unit of length: mile.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMilePerGallon ( UErrorCode status)
static

Returns unit of consumption: mile-per-gallon.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMilePerHour ( UErrorCode status)
static

Returns unit of speed: mile-per-hour.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMilliampere ( UErrorCode status)
static

Returns unit of electric: milliampere.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMillibar ( UErrorCode status)
static

Returns unit of pressure: millibar.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMilligram ( UErrorCode status)
static

Returns unit of mass: milligram.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMilliliter ( UErrorCode status)
static

Returns unit of volume: milliliter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMillimeter ( UErrorCode status)
static

Returns unit of length: millimeter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMillimeterOfMercury ( UErrorCode status)
static

Returns unit of pressure: millimeter-of-mercury.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMillisecond ( UErrorCode status)
static

Returns unit of duration: millisecond.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMilliwatt ( UErrorCode status)
static

Returns unit of power: milliwatt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createMinute ( UErrorCode status)
static

Returns unit of duration: minute.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createMonth ( UErrorCode status)
static

Returns unit of duration: month.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createNanometer ( UErrorCode status)
static

Returns unit of length: nanometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createNanosecond ( UErrorCode status)
static

Returns unit of duration: nanosecond.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createNauticalMile ( UErrorCode status)
static

Returns unit of length: nautical-mile.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createOhm ( UErrorCode status)
static

Returns unit of electric: ohm.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createOunce ( UErrorCode status)
static

Returns unit of mass: ounce.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createOunceTroy ( UErrorCode status)
static

Returns unit of mass: ounce-troy.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createParsec ( UErrorCode status)
static

Returns unit of length: parsec.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createPicometer ( UErrorCode status)
static

Returns unit of length: picometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createPint ( UErrorCode status)
static

Returns unit of volume: pint.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createPound ( UErrorCode status)
static

Returns unit of mass: pound.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createPoundPerSquareInch ( UErrorCode status)
static

Returns unit of pressure: pound-per-square-inch.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createQuart ( UErrorCode status)
static

Returns unit of volume: quart.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createRadian ( UErrorCode status)
static

Returns unit of angle: radian.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createSecond ( UErrorCode status)
static

Returns unit of duration: second.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createSquareCentimeter ( UErrorCode status)
static

Returns unit of area: square-centimeter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createSquareFoot ( UErrorCode status)
static

Returns unit of area: square-foot.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createSquareInch ( UErrorCode status)
static

Returns unit of area: square-inch.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createSquareKilometer ( UErrorCode status)
static

Returns unit of area: square-kilometer.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createSquareMeter ( UErrorCode status)
static

Returns unit of area: square-meter.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createSquareMile ( UErrorCode status)
static

Returns unit of area: square-mile.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createSquareYard ( UErrorCode status)
static

Returns unit of area: square-yard.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createStone ( UErrorCode status)
static

Returns unit of mass: stone.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createTablespoon ( UErrorCode status)
static

Returns unit of volume: tablespoon.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createTeaspoon ( UErrorCode status)
static

Returns unit of volume: teaspoon.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createTerabit ( UErrorCode status)
static

Returns unit of digital: terabit.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createTerabyte ( UErrorCode status)
static

Returns unit of digital: terabyte.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createTon ( UErrorCode status)
static

Returns unit of mass: ton.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createVolt ( UErrorCode status)
static

Returns unit of electric: volt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 54
static MeasureUnit* icu::MeasureUnit::createWatt ( UErrorCode status)
static

Returns unit of power: watt.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createWeek ( UErrorCode status)
static

Returns unit of duration: week.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createYard ( UErrorCode status)
static

Returns unit of length: yard.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static MeasureUnit* icu::MeasureUnit::createYear ( UErrorCode status)
static

Returns unit of duration: year.

Caller owns returned value and must free it.

Parameters
statusICU error code.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static int32_t icu::MeasureUnit::getAvailable ( MeasureUnit destArray,
int32_t  destCapacity,
UErrorCode errorCode 
)
static

getAvailable gets all of the available units.

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

Parameters
destArraydestination buffer.
destCapacitynumber of MeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static int32_t icu::MeasureUnit::getAvailable ( const char *  type,
MeasureUnit destArray,
int32_t  destCapacity,
UErrorCode errorCode 
)
static

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

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

Parameters
typethe type
destArraydestination buffer.
destCapacitynumber of MeasureUnit instances available at dest.
errorCodeICU error code.
Returns
number of available units for type.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
static StringEnumeration* icu::MeasureUnit::getAvailableTypes ( UErrorCode errorCode)
static

getAvailableTypes gets all of the available types.

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

Parameters
errorCodeICU error code.
Returns
the types.
Draft:
This API may be changed in the future versions and was introduced in ICU 53
virtual UClassID icu::MeasureUnit::getDynamicClassID ( void  ) const
virtual

Returns a unique class ID POLYMORPHICALLY.

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

Returns
The class ID for this object. All objects of a given class have the same class ID. Objects of other classes have different class IDs.
Draft:
This API may be changed in the future versions and was introduced in ICU 53

Reimplemented from icu::UObject.

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

int32_t icu::MeasureUnit::getIndex ( ) const

ICU use only.

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

Internal:
Do not use. This API is for internal use only.
static int32_t icu::MeasureUnit::getIndexCount ( )
static

ICU use only.

Returns maximum value from getIndex plus 1.

Internal:
Do not use. This API is for internal use only.
static UClassID icu::MeasureUnit::getStaticClassID ( void  )
static

Return the class ID for this class.

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

.   Base* polymorphic_pointer = createPolymorphicObject();
.   if (polymorphic_pointer->getDynamicClassID() ==
.       erived::getStaticClassID()) ...
Returns
The class ID for all objects of this class.
Draft:
This API may be changed in the future versions and was introduced in ICU 53

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

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

Get the sub type.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
const char* icu::MeasureUnit::getType ( ) const

Get the type.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
void icu::MeasureUnit::initCurrency ( const char *  isoCurrency)
protected

For ICU use only.

Internal:
Do not use. This API is for internal use only.
void icu::MeasureUnit::initTime ( const char *  timeId)
protected

For ICU use only.

Internal:
Do not use. This API is for internal use only.
UBool icu::MeasureUnit::operator!= ( const UObject other) const
inline

Inequality operator.

Return true if this object is not equal to the given object.

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

Definition at line 85 of file measunit.h.

MeasureUnit& icu::MeasureUnit::operator= ( const MeasureUnit other)

Assignment operator.

Draft:
This API may be changed in the future versions and was introduced in ICU 53
virtual UBool icu::MeasureUnit::operator== ( const UObject other) const
virtual

Equality operator.

Return true if this object is equal to the given object.

Stable:
ICU 3.0

The documentation for this class was generated from the following file: