ICU 67.1  67.1
Public Member Functions | Static Public Member Functions
icu::NoUnit Class Reference

Dimensionless unit for percent and permille. More...

#include <nounit.h>

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

Public Member Functions

 NoUnit (const NoUnit &other)
 Copy operator. More...
 
virtual ~NoUnit ()
 Destructor. More...
 
virtual NoUnit * clone () const
 Return a polymorphic clone of this object. More...
 
virtual UClassID getDynamicClassID () const
 Returns a unique class ID for this object POLYMORPHICALLY. More...
 
- Public Member Functions inherited from icu::MeasureUnit
 MeasureUnit ()
 Default constructor. More...
 
 MeasureUnit (const MeasureUnit &other)
 Copy constructor. More...
 
 MeasureUnit (MeasureUnit &&other) noexcept
 Move constructor. More...
 
MeasureUnit & operator= (const MeasureUnit &other)
 Copy assignment operator. More...
 
MeasureUnit & operator= (MeasureUnit &&other) noexcept
 Move assignment operator. More...
 
virtual ~MeasureUnit ()
 Destructor. More...
 
virtual UBool operator== (const UObject &other) const
 Equality operator. More...
 
UBool operator!= (const UObject &other) const
 Inequality operator. More...
 
const char * getType () const
 Get the type. More...
 
const char * getSubtype () const
 Get the sub type. More...
 
const char * getIdentifier () const
 Get the CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35. More...
 
UMeasureUnitComplexity getComplexity (UErrorCode &status) const
 Compute the complexity of the unit. More...
 
MeasureUnit withSIPrefix (UMeasureSIPrefix prefix, UErrorCode &status) const
 Creates a MeasureUnit which is this SINGLE unit augmented with the specified SI prefix. More...
 
UMeasureSIPrefix getSIPrefix (UErrorCode &status) const
 Gets the current SI prefix of this SINGLE unit. More...
 
MeasureUnit withDimensionality (int32_t dimensionality, UErrorCode &status) const
 Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power). More...
 
int32_t getDimensionality (UErrorCode &status) const
 Gets the dimensionality (power) of this MeasureUnit. More...
 
MeasureUnit reciprocal (UErrorCode &status) const
 Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped. More...
 
MeasureUnit product (const MeasureUnit &other, UErrorCode &status) const
 Gets the product of this unit with another unit. More...
 
LocalArray< MeasureUnit > splitToSingleUnits (int32_t &outCount, UErrorCode &status) const
 Gets the list of SINGLE units contained within a MIXED of COMPOUND unit. More...
 
int32_t getIndex () const
 ICU use only. More...
 
- Public Member Functions inherited from icu::UObject
virtual ~UObject ()
 Destructor. More...
 

Static Public Member Functions

static NoUnit base ()
 Returns an instance for the base unit (dimensionless and no scaling). More...
 
static NoUnit percent ()
 Returns an instance for percent, or 1/100 of a base unit. More...
 
static NoUnit permille ()
 Returns an instance for permille, or 1/1000 of a base unit. More...
 
static UClassID getStaticClassID ()
 Returns the class ID for this class. More...
 
- Static Public Member Functions inherited from icu::MeasureUnit
static MeasureUnit forIdentifier (StringPiece identifier, UErrorCode &status)
 Construct a MeasureUnit from a CLDR Unit Identifier, defined in UTS 35. More...
 
