Loading...
Searching...
No Matches
icu::CurrencyUnit Class Reference

A unit of currency, such as USD (U.S. More...

`#include <currunit.h>`

Inheritance diagram for icu::CurrencyUnit:

## Public Member Functions

| CurrencyUnit ()
| Default constructor.
| CurrencyUnit (ConstChar16Ptr isoCode, UErrorCode &ec)
| Construct an object with the given ISO currency code.
| CurrencyUnit (StringPiece isoCode, UErrorCode &ec)
| Construct an object with the given ISO currency code.
| CurrencyUnit (const CurrencyUnit &other)
| Copy constructor.
| CurrencyUnit (const MeasureUnit &measureUnit, UErrorCode &ec)
| Copy constructor from MeasureUnit.
CurrencyUnit & | operator= (const CurrencyUnit &other)
| Assignment operator.
virtual CurrencyUnit * | clone () const override
| Return a polymorphic clone of this object.
virtual | ~CurrencyUnit ()
| Destructor.
virtual UClassID | getDynamicClassID () const override
| Returns a unique class ID for this object POLYMORPHICALLY.
const char16_t * | getISOCurrency () const
| Return the ISO currency code of this object.
Public Member Functions inherited from icu::MeasureUnit
| MeasureUnit ()
| Default constructor.
| MeasureUnit (const MeasureUnit &other)
| Copy constructor.
| MeasureUnit (MeasureUnit &&other) noexcept
| Move constructor.
MeasureUnit & | operator= (const MeasureUnit &other)
| Copy assignment operator.
MeasureUnit & | operator= (MeasureUnit &&other) noexcept
| Move assignment operator.
virtual | ~MeasureUnit ()
| Destructor.
virtual bool | operator== (const UObject &other) const
| Equality operator.
bool | operator!= (const UObject &other) const
| Inequality operator.
const char * | getType () const
| Get the type.
const char * | getSubtype () const
| Get the sub type.
const char * | getIdentifier () const
| Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.
UMeasureUnitComplexity | getComplexity (UErrorCode &status) const
| Compute the complexity of the unit.
MeasureUnit | withPrefix (UMeasurePrefix prefix, UErrorCode &status) const
| Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.
UMeasurePrefix | getPrefix (UErrorCode &status) const
| Returns the current SI or binary prefix of this SINGLE unit.
MeasureUnit | withConstantDenominator (uint64_t denominator, UErrorCode &status) const
| Creates a new MeasureUnit with a specified constant denominator.
uint64_t | getConstantDenominator (UErrorCode &status) const
| Retrieves the constant denominator for this COMPOUND unit.
MeasureUnit | withDimensionality (int32_t dimensionality, UErrorCode &status) const
| Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).
int32_t | getDimensionality (UErrorCode &status) const
| Gets the dimensionality (power) of this MeasureUnit.
MeasureUnit | reciprocal (UErrorCode &status) const
| Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped.
MeasureUnit | product (const MeasureUnit &other, UErrorCode &status) const
| Gets the product of this unit with another unit.
std::pair< LocalArray< MeasureUnit >, int32_t > | splitToSingleUnits (UErrorCode &status) const
| Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.
int32_t | getOffset () const
| ICU use only.
Public Member Functions inherited from icu::UObject
virtual | ~UObject ()
| Destructor.

## Static Public Member Functions