static int32_t getAvailable (MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
 getAvailable gets all of the available units. More...
 
static int32_t getAvailable (const char *type, MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
 getAvailable gets all of the available units for a specific type. More...
 
static StringEnumeration * getAvailableTypes (UErrorCode &errorCode)
 getAvailableTypes gets all of the available types. More...
 
static UClassID getStaticClassID (void)
 Return the class ID for this class. More...
 
static int32_t getIndexCount ()
 ICU use only. More...
 
static int32_t internalGetIndexForTypeAndSubtype (const char *type, const char *subtype)
 ICU use only. More...
 
static MeasureUnit resolveUnitPerUnit (const MeasureUnit &unit, const MeasureUnit &perUnit, bool *isResolved)
 ICU use only. More...
 
static MeasureUnit * createGForce (UErrorCode &status)
 Returns by pointer, unit of acceleration: g-force. More...
 
static MeasureUnit getGForce ()
 Returns by value, unit of acceleration: g-force. More...
 
static MeasureUnit * createMeterPerSecondSquared (UErrorCode &status)
 Returns by pointer, unit of acceleration: meter-per-square-second. More...
 
static MeasureUnit getMeterPerSecondSquared ()
 Returns by value, unit of acceleration: meter-per-square-second. More...
 
static MeasureUnit * createArcMinute (UErrorCode &status)
 Returns by pointer, unit of angle: arc-minute. More...
 
static MeasureUnit getArcMinute ()
 Returns by value, unit of angle: arc-minute. More...
 
static MeasureUnit * createArcSecond (UErrorCode &status)
 Returns by pointer, unit of angle: arc-second. More...
 
static MeasureUnit getArcSecond ()
 Returns by value, unit of angle: arc-second. More...
 
static MeasureUnit * createDegree (UErrorCode &status)
 Returns by pointer, unit of angle: degree. More...
 
static MeasureUnit getDegree ()
 Returns by value, unit of angle: degree. More...
 
static MeasureUnit * createRadian (UErrorCode &status)
 Returns by pointer, unit of angle: radian. More...
 
static MeasureUnit getRadian ()
 Returns by value, unit of angle: radian. More...
 
static MeasureUnit * createRevolutionAngle (UErrorCode &status)
 Returns by pointer, unit of angle: revolution. More...
 
static MeasureUnit getRevolutionAngle ()
 Returns by value, unit of angle: revolution. More...
 
static MeasureUnit * createAcre (UErrorCode &status)
 Returns by pointer, unit of area: acre. More...
 
static MeasureUnit getAcre ()
 Returns by value, unit of area: acre. More...
 
static MeasureUnit * createDunam (UErrorCode &status)
 Returns by pointer, unit of area: dunam. More...
 
static MeasureUnit getDunam ()
 Returns by value, unit of area: dunam. More...
 
static MeasureUnit * createHectare (UErrorCode &status)
 Returns by pointer, unit of area: hectare. More...
 
static MeasureUnit getHectare ()
 Returns by value, unit of area: hectare. More...
 
static MeasureUnit * createSquareCentimeter (UErrorCode &status)
 Returns by pointer, unit of area: square-centimeter. More...
 
static MeasureUnit getSquareCentimeter ()
 Returns by value, unit of area: square-centimeter. More...
 
static MeasureUnit * createSquareFoot (UErrorCode &status)
 Returns by pointer, unit of area: square-foot. More...
 
static MeasureUnit getSquareFoot ()
 Returns by value, unit of area: square-foot. More...
 
static MeasureUnit * createSquareInch (UErrorCode &status)
 Returns by pointer, unit of area: square-inch. More...
 
static MeasureUnit getSquareInch ()
 Returns by value, unit of area: square-inch. More...
 
static MeasureUnit * createSquareKilometer (UErrorCode &status)
 Returns by pointer, unit of area: square-kilometer. More...
 
static MeasureUnit getSquareKilometer ()
 Returns by value, unit of area: square-kilometer. More...
 
static MeasureUnit * createSquareMeter (UErrorCode &status)
 Returns by pointer, unit of area: square-meter. More...
 
static MeasureUnit getSquareMeter ()
 Returns by value, unit of area: square-meter. More...
 
static MeasureUnit * createSquareMile (UErrorCode &status)
 Returns by pointer, unit of area: square-mile. More...
 
static MeasureUnit getSquareMile ()
 Returns by value, unit of area: square-mile. More...
 
static MeasureUnit * createSquareYard (UErrorCode &status)
 Returns by pointer, unit of area: square-yard. More...
 
static MeasureUnit getSquareYard ()
 Returns by value, unit of area: square-yard. More...
 
static MeasureUnit * createKarat (UErrorCode &status)
 Returns by pointer, unit of concentr: karat. More...
 
static MeasureUnit getKarat ()
 Returns by value, unit of concentr: karat. More...
 
static MeasureUnit * createMilligramPerDeciliter (UErrorCode &status)
 Returns by pointer, unit of concentr: milligram-per-deciliter. More...
 
static MeasureUnit getMilligramPerDeciliter ()
 Returns by value, unit of concentr: milligram-per-deciliter. More...
 
static MeasureUnit * createMillimolePerLiter (UErrorCode &status)
 Returns by pointer, unit of concentr: millimole-per-liter. More...
 
static MeasureUnit getMillimolePerLiter ()
 Returns by value, unit of concentr: millimole-per-liter. More...
 
static MeasureUnit * createMole (UErrorCode &status)
 Returns by pointer, unit of concentr: mole. More...
 
static MeasureUnit getMole ()
 Returns by value, unit of concentr: mole. More...
 
static MeasureUnit * createPartPerMillion (UErrorCode &status)
 Returns by pointer, unit of concentr: permillion. More...
 
static MeasureUnit getPartPerMillion ()
 Returns by value, unit of concentr: permillion. More...
 
static MeasureUnit * createPercent (UErrorCode &status)
 Returns by pointer, unit of concentr: percent. More...
 
static MeasureUnit getPercent ()
 Returns by value, unit of concentr: percent. More...
 
static MeasureUnit * createPermille (UErrorCode &status)
 Returns by pointer, unit of concentr: permille. More...
 
static MeasureUnit getPermille ()
 Returns by value, unit of concentr: permille. More...
 
static MeasureUnit * createPermyriad (UErrorCode &status)
 Returns by pointer, unit of concentr: permyriad. More...
 
static MeasureUnit getPermyriad ()
 Returns by value, unit of concentr: permyriad. More...
 
static MeasureUnit * createLiterPer100Kilometers (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-100-kilometer. More...
 
static MeasureUnit getLiterPer100Kilometers ()
 Returns by value, unit of consumption: liter-per-100-kilometer. More...
 
static MeasureUnit * createLiterPerKilometer (UErrorCode &status)
 Returns by pointer, unit of consumption: liter-per-kilometer. More...
 
static MeasureUnit getLiterPerKilometer ()
 Returns by value, unit of consumption: liter-per-kilometer. More...
 
static MeasureUnit * createMilePerGallon (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon. More...
 
static MeasureUnit getMilePerGallon ()
 Returns by value, unit of consumption: mile-per-gallon. More...
 
static MeasureUnit * createMilePerGallonImperial (UErrorCode &status)
 Returns by pointer, unit of consumption: mile-per-gallon-imperial. More...
 
static MeasureUnit getMilePerGallonImperial ()
 Returns by value, unit of consumption: mile-per-gallon-imperial. More...
 
static MeasureUnit * createBit (UErrorCode &status)
 Returns by pointer, unit of digital: bit. More...
 
static MeasureUnit getBit ()
 Returns by value, unit of digital: bit. More...
 
static MeasureUnit * createByte (UErrorCode &status)
 Returns by pointer, unit of digital: byte. More...
 
static MeasureUnit getByte ()
 Returns by value, unit of digital: byte. More...
 
static MeasureUnit * createGigabit (UErrorCode &status)
 Returns by pointer, unit of digital: gigabit. More...
 
static MeasureUnit getGigabit ()
 Returns by value, unit of digital: gigabit. More...
 
static MeasureUnit * createGigabyte (UErrorCode &status)
 Returns by pointer, unit of digital: gigabyte. More...
 
static MeasureUnit getGigabyte ()
 Returns by value, unit of digital: gigabyte. More...
 
static MeasureUnit * createKilobit (UErrorCode &status)
 Returns by pointer, unit of digital: kilobit. More...
 
static MeasureUnit getKilobit ()
 Returns by value, unit of digital: kilobit. More...
 
static MeasureUnit * createKilobyte (UErrorCode &status)
 Returns by pointer, unit of digital: kilobyte. More...
 
static MeasureUnit getKilobyte ()
 Returns by value, unit of digital: kilobyte. More...
 
static MeasureUnit * createMegabit (UErrorCode &status)
 Returns by pointer, unit of digital: megabit. More...
 
static MeasureUnit getMegabit ()
 Returns by value, unit of digital: megabit. More...
 
static MeasureUnit * createMegabyte (UErrorCode &status)
 Returns by pointer, unit of digital: megabyte. More...
 
static MeasureUnit getMegabyte ()
 Returns by value, unit of digital: megabyte. More...
 
static MeasureUnit * createPetabyte (UErrorCode &status)
 Returns by pointer, unit of digital: petabyte. More...
 
static MeasureUnit getPetabyte ()
 Returns by value, unit of digital: petabyte. More...
 
static MeasureUnit * createTerabit (UErrorCode &status)
 Returns by pointer, unit of digital: terabit. More...
 
static MeasureUnit getTerabit ()
 Returns by value, unit of digital: terabit. More...
 
static MeasureUnit * createTerabyte (UErrorCode &status)
 Returns by pointer, unit of digital: terabyte. More...
 
static MeasureUnit getTerabyte ()
 Returns by value, unit of digital: terabyte. More...
 
static MeasureUnit * createCentury (UErrorCode &status)
 Returns by pointer, unit of duration: century. More...
 
static MeasureUnit getCentury ()
 Returns by value, unit of duration: century. More...
 
static MeasureUnit * createDay (UErrorCode &status)
 Returns by pointer, unit of duration: day. More...
 
static MeasureUnit getDay ()
 Returns by value, unit of duration: day. More...
 
static MeasureUnit * createDayPerson (UErrorCode &status)
 Returns by pointer, unit of duration: day-person. More...
 
static MeasureUnit getDayPerson ()
 Returns by value, unit of duration: day-person. More...
 
static MeasureUnit * createDecade (UErrorCode &status)
 Returns by pointer, unit of duration: decade. More...
 
static MeasureUnit getDecade ()
 Returns by value, unit of duration: decade. More...
 
static MeasureUnit * createHour (UErrorCode &status)
 Returns by pointer, unit of duration: hour. More...
 
static MeasureUnit getHour ()
 Returns by value, unit of duration: hour. More...
 
static MeasureUnit * createMicrosecond (UErrorCode &status)
 Returns by pointer, unit of duration: microsecond. More...
 
static MeasureUnit getMicrosecond ()
 Returns by value, unit of duration: microsecond. More...
 
static MeasureUnit * createMillisecond (UErrorCode &status)
 Returns by pointer, unit of duration: millisecond. More...
 
static MeasureUnit getMillisecond ()
 Returns by value, unit of duration: millisecond. More...
 
static MeasureUnit * createMinute (UErrorCode &status)
 Returns by pointer, unit of duration: minute. More...
 
static MeasureUnit getMinute ()
 Returns by value, unit of duration: minute. More...
 
static MeasureUnit * createMonth (UErrorCode &status)
 Returns by pointer, unit of duration: month. More...
 
static MeasureUnit getMonth ()
 Returns by value, unit of duration: month. More...
 
static MeasureUnit * createMonthPerson (UErrorCode &status)
 Returns by pointer, unit of duration: month-person. More...
 
static MeasureUnit getMonthPerson ()
 Returns by value, unit of duration: month-person. More...
 
static MeasureUnit * createNanosecond (UErrorCode &status)
 Returns by pointer, unit of duration: nanosecond. More...
 
static MeasureUnit getNanosecond ()
 Returns by value, unit of duration: nanosecond. More...
 
static MeasureUnit * createSecond (UErrorCode &status)
 Returns by pointer, unit of duration: second. More...
 
static MeasureUnit getSecond ()
 Returns by value, unit of duration: second. More...
 
static MeasureUnit * createWeek (UErrorCode &status)
 Returns by pointer, unit of duration: week. More...
 
static MeasureUnit getWeek ()
 Returns by value, unit of duration: week. More...
 
static MeasureUnit * createWeekPerson (UErrorCode &status)
 Returns by pointer, unit of duration: week-person. More...
 
static MeasureUnit getWeekPerson ()
 Returns by value, unit of duration: week-person. More...
 
static MeasureUnit * createYear (UErrorCode &status)
 Returns by pointer, unit of duration: year. More...
 
static MeasureUnit getYear ()
 Returns by value, unit of duration: year. More...
 
static MeasureUnit * createYearPerson (UErrorCode &status)
 Returns by pointer, unit of duration: year-person. More...
 
static MeasureUnit getYearPerson ()
 Returns by value, unit of duration: year-person. More...
 
static MeasureUnit * createAmpere (UErrorCode &status)
 Returns by pointer, unit of electric: ampere. More...
 
static MeasureUnit getAmpere ()
 Returns by value, unit of electric: ampere. More...
 
static MeasureUnit * createMilliampere (UErrorCode &status)
 Returns by pointer, unit of electric: milliampere. More...
 
static MeasureUnit getMilliampere ()
 Returns by value, unit of electric: milliampere. More...
 
static MeasureUnit * createOhm (UErrorCode &status)
 Returns by pointer, unit of electric: ohm. More...
 
static MeasureUnit getOhm ()
 Returns by value, unit of electric: ohm. More...
 
static MeasureUnit * createVolt (UErrorCode &status)
 Returns by pointer, unit of electric: volt. More...
 
static MeasureUnit getVolt ()
 Returns by value, unit of electric: volt. More...
 
static MeasureUnit * createBritishThermalUnit (UErrorCode &status)
 Returns by pointer, unit of energy: british-thermal-unit. More...
 
static MeasureUnit getBritishThermalUnit ()
 Returns by value, unit of energy: british-thermal-unit. More...
 
static MeasureUnit * createCalorie (UErrorCode &status)
 Returns by pointer, unit of energy: calorie. More...
 
static MeasureUnit getCalorie ()
 Returns by value, unit of energy: calorie. More...
 
static MeasureUnit * createElectronvolt (UErrorCode &status)
 Returns by pointer, unit of energy: electronvolt. More...
 
static MeasureUnit getElectronvolt ()
 Returns by value, unit of energy: electronvolt. More...
 
static MeasureUnit * createFoodcalorie (UErrorCode &status)
 Returns by pointer, unit of energy: foodcalorie. More...
 
static MeasureUnit getFoodcalorie ()
 Returns by value, unit of energy: foodcalorie. More...
 
static MeasureUnit * createJoule (UErrorCode &status)
 Returns by pointer, unit of energy: joule. More...
 
static MeasureUnit getJoule ()
 Returns by value, unit of energy: joule. More...
 
static MeasureUnit * createKilocalorie (UErrorCode &status)
 Returns by pointer, unit of energy: kilocalorie. More...
 
static MeasureUnit getKilocalorie ()
 Returns by value, unit of energy: kilocalorie. More...
 
static MeasureUnit * createKilojoule (UErrorCode &status)
 Returns by pointer, unit of energy: kilojoule. More...
 
static MeasureUnit getKilojoule ()
 Returns by value, unit of energy: kilojoule. More...
 
static MeasureUnit * createKilowattHour (UErrorCode &status)
 Returns by pointer, unit of energy: kilowatt-hour. More...
 
static MeasureUnit getKilowattHour ()
 Returns by value, unit of energy: kilowatt-hour. More...
 
static MeasureUnit * createThermUs (UErrorCode &status)
 Returns by pointer, unit of energy: therm-us. More...
 
static MeasureUnit getThermUs ()
 Returns by value, unit of energy: therm-us. More...
 
static MeasureUnit * createNewton (UErrorCode &status)
 Returns by pointer, unit of force: newton. More...
 
static MeasureUnit getNewton ()
 Returns by value, unit of force: newton. More...
 
static MeasureUnit * createPoundForce (UErrorCode &status)
 Returns by pointer, unit of force: pound-force. More...
 
static MeasureUnit getPoundForce ()
 Returns by value, unit of force: pound-force. More...
 
static MeasureUnit * createGigahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: gigahertz. More...
 
static MeasureUnit getGigahertz ()
 Returns by value, unit of frequency: gigahertz. More...
 
static MeasureUnit * createHertz (UErrorCode &status)
 Returns by pointer, unit of frequency: hertz. More...
 
static MeasureUnit getHertz ()
 Returns by value, unit of frequency: hertz. More...
 
static MeasureUnit * createKilohertz (UErrorCode &status)
 Returns by pointer, unit of frequency: kilohertz. More...
 
static MeasureUnit getKilohertz ()
 Returns by value, unit of frequency: kilohertz. More...
 
static MeasureUnit * createMegahertz (UErrorCode &status)
 Returns by pointer, unit of frequency: megahertz. More...
 
static MeasureUnit getMegahertz ()
 Returns by value, unit of frequency: megahertz. More...
 
static MeasureUnit * createDotPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-centimeter. More...
 
static MeasureUnit getDotPerCentimeter ()
 Returns by value, unit of graphics: dot-per-centimeter. More...
 
static MeasureUnit * createDotPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: dot-per-inch. More...
 
static MeasureUnit getDotPerInch ()
 Returns by value, unit of graphics: dot-per-inch. More...
 
static MeasureUnit * createEm (UErrorCode &status)
 Returns by pointer, unit of graphics: em. More...
 
static MeasureUnit getEm ()
 Returns by value, unit of graphics: em. More...
 
static MeasureUnit * createMegapixel (UErrorCode &status)
 Returns by pointer, unit of graphics: megapixel. More...
 
static MeasureUnit getMegapixel ()
 Returns by value, unit of graphics: megapixel. More...
 
static MeasureUnit * createPixel (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel. More...
 
static MeasureUnit getPixel ()
 Returns by value, unit of graphics: pixel. More...
 
static MeasureUnit * createPixelPerCentimeter (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-centimeter. More...
 
static MeasureUnit getPixelPerCentimeter ()
 Returns by value, unit of graphics: pixel-per-centimeter. More...
 
static MeasureUnit * createPixelPerInch (UErrorCode &status)
 Returns by pointer, unit of graphics: pixel-per-inch. More...
 
static MeasureUnit getPixelPerInch ()
 Returns by value, unit of graphics: pixel-per-inch. More...
 
static MeasureUnit * createAstronomicalUnit (UErrorCode &status)
 Returns by pointer, unit of length: astronomical-unit. More...
 
static MeasureUnit getAstronomicalUnit ()
 Returns by value, unit of length: astronomical-unit. More...
 
static MeasureUnit * createCentimeter (UErrorCode &status)
 Returns by pointer, unit of length: centimeter. More...
 
static MeasureUnit getCentimeter ()
 Returns by value, unit of length: centimeter. More...
 
static MeasureUnit * createDecimeter (UErrorCode &status)
 Returns by pointer, unit of length: decimeter. More...
 
static MeasureUnit getDecimeter ()
 Returns by value, unit of length: decimeter. More...
 
static MeasureUnit * createFathom (UErrorCode &status)
 Returns by pointer, unit of length: fathom. More...
 
static MeasureUnit getFathom ()
 Returns by value, unit of length: fathom. More...
 
static MeasureUnit * createFoot (UErrorCode &status)
 Returns by pointer, unit of length: foot. More...
 
static MeasureUnit getFoot ()
 Returns by value, unit of length: foot. More...
 
static MeasureUnit * createFurlong (UErrorCode &status)
 Returns by pointer, unit of length: furlong. More...
 
static MeasureUnit getFurlong ()
 Returns by value, unit of length: furlong. More...
 
static MeasureUnit * createInch (UErrorCode &status)
 Returns by pointer, unit of length: inch. More...
 
static MeasureUnit getInch ()
 Returns by value, unit of length: inch. More...
 
static MeasureUnit * createKilometer (UErrorCode &status)
 Returns by pointer, unit of length: kilometer. More...
 
static MeasureUnit getKilometer ()
 Returns by value, unit of length: kilometer. More...
 
static MeasureUnit * createLightYear (UErrorCode &status)
 Returns by pointer, unit of length: light-year. More...
 
static MeasureUnit getLightYear ()
 Returns by value, unit of length: light-year. More...
 
static MeasureUnit * createMeter (UErrorCode &status)
 Returns by pointer, unit of length: meter. More...
 
static MeasureUnit getMeter ()
 Returns by value, unit of length: meter. More...
 
static MeasureUnit * createMicrometer (UErrorCode &status)
 Returns by pointer, unit of length: micrometer. More...
 
static MeasureUnit getMicrometer ()
 Returns by value, unit of length: micrometer. More...
 
static MeasureUnit * createMile (UErrorCode &status)
 Returns by pointer, unit of length: mile. More...
 
static MeasureUnit getMile ()
 Returns by value, unit of length: mile. More...
 
static MeasureUnit * createMileScandinavian (UErrorCode &status)
 Returns by pointer, unit of length: mile-scandinavian. More...
 
static MeasureUnit getMileScandinavian ()
 Returns by value, unit of length: mile-scandinavian. More...
 
static MeasureUnit * createMillimeter (UErrorCode &status)
 Returns by pointer, unit of length: millimeter. More...
 
static MeasureUnit getMillimeter ()
 Returns by value, unit of length: millimeter. More...
 
static MeasureUnit * createNanometer (UErrorCode &status)
 Returns by pointer, unit of length: nanometer. More...
 
static MeasureUnit getNanometer ()
 Returns by value, unit of length: nanometer. More...
 
static MeasureUnit * createNauticalMile (UErrorCode &status)
 Returns by pointer, unit of length: nautical-mile. More...
 
static MeasureUnit getNauticalMile ()
 Returns by value, unit of length: nautical-mile. More...
 
static MeasureUnit * createParsec (UErrorCode &status)
 Returns by pointer, unit of length: parsec. More...
 
static MeasureUnit getParsec ()
 Returns by value, unit of length: parsec. More...
 
static MeasureUnit * createPicometer (UErrorCode &status)
 Returns by pointer, unit of length: picometer. More...
 
static MeasureUnit getPicometer ()
 Returns by value, unit of length: picometer. More...
 
static MeasureUnit * createPoint (UErrorCode &status)
 Returns by pointer, unit of length: point. More...
 
static MeasureUnit getPoint ()
 Returns by value, unit of length: point. More...
 
static MeasureUnit * createSolarRadius (UErrorCode &status)
 Returns by pointer, unit of length: solar-radius. More...
 
static MeasureUnit getSolarRadius ()
 Returns by value, unit of length: solar-radius. More...
 
static MeasureUnit * createYard (UErrorCode &status)
 Returns by pointer, unit of length: yard. More...
 
static MeasureUnit getYard ()
 Returns by value, unit of length: yard. More...
 
static MeasureUnit * createLux (UErrorCode &status)
 Returns by pointer, unit of light: lux. More...
 
static MeasureUnit getLux ()
 Returns by value, unit of light: lux. More...
 
static MeasureUnit * createSolarLuminosity (UErrorCode &status)
 Returns by pointer, unit of light: solar-luminosity. More...
 
static MeasureUnit getSolarLuminosity ()
 Returns by value, unit of light: solar-luminosity. More...
 
static MeasureUnit * createCarat (UErrorCode &status)
 Returns by pointer, unit of mass: carat. More...
 
static MeasureUnit getCarat ()
 Returns by value, unit of mass: carat. More...
 
static MeasureUnit * createDalton (UErrorCode &status)
 Returns by pointer, unit of mass: dalton. More...
 
static MeasureUnit getDalton ()
 Returns by value, unit of mass: dalton. More...
 
static MeasureUnit * createEarthMass (UErrorCode &status)
 Returns by pointer, unit of mass: earth-mass. More...
 
static MeasureUnit getEarthMass ()
 Returns by value, unit of mass: earth-mass. More...
 
static MeasureUnit * createGram (UErrorCode &status)
 Returns by pointer, unit of mass: gram. More...
 
static MeasureUnit getGram ()
 Returns by value, unit of mass: gram. More...
 
static MeasureUnit * createKilogram (UErrorCode &status)
 Returns by pointer, unit of mass: kilogram. More...
 
static MeasureUnit getKilogram ()
 Returns by value, unit of mass: kilogram. More...
 
static MeasureUnit * createMetricTon (UErrorCode &status)
 Returns by pointer, unit of mass: metric-ton. More...
 
static MeasureUnit getMetricTon ()
 Returns by value, unit of mass: metric-ton. More...
 
static MeasureUnit * createMicrogram (UErrorCode &status)
 Returns by pointer, unit of mass: microgram. More...
 
static MeasureUnit getMicrogram ()
 Returns by value, unit of mass: microgram. More...
 
static MeasureUnit * createMilligram (UErrorCode &status)
 Returns by pointer, unit of mass: milligram. More...
 
static MeasureUnit getMilligram ()
 Returns by value, unit of mass: milligram. More...
 
static MeasureUnit * createOunce (UErrorCode &status)
 Returns by pointer, unit of mass: ounce. More...
 
static MeasureUnit getOunce ()
 Returns by value, unit of mass: ounce. More...
 
static MeasureUnit * createOunceTroy (UErrorCode &status)
 Returns by pointer, unit of mass: ounce-troy. More...
 
static MeasureUnit getOunceTroy ()
 Returns by value, unit of mass: ounce-troy. More...
 
static MeasureUnit * createPound (UErrorCode &status)
 Returns by pointer, unit of mass: pound. More...
 
static MeasureUnit getPound ()
 Returns by value, unit of mass: pound. More...
 
static MeasureUnit * createSolarMass (UErrorCode &status)
 Returns by pointer, unit of mass: solar-mass. More...
 
static MeasureUnit getSolarMass ()
 Returns by value, unit of mass: solar-mass. More...
 
static MeasureUnit * createStone (UErrorCode &status)
 Returns by pointer, unit of mass: stone. More...
 
static MeasureUnit getStone ()
 Returns by value, unit of mass: stone. More...
 
static MeasureUnit * createTon (UErrorCode &status)
 Returns by pointer, unit of mass: ton. More...
 
static MeasureUnit getTon ()
 Returns by value, unit of mass: ton. More...
 
static MeasureUnit * createGigawatt (UErrorCode &status)
 Returns by pointer, unit of power: gigawatt. More...
 
static MeasureUnit getGigawatt ()
 Returns by value, unit of power: gigawatt. More...
 
static MeasureUnit * createHorsepower (UErrorCode &status)
 Returns by pointer, unit of power: horsepower. More...
 
static MeasureUnit getHorsepower ()
 Returns by value, unit of power: horsepower. More...
 
static MeasureUnit * createKilowatt (UErrorCode &status)
 Returns by pointer, unit of power: kilowatt. More...
 
static MeasureUnit getKilowatt ()
 Returns by value, unit of power: kilowatt. More...
 
static MeasureUnit * createMegawatt (UErrorCode &status)
 Returns by pointer, unit of power: megawatt. More...
 
static MeasureUnit getMegawatt ()
 Returns by value, unit of power: megawatt. More...
 
static MeasureUnit * createMilliwatt (UErrorCode &status)
 Returns by pointer, unit of power: milliwatt. More...
 
static MeasureUnit getMilliwatt ()
 Returns by value, unit of power: milliwatt. More...
 
static MeasureUnit * createWatt (UErrorCode &status)
 Returns by pointer, unit of power: watt. More...
 
static MeasureUnit getWatt ()
 Returns by value, unit of power: watt. More...
 
static MeasureUnit * createAtmosphere (UErrorCode &status)
 Returns by pointer, unit of pressure: atmosphere. More...
 
static MeasureUnit getAtmosphere ()
 Returns by value, unit of pressure: atmosphere. More...
 
static MeasureUnit * createBar (UErrorCode &status)
 Returns by pointer, unit of pressure: bar. More...
 
static MeasureUnit getBar ()
 Returns by value, unit of pressure: bar. More...
 
static MeasureUnit * createHectopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: hectopascal. More...
 
static MeasureUnit getHectopascal ()
 Returns by value, unit of pressure: hectopascal. More...
 
static MeasureUnit * createInchHg (UErrorCode &status)
 Returns by pointer, unit of pressure: inch-ofhg. More...
 
static MeasureUnit getInchHg ()
 Returns by value, unit of pressure: inch-ofhg. More...
 
static MeasureUnit * createKilopascal (UErrorCode &status)
 Returns by pointer, unit of pressure: kilopascal. More...
 
static MeasureUnit getKilopascal ()
 Returns by value, unit of pressure: kilopascal. More...
 
static MeasureUnit * createMegapascal (UErrorCode &status)
 Returns by pointer, unit of pressure: megapascal. More...
 
static MeasureUnit getMegapascal ()
 Returns by value, unit of pressure: megapascal. More...
 
static MeasureUnit * createMillibar (UErrorCode &status)
 Returns by pointer, unit of pressure: millibar. More...
 
static MeasureUnit getMillibar ()
 Returns by value, unit of pressure: millibar. More...
 
static MeasureUnit * createMillimeterOfMercury (UErrorCode &status)
 Returns by pointer, unit of pressure: millimeter-ofhg. More...
 
static MeasureUnit getMillimeterOfMercury ()
 Returns by value, unit of pressure: millimeter-ofhg. More...
 
static MeasureUnit * createPascal (UErrorCode &status)
 Returns by pointer, unit of pressure: pascal. More...
 
static MeasureUnit getPascal ()
 Returns by value, unit of pressure: pascal. More...
 
static MeasureUnit * createPoundPerSquareInch (UErrorCode &status)
 Returns by pointer, unit of pressure: pound-force-per-square-inch. More...
 
static MeasureUnit getPoundPerSquareInch ()
 Returns by value, unit of pressure: pound-force-per-square-inch. More...
 
static MeasureUnit * createKilometerPerHour (UErrorCode &status)
 Returns by pointer, unit of speed: kilometer-per-hour. More...
 
static MeasureUnit getKilometerPerHour ()
 Returns by value, unit of speed: kilometer-per-hour. More...
 
static MeasureUnit * createKnot (UErrorCode &status)
 Returns by pointer, unit of speed: knot. More...
 
static MeasureUnit getKnot ()
 Returns by value, unit of speed: knot. More...
 
static MeasureUnit * createMeterPerSecond (UErrorCode &status)
 Returns by pointer, unit of speed: meter-per-second. More...
 
static MeasureUnit getMeterPerSecond ()
 Returns by value, unit of speed: meter-per-second. More...
 
static MeasureUnit * createMilePerHour (UErrorCode &status)
 Returns by pointer, unit of speed: mile-per-hour. More...
 
static MeasureUnit getMilePerHour ()
 Returns by value, unit of speed: mile-per-hour. More...
 
static MeasureUnit * createCelsius (UErrorCode &status)
 Returns by pointer, unit of temperature: celsius. More...
 
static MeasureUnit getCelsius ()
 Returns by value, unit of temperature: celsius. More...
 
static MeasureUnit * createFahrenheit (UErrorCode &status)
 Returns by pointer, unit of temperature: fahrenheit. More...
 
static MeasureUnit getFahrenheit ()
 Returns by value, unit of temperature: fahrenheit. More...
 
static MeasureUnit * createGenericTemperature (UErrorCode &status)
 Returns by pointer, unit of temperature: generic. More...
 
static MeasureUnit getGenericTemperature ()
 Returns by value, unit of temperature: generic. More...
 
static MeasureUnit * createKelvin (UErrorCode &status)
 Returns by pointer, unit of temperature: kelvin. More...
 
static MeasureUnit getKelvin ()
 Returns by value, unit of temperature: kelvin. More...
 
static MeasureUnit * createNewtonMeter (UErrorCode &status)
 Returns by pointer, unit of torque: newton-meter. More...
 
static MeasureUnit getNewtonMeter ()
 Returns by value, unit of torque: newton-meter. More...
 
static MeasureUnit * createPoundFoot (UErrorCode &status)
 Returns by pointer, unit of torque: pound-force-foot. More...
 
static MeasureUnit getPoundFoot ()
 Returns by value, unit of torque: pound-force-foot. More...
 
static MeasureUnit * createAcreFoot (UErrorCode &status)
 Returns by pointer, unit of volume: acre-foot. More...
 
static MeasureUnit getAcreFoot ()
 Returns by value, unit of volume: acre-foot. More...
 
static MeasureUnit * createBarrel (UErrorCode &status)
 Returns by pointer, unit of volume: barrel. More...
 
static MeasureUnit getBarrel ()
 Returns by value, unit of volume: barrel. More...
 
static MeasureUnit * createBushel (UErrorCode &status)
 Returns by pointer, unit of volume: bushel. More...
 
static MeasureUnit getBushel ()
 Returns by value, unit of volume: bushel. More...
 
static MeasureUnit * createCentiliter (UErrorCode &status)
 Returns by pointer, unit of volume: centiliter. More...
 
static MeasureUnit getCentiliter ()
 Returns by value, unit of volume: centiliter. More...
 
static MeasureUnit * createCubicCentimeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-centimeter. More...
 
static MeasureUnit getCubicCentimeter ()
 Returns by value, unit of volume: cubic-centimeter. More...
 
static MeasureUnit * createCubicFoot (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-foot. More...
 
static MeasureUnit getCubicFoot ()
 Returns by value, unit of volume: cubic-foot. More...
 
static MeasureUnit * createCubicInch (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-inch. More...
 
static MeasureUnit getCubicInch ()
 Returns by value, unit of volume: cubic-inch. More...
 
static MeasureUnit * createCubicKilometer (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-kilometer. More...
 
static MeasureUnit getCubicKilometer ()
 Returns by value, unit of volume: cubic-kilometer. More...
 
static MeasureUnit * createCubicMeter (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-meter. More...
 
static MeasureUnit getCubicMeter ()
 Returns by value, unit of volume: cubic-meter. More...
 
static MeasureUnit * createCubicMile (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-mile. More...
 
static MeasureUnit getCubicMile ()
 Returns by value, unit of volume: cubic-mile. More...
 
static MeasureUnit * createCubicYard (UErrorCode &status)
 Returns by pointer, unit of volume: cubic-yard. More...
 
static MeasureUnit getCubicYard ()
 Returns by value, unit of volume: cubic-yard. More...
 
static MeasureUnit * createCup (UErrorCode &status)
 Returns by pointer, unit of volume: cup. More...
 
static MeasureUnit getCup ()
 Returns by value, unit of volume: cup. More...
 
static MeasureUnit * createCupMetric (UErrorCode &status)
 Returns by pointer, unit of volume: cup-metric. More...
 
static MeasureUnit getCupMetric ()
 Returns by value, unit of volume: cup-metric. More...
 
static MeasureUnit * createDeciliter (UErrorCode &status)
 Returns by pointer, unit of volume: deciliter. More...
 
static MeasureUnit getDeciliter ()
 Returns by value, unit of volume: deciliter. More...
 
static MeasureUnit * createFluidOunce (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce. More...
 
static MeasureUnit getFluidOunce ()
 Returns by value, unit of volume: fluid-ounce. More...
 
static MeasureUnit * createFluidOunceImperial (UErrorCode &status)
 Returns by pointer, unit of volume: fluid-ounce-imperial. More...
 
static MeasureUnit getFluidOunceImperial ()
 Returns by value, unit of volume: fluid-ounce-imperial. More...
 
static MeasureUnit * createGallon (UErrorCode &status)
 Returns by pointer, unit of volume: gallon. More...
 
static MeasureUnit getGallon ()
 Returns by value, unit of volume: gallon. More...
 
static MeasureUnit * createGallonImperial (UErrorCode &status)
 Returns by pointer, unit of volume: gallon-imperial. More...
 
static MeasureUnit getGallonImperial ()
 Returns by value, unit of volume: gallon-imperial. More...
 
static MeasureUnit * createHectoliter (UErrorCode &status)
 Returns by pointer, unit of volume: hectoliter. More...
 
static MeasureUnit getHectoliter ()
 Returns by value, unit of volume: hectoliter. More...
 
static MeasureUnit * createLiter (UErrorCode &status)
 Returns by pointer, unit of volume: liter. More...
 
static MeasureUnit getLiter ()
 Returns by value, unit of volume: liter. More...
 
static MeasureUnit * createMegaliter (UErrorCode &status)
 Returns by pointer, unit of volume: megaliter. More...
 
static MeasureUnit getMegaliter ()
 Returns by value, unit of volume: megaliter. More...
 
static MeasureUnit * createMilliliter (UErrorCode &status)
 Returns by pointer, unit of volume: milliliter. More...
 
static MeasureUnit getMilliliter ()
 Returns by value, unit of volume: milliliter. More...
 
static MeasureUnit * createPint (UErrorCode &status)
 Returns by pointer, unit of volume: pint. More...
 
static MeasureUnit getPint ()
 Returns by value, unit of volume: pint. More...
 
static MeasureUnit * createPintMetric (UErrorCode &status)
 Returns by pointer, unit of volume: pint-metric. More...
 
static MeasureUnit getPintMetric ()
 Returns by value, unit of volume: pint-metric. More...
 
static MeasureUnit * createQuart (UErrorCode &status)
 Returns by pointer, unit of volume: quart. More...
 
static MeasureUnit getQuart ()
 Returns by value, unit of volume: quart. More...
 
static MeasureUnit * createTablespoon (UErrorCode &status)
 Returns by pointer, unit of volume: tablespoon. More...
 
static MeasureUnit getTablespoon ()
 Returns by value, unit of volume: tablespoon. More...
 
static MeasureUnit * createTeaspoon (UErrorCode &status)
 Returns by pointer, unit of volume: teaspoon. More...
 
static MeasureUnit getTeaspoon ()
 Returns by value, unit of volume: teaspoon. More...
 

Additional Inherited Members

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

Detailed Description

Dimensionless unit for percent and permille.

See also
NumberFormatter
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Definition at line 35 of file nounit.h.

Constructor & Destructor Documentation

◆ NoUnit()

icu::NoUnit::NoUnit ( const NoUnit &  other)

Copy operator.

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

◆ ~NoUnit()

virtual icu::NoUnit::~NoUnit ( )
virtual

Destructor.

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

Member Function Documentation

◆ base()

static NoUnit icu::NoUnit::base ( )
static

Returns an instance for the base unit (dimensionless and no scaling).

Returns
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60

◆ clone()

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

Return a polymorphic clone of this object.

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

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

Reimplemented from icu::MeasureUnit.

◆ getDynamicClassID()

virtual UClassID icu::NoUnit::getDynamicClassID ( ) const
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.
Draft:
This API may be changed in the future versions and was introduced in ICU 60

Reimplemented from icu::MeasureUnit.

◆ getStaticClassID()

static UClassID icu::NoUnit::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.
Draft:
This API may be changed in the future versions and was introduced in ICU 60

◆ percent()

static NoUnit icu::NoUnit::percent ( )
static

Returns an instance for percent, or 1/100 of a base unit.

Returns
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60

◆ permille()

static NoUnit icu::NoUnit::permille ( )
static

Returns an instance for permille, or 1/1000 of a base unit.

Returns
a NoUnit instance
Draft:
This API may be changed in the future versions and was introduced in ICU 60

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