static UClassID | getStaticClassID ()
| Returns the class ID for this class.
Static Public Member Functions inherited from icu::MeasureUnit
static MeasureUnit | forIdentifier (StringPiece identifier, UErrorCode &status)
| Constructs a MeasureUnit from a CLDR Core Unit Identifier, as defined in UTS 35.
static int32_t | getAvailable (MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
| getAvailable gets all of the available units.
static int32_t | getAvailable (const char *type, MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
| getAvailable gets all of the available units for a specific type.
static StringEnumeration * | getAvailableTypes (UErrorCode &errorCode)
| getAvailableTypes gets all of the available types.
static UClassID | getStaticClassID ()
| Return the class ID for this class.
static MeasureUnit * | createGForce (UErrorCode &status)
| Returns by pointer, unit of acceleration: g-force.
static MeasureUnit | getGForce ()
| Returns by value, unit of acceleration: g-force.
static MeasureUnit * | createMeterPerSecondSquared (UErrorCode &status)
| Returns by pointer, unit of acceleration: meter-per-square-second.
static MeasureUnit | getMeterPerSecondSquared ()
| Returns by value, unit of acceleration: meter-per-square-second.
static MeasureUnit * | createArcMinute (UErrorCode &status)
| Returns by pointer, unit of angle: arc-minute.
static MeasureUnit | getArcMinute ()
| Returns by value, unit of angle: arc-minute.
static MeasureUnit * | createArcSecond (UErrorCode &status)
| Returns by pointer, unit of angle: arc-second.
static MeasureUnit | getArcSecond ()
| Returns by value, unit of angle: arc-second.
static MeasureUnit * | createDegree (UErrorCode &status)
| Returns by pointer, unit of angle: degree.
static MeasureUnit | getDegree ()
| Returns by value, unit of angle: degree.
static MeasureUnit * | createRadian (UErrorCode &status)
| Returns by pointer, unit of angle: radian.
static MeasureUnit | getRadian ()
| Returns by value, unit of angle: radian.
static MeasureUnit * | createRevolutionAngle (UErrorCode &status)
| Returns by pointer, unit of angle: revolution.
static MeasureUnit | getRevolutionAngle ()
| Returns by value, unit of angle: revolution.
static MeasureUnit * | createSteradian (UErrorCode &status)
| Returns by pointer, unit of angle: steradian.
static MeasureUnit | getSteradian ()
| Returns by value, unit of angle: steradian.
static MeasureUnit * | createAcre (UErrorCode &status)
| Returns by pointer, unit of area: acre.
static MeasureUnit | getAcre ()
| Returns by value, unit of area: acre.
static MeasureUnit * | createBuJp (UErrorCode &status)
| Returns by pointer, unit of area: bu-jp.
static MeasureUnit | getBuJp ()
| Returns by value, unit of area: bu-jp.
static MeasureUnit * | createCho (UErrorCode &status)
| Returns by pointer, unit of area: cho.
static MeasureUnit | getCho ()
| Returns by value, unit of area: cho.
static MeasureUnit * | createDunam (UErrorCode &status)
| Returns by pointer, unit of area: dunam.
static MeasureUnit | getDunam ()
| Returns by value, unit of area: dunam.
static MeasureUnit * | createHectare (UErrorCode &status)
| Returns by pointer, unit of area: hectare.
static MeasureUnit | getHectare ()
| Returns by value, unit of area: hectare.
static MeasureUnit * | createSeJp (UErrorCode &status)
| Returns by pointer, unit of area: se-jp.
static MeasureUnit | getSeJp ()
| Returns by value, unit of area: se-jp.
static MeasureUnit * | createSquareCentimeter (UErrorCode &status)
| Returns by pointer, unit of area: square-centimeter.
static MeasureUnit | getSquareCentimeter ()
| Returns by value, unit of area: square-centimeter.
static MeasureUnit * | createSquareFoot (UErrorCode &status)
| Returns by pointer, unit of area: square-foot.
static MeasureUnit | getSquareFoot ()
| Returns by value, unit of area: square-foot.
static MeasureUnit * | createSquareInch (UErrorCode &status)
| Returns by pointer, unit of area: square-inch.
static MeasureUnit | getSquareInch ()
| Returns by value, unit of area: square-inch.
static MeasureUnit * | createSquareKilometer (UErrorCode &status)
| Returns by pointer, unit of area: square-kilometer.
static MeasureUnit | getSquareKilometer ()
| Returns by value, unit of area: square-kilometer.
static MeasureUnit * | createSquareMeter (UErrorCode &status)
| Returns by pointer, unit of area: square-meter.
static MeasureUnit | getSquareMeter ()
| Returns by value, unit of area: square-meter.
static MeasureUnit * | createSquareMile (UErrorCode &status)
| Returns by pointer, unit of area: square-mile.
static MeasureUnit | getSquareMile ()
| Returns by value, unit of area: square-mile.
static MeasureUnit * | createSquareYard (UErrorCode &status)
| Returns by pointer, unit of area: square-yard.
static MeasureUnit | getSquareYard ()
| Returns by value, unit of area: square-yard.
static MeasureUnit * | createItem (UErrorCode &status)
| Returns by pointer, unit of concentr: item.
static MeasureUnit | getItem ()
| Returns by value, unit of concentr: item.
static MeasureUnit * | createKarat (UErrorCode &status)
| Returns by pointer, unit of concentr: karat.
static MeasureUnit | getKarat ()
| Returns by value, unit of concentr: karat.
static MeasureUnit * | createKatal (UErrorCode &status)
| Returns by pointer, unit of concentr: katal.
static MeasureUnit | getKatal ()
| Returns by value, unit of concentr: katal.
static MeasureUnit * | createMilligramOfglucosePerDeciliter (UErrorCode &status)
| Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.
static MeasureUnit | getMilligramOfglucosePerDeciliter ()
| Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.
static MeasureUnit * | createMilligramPerDeciliter (UErrorCode &status)
| Returns by pointer, unit of concentr: milligram-per-deciliter.
static MeasureUnit | getMilligramPerDeciliter ()
| Returns by value, unit of concentr: milligram-per-deciliter.
static MeasureUnit * | createMillimolePerLiter (UErrorCode &status)
| Returns by pointer, unit of concentr: millimole-per-liter.
static MeasureUnit | getMillimolePerLiter ()
| Returns by value, unit of concentr: millimole-per-liter.
static MeasureUnit * | createMole (UErrorCode &status)
| Returns by pointer, unit of concentr: mole.
static MeasureUnit | getMole ()
| Returns by value, unit of concentr: mole.
static MeasureUnit * | createOfglucose (UErrorCode &status)
| Returns by pointer, unit of concentr: ofglucose.
static MeasureUnit | getOfglucose ()
| Returns by value, unit of concentr: ofglucose.
static MeasureUnit * | createPart (UErrorCode &status)
| Returns by pointer, unit of concentr: part.
static MeasureUnit | getPart ()
| Returns by value, unit of concentr: part.
static MeasureUnit * | createPartPer1E6 (UErrorCode &status)
| Returns by pointer, unit of concentr: part-per-1e6.
static MeasureUnit | getPartPer1E6 ()
| Returns by value, unit of concentr: part-per-1e6.
static MeasureUnit * | createPartPerMillion (UErrorCode &status)
| Returns by pointer, unit of concentr: part-per-million.
static MeasureUnit | getPartPerMillion ()
| Returns by value, unit of concentr: part-per-million.
static MeasureUnit * | createPartPer1E9 (UErrorCode &status)
| Returns by pointer, unit of concentr: part-per-1e9.
static MeasureUnit | getPartPer1E9 ()
| Returns by value, unit of concentr: part-per-1e9.
static MeasureUnit * | createPercent (UErrorCode &status)
| Returns by pointer, unit of concentr: percent.
static MeasureUnit | getPercent ()
| Returns by value, unit of concentr: percent.
static MeasureUnit * | createPermille (UErrorCode &status)
| Returns by pointer, unit of concentr: permille.
static MeasureUnit | getPermille ()
| Returns by value, unit of concentr: permille.
static MeasureUnit * | createPermyriad (UErrorCode &status)
| Returns by pointer, unit of concentr: permyriad.
static MeasureUnit | getPermyriad ()
| Returns by value, unit of concentr: permyriad.
static MeasureUnit * | createLiterPer100Kilometers (UErrorCode &status)
| Returns by pointer, unit of consumption: liter-per-100-kilometer.
static MeasureUnit | getLiterPer100Kilometers ()
| Returns by value, unit of consumption: liter-per-100-kilometer.
static MeasureUnit * | createLiterPerKilometer (UErrorCode &status)
| Returns by pointer, unit of consumption: liter-per-kilometer.
static MeasureUnit | getLiterPerKilometer ()
| Returns by value, unit of consumption: liter-per-kilometer.
static MeasureUnit * | createMilePerGallon (UErrorCode &status)
| Returns by pointer, unit of consumption: mile-per-gallon.
static MeasureUnit | getMilePerGallon ()
| Returns by value, unit of consumption: mile-per-gallon.
static MeasureUnit * | createMilePerGallonImperial (UErrorCode &status)
| Returns by pointer, unit of consumption: mile-per-gallon-imperial.
static MeasureUnit | getMilePerGallonImperial ()
| Returns by value, unit of consumption: mile-per-gallon-imperial.
static MeasureUnit * | createBit (UErrorCode &status)
| Returns by pointer, unit of digital: bit.
static MeasureUnit | getBit ()
| Returns by value, unit of digital: bit.
static MeasureUnit * | createByte (UErrorCode &status)
| Returns by pointer, unit of digital: byte.
static MeasureUnit | getByte ()
| Returns by value, unit of digital: byte.
static MeasureUnit * | createGigabit (UErrorCode &status)
| Returns by pointer, unit of digital: gigabit.
static MeasureUnit | getGigabit ()
| Returns by value, unit of digital: gigabit.
static MeasureUnit * | createGigabyte (UErrorCode &status)
| Returns by pointer, unit of digital: gigabyte.
static MeasureUnit | getGigabyte ()
| Returns by value, unit of digital: gigabyte.
static MeasureUnit * | createKilobit (UErrorCode &status)
| Returns by pointer, unit of digital: kilobit.
static MeasureUnit | getKilobit ()
| Returns by value, unit of digital: kilobit.
static MeasureUnit * | createKilobyte (UErrorCode &status)
| Returns by pointer, unit of digital: kilobyte.
static MeasureUnit | getKilobyte ()
| Returns by value, unit of digital: kilobyte.
static MeasureUnit * | createMegabit (UErrorCode &status)
| Returns by pointer, unit of digital: megabit.
static MeasureUnit | getMegabit ()
| Returns by value, unit of digital: megabit.
static MeasureUnit * | createMegabyte (UErrorCode &status)
| Returns by pointer, unit of digital: megabyte.
static MeasureUnit | getMegabyte ()
| Returns by value, unit of digital: megabyte.
static MeasureUnit * | createPetabyte (UErrorCode &status)
| Returns by pointer, unit of digital: petabyte.
static MeasureUnit | getPetabyte ()
| Returns by value, unit of digital: petabyte.
static MeasureUnit * | createTerabit (UErrorCode &status)
| Returns by pointer, unit of digital: terabit.
static MeasureUnit | getTerabit ()
| Returns by value, unit of digital: terabit.
static MeasureUnit * | createTerabyte (UErrorCode &status)
| Returns by pointer, unit of digital: terabyte.
static MeasureUnit | getTerabyte ()
| Returns by value, unit of digital: terabyte.
static MeasureUnit * | createCentury (UErrorCode &status)
| Returns by pointer, unit of duration: century.
static MeasureUnit | getCentury ()
| Returns by value, unit of duration: century.
static MeasureUnit * | createDay (UErrorCode &status)
| Returns by pointer, unit of duration: day.
static MeasureUnit | getDay ()
| Returns by value, unit of duration: day.
static MeasureUnit * | createDayPerson (UErrorCode &status)
| Returns by pointer, unit of duration: day-person.
static MeasureUnit | getDayPerson ()
| Returns by value, unit of duration: day-person.
static MeasureUnit * | createDecade (UErrorCode &status)
| Returns by pointer, unit of duration: decade.
static MeasureUnit | getDecade ()
| Returns by value, unit of duration: decade.
static MeasureUnit * | createFortnight (UErrorCode &status)
| Returns by pointer, unit of duration: fortnight.
static MeasureUnit | getFortnight ()
| Returns by value, unit of duration: fortnight.
static MeasureUnit * | createHour (UErrorCode &status)
| Returns by pointer, unit of duration: hour.
static MeasureUnit | getHour ()
| Returns by value, unit of duration: hour.
static MeasureUnit * | createMicrosecond (UErrorCode &status)
| Returns by pointer, unit of duration: microsecond.
static MeasureUnit | getMicrosecond ()
| Returns by value, unit of duration: microsecond.
static MeasureUnit * | createMillisecond (UErrorCode &status)
| Returns by pointer, unit of duration: millisecond.
static MeasureUnit | getMillisecond ()
| Returns by value, unit of duration: millisecond.
static MeasureUnit * | createMinute (UErrorCode &status)
| Returns by pointer, unit of duration: minute.
static MeasureUnit | getMinute ()
| Returns by value, unit of duration: minute.
static MeasureUnit * | createMonth (UErrorCode &status)
| Returns by pointer, unit of duration: month.
static MeasureUnit | getMonth ()
| Returns by value, unit of duration: month.
static MeasureUnit * | createMonthPerson (UErrorCode &status)
| Returns by pointer, unit of duration: month-person.
static MeasureUnit | getMonthPerson ()
| Returns by value, unit of duration: month-person.
static MeasureUnit * | createNanosecond (UErrorCode &status)
| Returns by pointer, unit of duration: nanosecond.
static MeasureUnit | getNanosecond ()
| Returns by value, unit of duration: nanosecond.
static MeasureUnit * | createNight (UErrorCode &status)
| Returns by pointer, unit of duration: night.
static MeasureUnit | getNight ()
| Returns by value, unit of duration: night.
static MeasureUnit * | createQuarter (UErrorCode &status)
| Returns by pointer, unit of duration: quarter.
static MeasureUnit | getQuarter ()
| Returns by value, unit of duration: quarter.
static MeasureUnit * | createSecond (UErrorCode &status)
| Returns by pointer, unit of duration: second.
static MeasureUnit | getSecond ()
| Returns by value, unit of duration: second.
static MeasureUnit * | createWeek (UErrorCode &status)
| Returns by pointer, unit of duration: week.
static MeasureUnit | getWeek ()
| Returns by value, unit of duration: week.
static MeasureUnit * | createWeekPerson (UErrorCode &status)
| Returns by pointer, unit of duration: week-person.
static MeasureUnit | getWeekPerson ()
| Returns by value, unit of duration: week-person.
static MeasureUnit * | createYear (UErrorCode &status)
| Returns by pointer, unit of duration: year.
static MeasureUnit | getYear ()
| Returns by value, unit of duration: year.
static MeasureUnit * | createYearPerson (UErrorCode &status)
| Returns by pointer, unit of duration: year-person.
static MeasureUnit | getYearPerson ()
| Returns by value, unit of duration: year-person.
static MeasureUnit * | createAmpere (UErrorCode &status)
| Returns by pointer, unit of electric: ampere.
static MeasureUnit | getAmpere ()
| Returns by value, unit of electric: ampere.
static MeasureUnit * | createCoulomb (UErrorCode &status)
| Returns by pointer, unit of electric: coulomb.
static MeasureUnit | getCoulomb ()
| Returns by value, unit of electric: coulomb.
static MeasureUnit * | createFarad (UErrorCode &status)
| Returns by pointer, unit of electric: farad.
static MeasureUnit | getFarad ()
| Returns by value, unit of electric: farad.
static MeasureUnit * | createHenry (UErrorCode &status)
| Returns by pointer, unit of electric: henry.
static MeasureUnit | getHenry ()
| Returns by value, unit of electric: henry.
static MeasureUnit * | createMilliampere (UErrorCode &status)
| Returns by pointer, unit of electric: milliampere.
static MeasureUnit | getMilliampere ()
| Returns by value, unit of electric: milliampere.
static MeasureUnit * | createOhm (UErrorCode &status)
| Returns by pointer, unit of electric: ohm.
static MeasureUnit | getOhm ()
| Returns by value, unit of electric: ohm.
static MeasureUnit * | createSiemens (UErrorCode &status)
| Returns by pointer, unit of electric: siemens.
static MeasureUnit | getSiemens ()
| Returns by value, unit of electric: siemens.
static MeasureUnit * | createVolt (UErrorCode &status)
| Returns by pointer, unit of electric: volt.
static MeasureUnit | getVolt ()
| Returns by value, unit of electric: volt.
static MeasureUnit * | createBecquerel (UErrorCode &status)
| Returns by pointer, unit of energy: becquerel.
static MeasureUnit | getBecquerel ()
| Returns by value, unit of energy: becquerel.
static MeasureUnit * | createBritishThermalUnit (UErrorCode &status)
| Returns by pointer, unit of energy: british-thermal-unit.
static MeasureUnit | getBritishThermalUnit ()
| Returns by value, unit of energy: british-thermal-unit.
static MeasureUnit * | createBritishThermalUnitIt (UErrorCode &status)
| Returns by pointer, unit of energy: british-thermal-unit-it.
static MeasureUnit | getBritishThermalUnitIt ()
| Returns by value, unit of energy: british-thermal-unit-it.
static MeasureUnit * | createCalorie (UErrorCode &status)
| Returns by pointer, unit of energy: calorie.
static MeasureUnit | getCalorie ()
| Returns by value, unit of energy: calorie.
static MeasureUnit * | createCalorieIt (UErrorCode &status)
| Returns by pointer, unit of energy: calorie-it.
static MeasureUnit | getCalorieIt ()
| Returns by value, unit of energy: calorie-it.
static MeasureUnit * | createElectronvolt (UErrorCode &status)
| Returns by pointer, unit of energy: electronvolt.
static MeasureUnit | getElectronvolt ()
| Returns by value, unit of energy: electronvolt.
static MeasureUnit * | createFoodcalorie (UErrorCode &status)
| Returns by pointer, unit of energy: foodcalorie.
static MeasureUnit | getFoodcalorie ()
| Returns by value, unit of energy: foodcalorie.
static MeasureUnit * | createGray (UErrorCode &status)
| Returns by pointer, unit of energy: gray.
static MeasureUnit | getGray ()
| Returns by value, unit of energy: gray.
static MeasureUnit * | createJoule (UErrorCode &status)
| Returns by pointer, unit of energy: joule.
static MeasureUnit | getJoule ()
| Returns by value, unit of energy: joule.
static MeasureUnit * | createKilocalorie (UErrorCode &status)
| Returns by pointer, unit of energy: kilocalorie.
static MeasureUnit | getKilocalorie ()
| Returns by value, unit of energy: kilocalorie.
static MeasureUnit * | createKilojoule (UErrorCode &status)
| Returns by pointer, unit of energy: kilojoule.
static MeasureUnit | getKilojoule ()
| Returns by value, unit of energy: kilojoule.
static MeasureUnit * | createKilowattHour (UErrorCode &status)
| Returns by pointer, unit of energy: kilowatt-hour.
static MeasureUnit | getKilowattHour ()
| Returns by value, unit of energy: kilowatt-hour.
static MeasureUnit * | createSievert (UErrorCode &status)
| Returns by pointer, unit of energy: sievert.
static MeasureUnit | getSievert ()
| Returns by value, unit of energy: sievert.
static MeasureUnit * | createThermUs (UErrorCode &status)
| Returns by pointer, unit of energy: therm-us.
static MeasureUnit | getThermUs ()
| Returns by value, unit of energy: therm-us.
static MeasureUnit * | createKilogramForce (UErrorCode &status)
| Returns by pointer, unit of force: kilogram-force.
static MeasureUnit | getKilogramForce ()
| Returns by value, unit of force: kilogram-force.
static MeasureUnit * | createKilowattHourPer100Kilometer (UErrorCode &status)
| Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.
static MeasureUnit | getKilowattHourPer100Kilometer ()
| Returns by value, unit of force: kilowatt-hour-per-100-kilometer.
static MeasureUnit * | createNewton (UErrorCode &status)
| Returns by pointer, unit of force: newton.
static MeasureUnit | getNewton ()
| Returns by value, unit of force: newton.
static MeasureUnit * | createPoundForce (UErrorCode &status)
| Returns by pointer, unit of force: pound-force.
static MeasureUnit | getPoundForce ()
| Returns by value, unit of force: pound-force.
static MeasureUnit * | createGigahertz (UErrorCode &status)
| Returns by pointer, unit of frequency: gigahertz.
static MeasureUnit | getGigahertz ()
| Returns by value, unit of frequency: gigahertz.
static MeasureUnit * | createHertz (UErrorCode &status)
| Returns by pointer, unit of frequency: hertz.
static MeasureUnit | getHertz ()
| Returns by value, unit of frequency: hertz.
static MeasureUnit * | createKilohertz (UErrorCode &status)
| Returns by pointer, unit of frequency: kilohertz.
static MeasureUnit | getKilohertz ()
| Returns by value, unit of frequency: kilohertz.
static MeasureUnit * | createMegahertz (UErrorCode &status)
| Returns by pointer, unit of frequency: megahertz.
static MeasureUnit | getMegahertz ()
| Returns by value, unit of frequency: megahertz.
static MeasureUnit * | createDot (UErrorCode &status)
| Returns by pointer, unit of graphics: dot.
static MeasureUnit | getDot ()
| Returns by value, unit of graphics: dot.
static MeasureUnit * | createDotPerCentimeter (UErrorCode &status)
| Returns by pointer, unit of graphics: dot-per-centimeter.
static MeasureUnit | getDotPerCentimeter ()
| Returns by value, unit of graphics: dot-per-centimeter.
static MeasureUnit * | createDotPerInch (UErrorCode &status)
| Returns by pointer, unit of graphics: dot-per-inch.
static MeasureUnit | getDotPerInch ()
| Returns by value, unit of graphics: dot-per-inch.
static MeasureUnit * | createEm (UErrorCode &status)
| Returns by pointer, unit of graphics: em.
static MeasureUnit | getEm ()
| Returns by value, unit of graphics: em.
static MeasureUnit * | createMegapixel (UErrorCode &status)
| Returns by pointer, unit of graphics: megapixel.
static MeasureUnit | getMegapixel ()
| Returns by value, unit of graphics: megapixel.
static MeasureUnit * | createPixel (UErrorCode &status)
| Returns by pointer, unit of graphics: pixel.
static MeasureUnit | getPixel ()
| Returns by value, unit of graphics: pixel.
static MeasureUnit * | createPixelPerCentimeter (UErrorCode &status)
| Returns by pointer, unit of graphics: pixel-per-centimeter.
static MeasureUnit | getPixelPerCentimeter ()
| Returns by value, unit of graphics: pixel-per-centimeter.
static MeasureUnit * | createPixelPerInch (UErrorCode &status)
| Returns by pointer, unit of graphics: pixel-per-inch.
static MeasureUnit | getPixelPerInch ()
| Returns by value, unit of graphics: pixel-per-inch.
static MeasureUnit * | createAstronomicalUnit (UErrorCode &status)
| Returns by pointer, unit of length: astronomical-unit.
static MeasureUnit | getAstronomicalUnit ()
| Returns by value, unit of length: astronomical-unit.
static MeasureUnit * | createCentimeter (UErrorCode &status)
| Returns by pointer, unit of length: centimeter.
static MeasureUnit | getCentimeter ()
| Returns by value, unit of length: centimeter.
static MeasureUnit * | createChain (UErrorCode &status)
| Returns by pointer, unit of length: chain.
static MeasureUnit | getChain ()
| Returns by value, unit of length: chain.
static MeasureUnit * | createDecimeter (UErrorCode &status)
| Returns by pointer, unit of length: decimeter.
static MeasureUnit | getDecimeter ()
| Returns by value, unit of length: decimeter.
static MeasureUnit * | createEarthRadius (UErrorCode &status)
| Returns by pointer, unit of length: earth-radius.
static MeasureUnit | getEarthRadius ()
| Returns by value, unit of length: earth-radius.
static MeasureUnit * | createFathom (UErrorCode &status)
| Returns by pointer, unit of length: fathom.
static MeasureUnit | getFathom ()
| Returns by value, unit of length: fathom.
static MeasureUnit * | createFoot (UErrorCode &status)
| Returns by pointer, unit of length: foot.
static MeasureUnit | getFoot ()
| Returns by value, unit of length: foot.
static MeasureUnit * | createFurlong (UErrorCode &status)
| Returns by pointer, unit of length: furlong.
static MeasureUnit | getFurlong ()
| Returns by value, unit of length: furlong.
static MeasureUnit * | createInch (UErrorCode &status)
| Returns by pointer, unit of length: inch.
static MeasureUnit | getInch ()
| Returns by value, unit of length: inch.
static MeasureUnit * | createJoJp (UErrorCode &status)
| Returns by pointer, unit of length: jo-jp.
static MeasureUnit | getJoJp ()
| Returns by value, unit of length: jo-jp.
static MeasureUnit * | createKen (UErrorCode &status)
| Returns by pointer, unit of length: ken.
static MeasureUnit | getKen ()
| Returns by value, unit of length: ken.
static MeasureUnit * | createKilometer (UErrorCode &status)
| Returns by pointer, unit of length: kilometer.
static MeasureUnit | getKilometer ()
| Returns by value, unit of length: kilometer.
static MeasureUnit * | createLightYear (UErrorCode &status)
| Returns by pointer, unit of length: light-year.
static MeasureUnit | getLightYear ()
| Returns by value, unit of length: light-year.
static MeasureUnit * | createMeter (UErrorCode &status)
| Returns by pointer, unit of length: meter.
static MeasureUnit | getMeter ()
| Returns by value, unit of length: meter.
static MeasureUnit * | createMicrometer (UErrorCode &status)
| Returns by pointer, unit of length: micrometer.
static MeasureUnit | getMicrometer ()
| Returns by value, unit of length: micrometer.
static MeasureUnit * | createMile (UErrorCode &status)
| Returns by pointer, unit of length: mile.
static MeasureUnit | getMile ()
| Returns by value, unit of length: mile.
static MeasureUnit * | createMileScandinavian (UErrorCode &status)
| Returns by pointer, unit of length: mile-scandinavian.
static MeasureUnit | getMileScandinavian ()
| Returns by value, unit of length: mile-scandinavian.
static MeasureUnit * | createMillimeter (UErrorCode &status)
| Returns by pointer, unit of length: millimeter.
static MeasureUnit | getMillimeter ()
| Returns by value, unit of length: millimeter.
static MeasureUnit * | createNanometer (UErrorCode &status)
| Returns by pointer, unit of length: nanometer.
static MeasureUnit | getNanometer ()
| Returns by value, unit of length: nanometer.
static MeasureUnit * | createNauticalMile (UErrorCode &status)
| Returns by pointer, unit of length: nautical-mile.
static MeasureUnit | getNauticalMile ()
| Returns by value, unit of length: nautical-mile.
static MeasureUnit * | createParsec (UErrorCode &status)
| Returns by pointer, unit of length: parsec.
static MeasureUnit | getParsec ()
| Returns by value, unit of length: parsec.
static MeasureUnit * | createPicometer (UErrorCode &status)
| Returns by pointer, unit of length: picometer.
static MeasureUnit | getPicometer ()
| Returns by value, unit of length: picometer.
static MeasureUnit * | createPoint (UErrorCode &status)
| Returns by pointer, unit of length: point.
static MeasureUnit | getPoint ()
| Returns by value, unit of length: point.
static MeasureUnit * | createRiJp (UErrorCode &status)
| Returns by pointer, unit of length: ri-jp.
static MeasureUnit | getRiJp ()
| Returns by value, unit of length: ri-jp.
static MeasureUnit * | createRin (UErrorCode &status)
| Returns by pointer, unit of length: rin.
static MeasureUnit | getRin ()
| Returns by value, unit of length: rin.
static MeasureUnit * | createRod (UErrorCode &status)
| Returns by pointer, unit of length: rod.
static MeasureUnit | getRod ()
| Returns by value, unit of length: rod.
static MeasureUnit * | createShakuCloth (UErrorCode &status)
| Returns by pointer, unit of length: shaku-cloth.
static MeasureUnit | getShakuCloth ()
| Returns by value, unit of length: shaku-cloth.
static MeasureUnit * | createShakuLength (UErrorCode &status)
| Returns by pointer, unit of length: shaku-length.
static MeasureUnit | getShakuLength ()
| Returns by value, unit of length: shaku-length.
static MeasureUnit * | createSolarRadius (UErrorCode &status)
| Returns by pointer, unit of length: solar-radius.
static MeasureUnit | getSolarRadius ()
| Returns by value, unit of length: solar-radius.
static MeasureUnit * | createSun (UErrorCode &status)
| Returns by pointer, unit of length: sun.
static MeasureUnit | getSun ()
| Returns by value, unit of length: sun.
static MeasureUnit * | createYard (UErrorCode &status)
| Returns by pointer, unit of length: yard.
static MeasureUnit | getYard ()
| Returns by value, unit of length: yard.
static MeasureUnit * | createCandela (UErrorCode &status)
| Returns by pointer, unit of light: candela.
static MeasureUnit | getCandela ()
| Returns by value, unit of light: candela.
static MeasureUnit * | createLumen (UErrorCode &status)
| Returns by pointer, unit of light: lumen.
static MeasureUnit | getLumen ()
| Returns by value, unit of light: lumen.
static MeasureUnit * | createLux (UErrorCode &status)
| Returns by pointer, unit of light: lux.
static MeasureUnit | getLux ()
| Returns by value, unit of light: lux.
static MeasureUnit * | createSolarLuminosity (UErrorCode &status)
| Returns by pointer, unit of light: solar-luminosity.
static MeasureUnit | getSolarLuminosity ()
| Returns by value, unit of light: solar-luminosity.
static MeasureUnit * | createTesla (UErrorCode &status)
| Returns by pointer, unit of magnetic: tesla.
static MeasureUnit | getTesla ()
| Returns by value, unit of magnetic: tesla.
static MeasureUnit * | createWeber (UErrorCode &status)
| Returns by pointer, unit of magnetic: weber.
static MeasureUnit | getWeber ()
| Returns by value, unit of magnetic: weber.
static MeasureUnit * | createCarat (UErrorCode &status)
| Returns by pointer, unit of mass: carat.
static MeasureUnit | getCarat ()
| Returns by value, unit of mass: carat.
static MeasureUnit * | createDalton (UErrorCode &status)
| Returns by pointer, unit of mass: dalton.
static MeasureUnit | getDalton ()
| Returns by value, unit of mass: dalton.
static MeasureUnit * | createEarthMass (UErrorCode &status)
| Returns by pointer, unit of mass: earth-mass.
static MeasureUnit | getEarthMass ()
| Returns by value, unit of mass: earth-mass.
static MeasureUnit * | createFun (UErrorCode &status)
| Returns by pointer, unit of mass: fun.
static MeasureUnit | getFun ()
| Returns by value, unit of mass: fun.
static MeasureUnit * | createGrain (UErrorCode &status)
| Returns by pointer, unit of mass: grain.
static MeasureUnit | getGrain ()
| Returns by value, unit of mass: grain.
static MeasureUnit * | createGram (UErrorCode &status)
| Returns by pointer, unit of mass: gram.
static MeasureUnit | getGram ()
| Returns by value, unit of mass: gram.
static MeasureUnit * | createKilogram (UErrorCode &status)
| Returns by pointer, unit of mass: kilogram.
static MeasureUnit | getKilogram ()
| Returns by value, unit of mass: kilogram.
static MeasureUnit * | createMicrogram (UErrorCode &status)
| Returns by pointer, unit of mass: microgram.
static MeasureUnit | getMicrogram ()
| Returns by value, unit of mass: microgram.
static MeasureUnit * | createMilligram (UErrorCode &status)
| Returns by pointer, unit of mass: milligram.
static MeasureUnit | getMilligram ()
| Returns by value, unit of mass: milligram.
static MeasureUnit * | createOunce (UErrorCode &status)
| Returns by pointer, unit of mass: ounce.
static MeasureUnit | getOunce ()
| Returns by value, unit of mass: ounce.
static MeasureUnit * | createOunceTroy (UErrorCode &status)
| Returns by pointer, unit of mass: ounce-troy.
static MeasureUnit | getOunceTroy ()
| Returns by value, unit of mass: ounce-troy.
static MeasureUnit * | createPound (UErrorCode &status)
| Returns by pointer, unit of mass: pound.
static MeasureUnit | getPound ()
| Returns by value, unit of mass: pound.
static MeasureUnit * | createSlug (UErrorCode &status)
| Returns by pointer, unit of mass: slug.
static MeasureUnit | getSlug ()
| Returns by value, unit of mass: slug.
static MeasureUnit * | createSolarMass (UErrorCode &status)
| Returns by pointer, unit of mass: solar-mass.
static MeasureUnit | getSolarMass ()
| Returns by value, unit of mass: solar-mass.
static MeasureUnit * | createStone (UErrorCode &status)
| Returns by pointer, unit of mass: stone.
static MeasureUnit | getStone ()
| Returns by value, unit of mass: stone.
static MeasureUnit * | createTon (UErrorCode &status)
| Returns by pointer, unit of mass: ton.
static MeasureUnit | getTon ()
| Returns by value, unit of mass: ton.
static MeasureUnit * | createTonne (UErrorCode &status)
| Returns by pointer, unit of mass: tonne.
static MeasureUnit | getTonne ()
| Returns by value, unit of mass: tonne.
static MeasureUnit * | createMetricTon (UErrorCode &status)
| Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
static MeasureUnit | getMetricTon ()
| Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
static MeasureUnit * | createGigawatt (UErrorCode &status)
| Returns by pointer, unit of power: gigawatt.
static MeasureUnit | getGigawatt ()
| Returns by value, unit of power: gigawatt.
static MeasureUnit * | createHorsepower (UErrorCode &status)
| Returns by pointer, unit of power: horsepower.
static MeasureUnit | getHorsepower ()
| Returns by value, unit of power: horsepower.
static MeasureUnit * | createKilowatt (UErrorCode &status)
| Returns by pointer, unit of power: kilowatt.
static MeasureUnit | getKilowatt ()
| Returns by value, unit of power: kilowatt.
static MeasureUnit * | createMegawatt (UErrorCode &status)
| Returns by pointer, unit of power: megawatt.
static MeasureUnit | getMegawatt ()
| Returns by value, unit of power: megawatt.
static MeasureUnit * | createMilliwatt (UErrorCode &status)
| Returns by pointer, unit of power: milliwatt.
static MeasureUnit | getMilliwatt ()
| Returns by value, unit of power: milliwatt.
static MeasureUnit * | createWatt (UErrorCode &status)
| Returns by pointer, unit of power: watt.
static MeasureUnit | getWatt ()
| Returns by value, unit of power: watt.
static MeasureUnit * | createAtmosphere (UErrorCode &status)
| Returns by pointer, unit of pressure: atmosphere.
static MeasureUnit | getAtmosphere ()
| Returns by value, unit of pressure: atmosphere.
static MeasureUnit * | createBar (UErrorCode &status)
| Returns by pointer, unit of pressure: bar.
static MeasureUnit | getBar ()
| Returns by value, unit of pressure: bar.
static MeasureUnit * | createGasolineEnergyDensity (UErrorCode &status)
| Returns by pointer, unit of pressure: gasoline-energy-density.
static MeasureUnit | getGasolineEnergyDensity ()
| Returns by value, unit of pressure: gasoline-energy-density.
static MeasureUnit * | createHectopascal (UErrorCode &status)
| Returns by pointer, unit of pressure: hectopascal.
static MeasureUnit | getHectopascal ()
| Returns by value, unit of pressure: hectopascal.
static MeasureUnit * | createInchHg (UErrorCode &status)
| Returns by pointer, unit of pressure: inch-ofhg.
static MeasureUnit | getInchHg ()
| Returns by value, unit of pressure: inch-ofhg.
static MeasureUnit * | createKilopascal (UErrorCode &status)
| Returns by pointer, unit of pressure: kilopascal.
static MeasureUnit | getKilopascal ()
| Returns by value, unit of pressure: kilopascal.
static MeasureUnit * | createMegapascal (UErrorCode &status)
| Returns by pointer, unit of pressure: megapascal.
static MeasureUnit | getMegapascal ()
| Returns by value, unit of pressure: megapascal.
static MeasureUnit * | createMillibar (UErrorCode &status)
| Returns by pointer, unit of pressure: millibar.
static MeasureUnit | getMillibar ()
| Returns by value, unit of pressure: millibar.
static MeasureUnit * | createMillimeterOfMercury (UErrorCode &status)
| Returns by pointer, unit of pressure: millimeter-ofhg.
static MeasureUnit | getMillimeterOfMercury ()
| Returns by value, unit of pressure: millimeter-ofhg.
static MeasureUnit * | createOfhg (UErrorCode &status)
| Returns by pointer, unit of pressure: ofhg.
static MeasureUnit | getOfhg ()
| Returns by value, unit of pressure: ofhg.
static MeasureUnit * | createPascal (UErrorCode &status)
| Returns by pointer, unit of pressure: pascal.
static MeasureUnit | getPascal ()
| Returns by value, unit of pressure: pascal.
static MeasureUnit * | createPoundPerSquareInch (UErrorCode &status)
| Returns by pointer, unit of pressure: pound-force-per-square-inch.
static MeasureUnit | getPoundPerSquareInch ()
| Returns by value, unit of pressure: pound-force-per-square-inch.
static MeasureUnit * | createBeaufort (UErrorCode &status)
| Returns by pointer, unit of speed: beaufort.
static MeasureUnit | getBeaufort ()
| Returns by value, unit of speed: beaufort.
static MeasureUnit * | createKilometerPerHour (UErrorCode &status)
| Returns by pointer, unit of speed: kilometer-per-hour.
static MeasureUnit | getKilometerPerHour ()
| Returns by value, unit of speed: kilometer-per-hour.
static MeasureUnit * | createKnot (UErrorCode &status)
| Returns by pointer, unit of speed: knot.
static MeasureUnit | getKnot ()
| Returns by value, unit of speed: knot.
static MeasureUnit * | createLightSpeed (UErrorCode &status)
| Returns by pointer, unit of speed: light-speed.
static MeasureUnit | getLightSpeed ()
| Returns by value, unit of speed: light-speed.
static MeasureUnit * | createMeterPerSecond (UErrorCode &status)
| Returns by pointer, unit of speed: meter-per-second.
static MeasureUnit | getMeterPerSecond ()
| Returns by value, unit of speed: meter-per-second.
static MeasureUnit * | createMilePerHour (UErrorCode &status)
| Returns by pointer, unit of speed: mile-per-hour.
static MeasureUnit | getMilePerHour ()
| Returns by value, unit of speed: mile-per-hour.
static MeasureUnit * | createCelsius (UErrorCode &status)
| Returns by pointer, unit of temperature: celsius.
static MeasureUnit | getCelsius ()
| Returns by value, unit of temperature: celsius.
static MeasureUnit * | createFahrenheit (UErrorCode &status)
| Returns by pointer, unit of temperature: fahrenheit.
static MeasureUnit | getFahrenheit ()
| Returns by value, unit of temperature: fahrenheit.
static MeasureUnit * | createGenericTemperature (UErrorCode &status)
| Returns by pointer, unit of temperature: generic.
static MeasureUnit | getGenericTemperature ()
| Returns by value, unit of temperature: generic.
static MeasureUnit * | createKelvin (UErrorCode &status)
| Returns by pointer, unit of temperature: kelvin.
static MeasureUnit | getKelvin ()
| Returns by value, unit of temperature: kelvin.
static MeasureUnit * | createRankine (UErrorCode &status)
| Returns by pointer, unit of temperature: rankine.
static MeasureUnit | getRankine ()
| Returns by value, unit of temperature: rankine.
static MeasureUnit * | createNewtonMeter (UErrorCode &status)
| Returns by pointer, unit of torque: newton-meter.
static MeasureUnit | getNewtonMeter ()
| Returns by value, unit of torque: newton-meter.
static MeasureUnit * | createPoundFoot (UErrorCode &status)
| Returns by pointer, unit of torque: pound-force-foot.
static MeasureUnit | getPoundFoot ()
| Returns by value, unit of torque: pound-force-foot.
static MeasureUnit * | createAcreFoot (UErrorCode &status)
| Returns by pointer, unit of volume: acre-foot.
static MeasureUnit | getAcreFoot ()
| Returns by value, unit of volume: acre-foot.
static MeasureUnit * | createBarrel (UErrorCode &status)
| Returns by pointer, unit of volume: barrel.
static MeasureUnit | getBarrel ()
| Returns by value, unit of volume: barrel.
static MeasureUnit * | createBushel (UErrorCode &status)
| Returns by pointer, unit of volume: bushel.
static MeasureUnit | getBushel ()
| Returns by value, unit of volume: bushel.
static MeasureUnit * | createCentiliter (UErrorCode &status)
| Returns by pointer, unit of volume: centiliter.
static MeasureUnit | getCentiliter ()
| Returns by value, unit of volume: centiliter.
static MeasureUnit * | createCubicCentimeter (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-centimeter.
static MeasureUnit | getCubicCentimeter ()
| Returns by value, unit of volume: cubic-centimeter.
static MeasureUnit * | createCubicFoot (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-foot.
static MeasureUnit | getCubicFoot ()
| Returns by value, unit of volume: cubic-foot.
static MeasureUnit * | createCubicInch (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-inch.
static MeasureUnit | getCubicInch ()
| Returns by value, unit of volume: cubic-inch.
static MeasureUnit * | createCubicKilometer (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-kilometer.
static MeasureUnit | getCubicKilometer ()
| Returns by value, unit of volume: cubic-kilometer.
static MeasureUnit * | createCubicMeter (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-meter.
static MeasureUnit | getCubicMeter ()
| Returns by value, unit of volume: cubic-meter.
static MeasureUnit * | createCubicMile (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-mile.
static MeasureUnit | getCubicMile ()
| Returns by value, unit of volume: cubic-mile.
static MeasureUnit * | createCubicYard (UErrorCode &status)
| Returns by pointer, unit of volume: cubic-yard.
static MeasureUnit | getCubicYard ()
| Returns by value, unit of volume: cubic-yard.
static MeasureUnit * | createCup (UErrorCode &status)
| Returns by pointer, unit of volume: cup.
static MeasureUnit | getCup ()
| Returns by value, unit of volume: cup.
static MeasureUnit * | createCupImperial (UErrorCode &status)
| Returns by pointer, unit of volume: cup-imperial.
static MeasureUnit | getCupImperial ()
| Returns by value, unit of volume: cup-imperial.
static MeasureUnit * | createCupJp (UErrorCode &status)
| Returns by pointer, unit of volume: cup-jp.
static MeasureUnit | getCupJp ()
| Returns by value, unit of volume: cup-jp.
static MeasureUnit * | createCupMetric (UErrorCode &status)
| Returns by pointer, unit of volume: cup-metric.
static MeasureUnit | getCupMetric ()
| Returns by value, unit of volume: cup-metric.
static MeasureUnit * | createDeciliter (UErrorCode &status)
| Returns by pointer, unit of volume: deciliter.
static MeasureUnit | getDeciliter ()
| Returns by value, unit of volume: deciliter.
static MeasureUnit * | createDessertSpoon (UErrorCode &status)
| Returns by pointer, unit of volume: dessert-spoon.
static MeasureUnit | getDessertSpoon ()
| Returns by value, unit of volume: dessert-spoon.
static MeasureUnit * | createDessertSpoonImperial (UErrorCode &status)
| Returns by pointer, unit of volume: dessert-spoon-imperial.
static MeasureUnit | getDessertSpoonImperial ()
| Returns by value, unit of volume: dessert-spoon-imperial.
static MeasureUnit * | createDram (UErrorCode &status)
| Returns by pointer, unit of volume: dram.
static MeasureUnit | getDram ()
| Returns by value, unit of volume: dram.
static MeasureUnit * | createDrop (UErrorCode &status)
| Returns by pointer, unit of volume: drop.
static MeasureUnit | getDrop ()
| Returns by value, unit of volume: drop.
static MeasureUnit * | createFluidOunce (UErrorCode &status)
| Returns by pointer, unit of volume: fluid-ounce.
static MeasureUnit | getFluidOunce ()
| Returns by value, unit of volume: fluid-ounce.
static MeasureUnit * | createFluidOunceImperial (UErrorCode &status)
| Returns by pointer, unit of volume: fluid-ounce-imperial.
static MeasureUnit | getFluidOunceImperial ()
| Returns by value, unit of volume: fluid-ounce-imperial.
static MeasureUnit * | createFluidOunceMetric (UErrorCode &status)
| Returns by pointer, unit of volume: fluid-ounce-metric.
static MeasureUnit | getFluidOunceMetric ()
| Returns by value, unit of volume: fluid-ounce-metric.
static MeasureUnit * | createGallon (UErrorCode &status)
| Returns by pointer, unit of volume: gallon.
static MeasureUnit | getGallon ()
| Returns by value, unit of volume: gallon.
static MeasureUnit * | createGallonImperial (UErrorCode &status)
| Returns by pointer, unit of volume: gallon-imperial.
static MeasureUnit | getGallonImperial ()
| Returns by value, unit of volume: gallon-imperial.
static MeasureUnit * | createHectoliter (UErrorCode &status)
| Returns by pointer, unit of volume: hectoliter.
static MeasureUnit | getHectoliter ()
| Returns by value, unit of volume: hectoliter.
static MeasureUnit * | createJigger (UErrorCode &status)
| Returns by pointer, unit of volume: jigger.
static MeasureUnit | getJigger ()
| Returns by value, unit of volume: jigger.
static MeasureUnit * | createKoku (UErrorCode &status)
| Returns by pointer, unit of volume: koku.
static MeasureUnit | getKoku ()
| Returns by value, unit of volume: koku.
static MeasureUnit * | createKosaji (UErrorCode &status)
| Returns by pointer, unit of volume: kosaji.
static MeasureUnit | getKosaji ()
| Returns by value, unit of volume: kosaji.
static MeasureUnit * | createLiter (UErrorCode &status)
| Returns by pointer, unit of volume: liter.
static MeasureUnit | getLiter ()
| Returns by value, unit of volume: liter.
static MeasureUnit * | createMegaliter (UErrorCode &status)
| Returns by pointer, unit of volume: megaliter.
static MeasureUnit | getMegaliter ()
| Returns by value, unit of volume: megaliter.
static MeasureUnit * | createMilliliter (UErrorCode &status)
| Returns by pointer, unit of volume: milliliter.
static MeasureUnit | getMilliliter ()
| Returns by value, unit of volume: milliliter.
static MeasureUnit * | createOsaji (UErrorCode &status)
| Returns by pointer, unit of volume: osaji.
static MeasureUnit | getOsaji ()
| Returns by value, unit of volume: osaji.
static MeasureUnit * | createPinch (UErrorCode &status)
| Returns by pointer, unit of volume: pinch.
static MeasureUnit | getPinch ()
| Returns by value, unit of volume: pinch.
static MeasureUnit * | createPint (UErrorCode &status)
| Returns by pointer, unit of volume: pint.
static MeasureUnit | getPint ()
| Returns by value, unit of volume: pint.
static MeasureUnit * | createPintImperial (UErrorCode &status)
| Returns by pointer, unit of volume: pint-imperial.
static MeasureUnit | getPintImperial ()
| Returns by value, unit of volume: pint-imperial.
static MeasureUnit * | createPintMetric (UErrorCode &status)
| Returns by pointer, unit of volume: pint-metric.
static MeasureUnit | getPintMetric ()
| Returns by value, unit of volume: pint-metric.
static MeasureUnit * | createQuart (UErrorCode &status)
| Returns by pointer, unit of volume: quart.
static MeasureUnit | getQuart ()
| Returns by value, unit of volume: quart.
static MeasureUnit * | createQuartImperial (UErrorCode &status)
| Returns by pointer, unit of volume: quart-imperial.
static MeasureUnit | getQuartImperial ()
| Returns by value, unit of volume: quart-imperial.
static MeasureUnit * | createSai (UErrorCode &status)
| Returns by pointer, unit of volume: sai.
static MeasureUnit | getSai ()
| Returns by value, unit of volume: sai.
static MeasureUnit * | createShaku (UErrorCode &status)
| Returns by pointer, unit of volume: shaku.
static MeasureUnit | getShaku ()
| Returns by value, unit of volume: shaku.
static MeasureUnit * | createTablespoon (UErrorCode &status)
| Returns by pointer, unit of volume: tablespoon.
static MeasureUnit | getTablespoon ()
| Returns by value, unit of volume: tablespoon.
static MeasureUnit * | createTeaspoon (UErrorCode &status)
| Returns by pointer, unit of volume: teaspoon.
static MeasureUnit | getTeaspoon ()
| Returns by value, unit of volume: teaspoon.
static MeasureUnit * | createToJp (UErrorCode &status)
| Returns by pointer, unit of volume: to-jp.
static MeasureUnit | getToJp ()
| Returns by value, unit of volume: to-jp.

## Additional Inherited Members

Protected Member Functions inherited from icu::MeasureUnit
void | initTime (const char *timeId)
| For ICU use only.
void | initCurrency (StringPiece isoCurrency)
| For ICU use only.

## Detailed Description

A unit of currency, such as USD (U.S.

dollars) or JPY (Japanese yen). This class is a thin wrapper over a char16_t string that subclasses MeasureUnit, for use with Measure and MeasureFormat.

Author
  Alan Liu

Stable
  ICU 3.0

Definition at line 39 of file currunit.h.

## Constructor & Destructor Documentation

## CurrencyUnit() [1/5]

icu::CurrencyUnit::CurrencyUnit | ( |  | ) |

Default constructor.

Initializes currency code to "XXX" (no currency).

Stable
  ICU 60

Referenced by clone(), CurrencyUnit(), and operator=().

## CurrencyUnit() [2/5]

icu::CurrencyUnit::CurrencyUnit | ( | ConstChar16Ptr | isoCode,
|  | UErrorCode & | ec )

Construct an object with the given ISO currency code.

Parameters

  isoCode | the 3-letter ISO 4217 currency code; must have length 3 and need not be NUL-terminated. If nullptr, the currency is initialized to the unknown currency XXX.
  ec | input-output error code. If the isoCode is invalid, then this will be set to a failing value.

Stable
  ICU 3.0

## CurrencyUnit() [3/5]

icu::CurrencyUnit::CurrencyUnit | ( | StringPiece | isoCode,
|  | UErrorCode & | ec )

Construct an object with the given ISO currency code.

Parameters

  isoCode | the 3-letter ISO 4217 currency code; must have length 3. If invalid, the currency is initialized to XXX.
  ec | input-output error code. If the isoCode is invalid, then this will be set to a failing value.

Stable
  ICU 64

## CurrencyUnit() [4/5]

icu::CurrencyUnit::CurrencyUnit | ( | const CurrencyUnit & | other | ) |

Copy constructor.

Stable
  ICU 3.0

References CurrencyUnit().

## CurrencyUnit() [5/5]

icu::CurrencyUnit::CurrencyUnit | ( | const MeasureUnit & | measureUnit,
|  | UErrorCode & | ec )

Copy constructor from MeasureUnit.

This constructor allows you to restore a CurrencyUnit that was sliced to MeasureUnit.

Parameters

  measureUnit | The MeasureUnit to copy from.
  ec | Set to a failing value if the MeasureUnit is not a currency.

Stable
  ICU 60

References icu::MeasureUnit::MeasureUnit().

## ~CurrencyUnit()

virtual icu::CurrencyUnit::~CurrencyUnit | ( |  | ) |

virtual

Destructor.

Stable
  ICU 3.0

## Member Function Documentation

## clone()

virtual CurrencyUnit * icu::CurrencyUnit::clone | ( |  | ) | const

override virtual

Return a polymorphic clone of this object.

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

Stable
  ICU 3.0

Reimplemented from icu::MeasureUnit.

References CurrencyUnit().

## getDynamicClassID()

virtual UClassID icu::CurrencyUnit::getDynamicClassID | ( |  | ) | const

override virtual

Returns a unique class ID for this object POLYMORPHICALLY.

This method implements a simple form of RTTI used by ICU.

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 3.0

Reimplemented from icu::MeasureUnit.

## getISOCurrency()

const char16_t * icu::CurrencyUnit::getISOCurrency | ( |  | ) | const

inline

Return the ISO currency code of this object.

Stable
  ICU 3.0

Definition at line 136 of file currunit.h.

References getISOCurrency().

Referenced by getISOCurrency(), and getStaticClassID().

## getStaticClassID()

UClassID icu::CurrencyUnit::getStaticClassID | ( |  | ) |

static

Returns the class ID for this class.

This is used to compare to the return value of getDynamicClassID().

Returns
  The class ID for all objects of this class.

Stable
  ICU 3.0

References getISOCurrency().

## operator=()

CurrencyUnit & icu::CurrencyUnit::operator= | ( | const CurrencyUnit & | other | ) |

Assignment operator.

Stable
  ICU 3.0

References CurrencyUnit().

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

- i18n/unicode/currunit.h