Loading...
Searching...
No Matches
measunit.h
Go to the documentation of this file.
// © 2016 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html
/*
**********************************************************************
* Copyright (c) 2004-2016, International Business Machines
* Corporation and others. All Rights Reserved.
**********************************************************************
* Author: Alan Liu
* Created: April 26, 2004
* Since: ICU 3.0
**********************************************************************
*/
#ifndef __MEASUREUNIT_H__
#define __MEASUREUNIT_H__
#include "unicode/utypes.h"
#if U_SHOW_CPLUSPLUS_API
#if !UCONFIG_NO_FORMATTING
#include <utility>
#include "unicode/unistr.h"
#include "unicode/localpointer.h"
U_NAMESPACE_BEGIN
class StringEnumeration;
class MeasureUnitImpl;
namespace number::impl {
class LongNameHandler;
} // namespace number::impl
enum UMeasureUnitComplexity {
UMEASURE_UNIT_SINGLE,
UMEASURE_UNIT_COMPOUND,
UMEASURE_UNIT_MIXED
};
typedef enum UMeasurePrefix {
UMEASURE_PREFIX_ONE = 30 + 0,
UMEASURE_PREFIX_YOTTA = UMEASURE_PREFIX_ONE + 24,
UMEASURE_PREFIX_RONNA = UMEASURE_PREFIX_ONE + 27,
UMEASURE_PREFIX_QUETTA = UMEASURE_PREFIX_ONE + 30,
#ifndef U_HIDE_INTERNAL_API
#ifndef U_HIDE_DRAFT_API
UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_QUETTA,
#else /* U_HIDE_DRAFT_API */
UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_YOTTA,
#endif /* U_HIDE_DRAFT_API */
#endif /* U_HIDE_INTERNAL_API */
UMEASURE_PREFIX_ZETTA = UMEASURE_PREFIX_ONE + 21,
UMEASURE_PREFIX_EXA = UMEASURE_PREFIX_ONE + 18,
UMEASURE_PREFIX_PETA = UMEASURE_PREFIX_ONE + 15,
UMEASURE_PREFIX_TERA = UMEASURE_PREFIX_ONE + 12,
UMEASURE_PREFIX_GIGA = UMEASURE_PREFIX_ONE + 9,
UMEASURE_PREFIX_MEGA = UMEASURE_PREFIX_ONE + 6,
UMEASURE_PREFIX_KILO = UMEASURE_PREFIX_ONE + 3,
UMEASURE_PREFIX_HECTO = UMEASURE_PREFIX_ONE + 2,
UMEASURE_PREFIX_DEKA = UMEASURE_PREFIX_ONE + 1,
UMEASURE_PREFIX_DECI = UMEASURE_PREFIX_ONE + -1,
UMEASURE_PREFIX_CENTI = UMEASURE_PREFIX_ONE + -2,
UMEASURE_PREFIX_MILLI = UMEASURE_PREFIX_ONE + -3,
UMEASURE_PREFIX_MICRO = UMEASURE_PREFIX_ONE + -6,
UMEASURE_PREFIX_NANO = UMEASURE_PREFIX_ONE + -9,
UMEASURE_PREFIX_PICO = UMEASURE_PREFIX_ONE + -12,
UMEASURE_PREFIX_FEMTO = UMEASURE_PREFIX_ONE + -15,
UMEASURE_PREFIX_ATTO = UMEASURE_PREFIX_ONE + -18,
UMEASURE_PREFIX_ZEPTO = UMEASURE_PREFIX_ONE + -21,
UMEASURE_PREFIX_YOCTO = UMEASURE_PREFIX_ONE + -24,
UMEASURE_PREFIX_RONTO = UMEASURE_PREFIX_ONE + -27,
UMEASURE_PREFIX_QUECTO = UMEASURE_PREFIX_ONE + -30,
#ifndef U_HIDE_INTERNAL_API
#ifndef U_HIDE_DRAFT_API
UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_QUECTO,
#else /* U_HIDE_DRAFT_API */
UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_YOCTO,
#endif /* U_HIDE_DRAFT_API */
#endif // U_HIDE_INTERNAL_API
// Cannot conditionalize the following with #ifndef U_HIDE_INTERNAL_API,
// used in definitions of non-internal enum values
UMEASURE_PREFIX_INTERNAL_ONE_BIN = -60,
UMEASURE_PREFIX_KIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 1,
#ifndef U_HIDE_INTERNAL_API
UMEASURE_PREFIX_INTERNAL_MIN_BIN = UMEASURE_PREFIX_KIBI,
#endif // U_HIDE_INTERNAL_API
UMEASURE_PREFIX_MEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 2,
UMEASURE_PREFIX_GIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 3,
UMEASURE_PREFIX_TEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 4,
UMEASURE_PREFIX_PEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 5,
UMEASURE_PREFIX_EXBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 6,
UMEASURE_PREFIX_ZEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 7,
UMEASURE_PREFIX_YOBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 8,
#ifndef U_HIDE_INTERNAL_API
UMEASURE_PREFIX_INTERNAL_MAX_BIN = UMEASURE_PREFIX_YOBI,
#endif // U_HIDE_INTERNAL_API
} UMeasurePrefix;
U_CAPI int32_t U_EXPORT2 umeas_getPrefixBase(UMeasurePrefix unitPrefix);
U_CAPI int32_t U_EXPORT2 umeas_getPrefixPower(UMeasurePrefix unitPrefix);
class U_I18N_API MeasureUnit: public UObject {
public:
MeasureUnit();
MeasureUnit(const MeasureUnit &other);
MeasureUnit(MeasureUnit &&other) noexcept;
static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
MeasureUnit &operator=(const MeasureUnit &other);
MeasureUnit &operator=(MeasureUnit &&other) noexcept;
virtual MeasureUnit* clone() const;
virtual ~MeasureUnit();
virtual bool operator==(const UObject& other) const;
bool operator!=(const UObject& other) const {
return !(*this == other);
}
const char *getType() const;
const char *getSubtype() const;
const char* getIdentifier() const;
UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
UMeasurePrefix getPrefix(UErrorCode& status) const;
#ifndef U_HIDE_DRAFT_API
MeasureUnit withConstantDenominator(uint64_t denominator, UErrorCode &status) const;
uint64_t getConstantDenominator(UErrorCode &status) const;
#endif /* U_HIDE_DRAFT_API */
MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
int32_t getDimensionality(UErrorCode& status) const;
MeasureUnit reciprocal(UErrorCode& status) const;
MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
static int32_t getAvailable(
MeasureUnit *destArray,
int32_t destCapacity,
UErrorCode &errorCode);
static int32_t getAvailable(
const char *type,
MeasureUnit *destArray,
int32_t destCapacity,
UErrorCode &errorCode);
static StringEnumeration* getAvailableTypes(UErrorCode &errorCode);
static UClassID U_EXPORT2 getStaticClassID();
virtual UClassID getDynamicClassID() const override;
#ifndef U_HIDE_INTERNAL_API
int32_t getOffset() const;
#endif /* U_HIDE_INTERNAL_API */
// All code between the "Start generated createXXX methods" comment and
// the "End generated createXXX methods" comment is auto generated code
// and must not be edited manually. For instructions on how to correctly
// update this code, refer to:
// docs/processes/release/tasks/updating-measure-unit.md
//
// Start generated createXXX methods
static MeasureUnit *createGForce(UErrorCode &status);
static MeasureUnit getGForce();
static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
static MeasureUnit getMeterPerSecondSquared();
static MeasureUnit *createArcMinute(UErrorCode &status);
static MeasureUnit getArcMinute();
static MeasureUnit *createArcSecond(UErrorCode &status);
static MeasureUnit getArcSecond();
static MeasureUnit *createDegree(UErrorCode &status);
static MeasureUnit getDegree();
static MeasureUnit *createRadian(UErrorCode &status);
static MeasureUnit getRadian();
static MeasureUnit *createRevolutionAngle(UErrorCode &status);
static MeasureUnit getRevolutionAngle();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSteradian(UErrorCode &status);
static MeasureUnit getSteradian();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createAcre(UErrorCode &status);
static MeasureUnit getAcre();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createBuJp(UErrorCode &status);
static MeasureUnit getBuJp();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createCho(UErrorCode &status);
static MeasureUnit getCho();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createDunam(UErrorCode &status);
static MeasureUnit getDunam();
static MeasureUnit *createHectare(UErrorCode &status);
static MeasureUnit getHectare();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSeJp(UErrorCode &status);
static MeasureUnit getSeJp();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createSquareCentimeter(UErrorCode &status);
static MeasureUnit getSquareCentimeter();
static MeasureUnit *createSquareFoot(UErrorCode &status);
static MeasureUnit getSquareFoot();
static MeasureUnit *createSquareInch(UErrorCode &status);
static MeasureUnit getSquareInch();
static MeasureUnit *createSquareKilometer(UErrorCode &status);
static MeasureUnit getSquareKilometer();
static MeasureUnit *createSquareMeter(UErrorCode &status);
static MeasureUnit getSquareMeter();
static MeasureUnit *createSquareMile(UErrorCode &status);
static MeasureUnit getSquareMile();
static MeasureUnit *createSquareYard(UErrorCode &status);
static MeasureUnit getSquareYard();
static MeasureUnit *createItem(UErrorCode &status);
static MeasureUnit getItem();
static MeasureUnit *createKarat(UErrorCode &status);
static MeasureUnit getKarat();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createKatal(UErrorCode &status);
static MeasureUnit getKatal();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createMilligramOfglucosePerDeciliter(UErrorCode &status);
static MeasureUnit getMilligramOfglucosePerDeciliter();
#ifndef U_HIDE_DEPRECATED_API
static MeasureUnit *createMilligramPerDeciliter(UErrorCode &status);
static MeasureUnit getMilligramPerDeciliter();
#endif /* U_HIDE_DEPRECATED_API */
static MeasureUnit *createMillimolePerLiter(UErrorCode &status);
static MeasureUnit getMillimolePerLiter();
static MeasureUnit *createMole(UErrorCode &status);
static MeasureUnit getMole();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createOfglucose(UErrorCode &status);
static MeasureUnit getOfglucose();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createPart(UErrorCode &status);
static MeasureUnit getPart();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createPartPer1E6(UErrorCode &status);
static MeasureUnit getPartPer1E6();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createPartPerMillion(UErrorCode &status);
static MeasureUnit getPartPerMillion();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createPartPer1E9(UErrorCode &status);
static MeasureUnit getPartPer1E9();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createPercent(UErrorCode &status);
static MeasureUnit getPercent();
static MeasureUnit *createPermille(UErrorCode &status);
static MeasureUnit getPermille();
static MeasureUnit *createPermyriad(UErrorCode &status);
static MeasureUnit getPermyriad();
static MeasureUnit *createLiterPer100Kilometers(UErrorCode &status);
static MeasureUnit getLiterPer100Kilometers();
static MeasureUnit *createLiterPerKilometer(UErrorCode &status);
static MeasureUnit getLiterPerKilometer();
static MeasureUnit *createMilePerGallon(UErrorCode &status);
static MeasureUnit getMilePerGallon();
static MeasureUnit *createMilePerGallonImperial(UErrorCode &status);
static MeasureUnit getMilePerGallonImperial();
static MeasureUnit *createBit(UErrorCode &status);
static MeasureUnit getBit();
static MeasureUnit *createByte(UErrorCode &status);
static MeasureUnit getByte();
static MeasureUnit *createGigabit(UErrorCode &status);
static MeasureUnit getGigabit();
static MeasureUnit *createGigabyte(UErrorCode &status);
static MeasureUnit getGigabyte();
static MeasureUnit *createKilobit(UErrorCode &status);
static MeasureUnit getKilobit();
static MeasureUnit *createKilobyte(UErrorCode &status);
static MeasureUnit getKilobyte();
static MeasureUnit *createMegabit(UErrorCode &status);
static MeasureUnit getMegabit();
static MeasureUnit *createMegabyte(UErrorCode &status);
static MeasureUnit getMegabyte();
static MeasureUnit *createPetabyte(UErrorCode &status);
static MeasureUnit getPetabyte();
static MeasureUnit *createTerabit(UErrorCode &status);
static MeasureUnit getTerabit();
static MeasureUnit *createTerabyte(UErrorCode &status);
static MeasureUnit getTerabyte();
static MeasureUnit *createCentury(UErrorCode &status);
static MeasureUnit getCentury();
static MeasureUnit *createDay(UErrorCode &status);
static MeasureUnit getDay();
static MeasureUnit *createDayPerson(UErrorCode &status);
static MeasureUnit getDayPerson();
static MeasureUnit *createDecade(UErrorCode &status);
static MeasureUnit getDecade();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createFortnight(UErrorCode &status);
static MeasureUnit getFortnight();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createHour(UErrorCode &status);
static MeasureUnit getHour();
static MeasureUnit *createMicrosecond(UErrorCode &status);
static MeasureUnit getMicrosecond();
static MeasureUnit *createMillisecond(UErrorCode &status);
static MeasureUnit getMillisecond();
static MeasureUnit *createMinute(UErrorCode &status);
static MeasureUnit getMinute();
static MeasureUnit *createMonth(UErrorCode &status);
static MeasureUnit getMonth();
static MeasureUnit *createMonthPerson(UErrorCode &status);
static MeasureUnit getMonthPerson();
static MeasureUnit *createNanosecond(UErrorCode &status);
static MeasureUnit getNanosecond();
static MeasureUnit *createNight(UErrorCode &status);
static MeasureUnit getNight();
static MeasureUnit *createQuarter(UErrorCode &status);
static MeasureUnit getQuarter();
static MeasureUnit *createSecond(UErrorCode &status);
static MeasureUnit getSecond();
static MeasureUnit *createWeek(UErrorCode &status);
static MeasureUnit getWeek();
static MeasureUnit *createWeekPerson(UErrorCode &status);
static MeasureUnit getWeekPerson();
static MeasureUnit *createYear(UErrorCode &status);
static MeasureUnit getYear();
static MeasureUnit *createYearPerson(UErrorCode &status);
static MeasureUnit getYearPerson();
static MeasureUnit *createAmpere(UErrorCode &status);
static MeasureUnit getAmpere();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createCoulomb(UErrorCode &status);
static MeasureUnit getCoulomb();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createFarad(UErrorCode &status);
static MeasureUnit getFarad();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createHenry(UErrorCode &status);
static MeasureUnit getHenry();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createMilliampere(UErrorCode &status);
static MeasureUnit getMilliampere();
static MeasureUnit *createOhm(UErrorCode &status);
static MeasureUnit getOhm();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSiemens(UErrorCode &status);
static MeasureUnit getSiemens();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createVolt(UErrorCode &status);
static MeasureUnit getVolt();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createBecquerel(UErrorCode &status);
static MeasureUnit getBecquerel();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createBritishThermalUnit(UErrorCode &status);
static MeasureUnit getBritishThermalUnit();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createBritishThermalUnitIt(UErrorCode &status);
static MeasureUnit getBritishThermalUnitIt();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createCalorie(UErrorCode &status);
static MeasureUnit getCalorie();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createCalorieIt(UErrorCode &status);
static MeasureUnit getCalorieIt();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createElectronvolt(UErrorCode &status);
static MeasureUnit getElectronvolt();
static MeasureUnit *createFoodcalorie(UErrorCode &status);
static MeasureUnit getFoodcalorie();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createGray(UErrorCode &status);
static MeasureUnit getGray();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createJoule(UErrorCode &status);
static MeasureUnit getJoule();
static MeasureUnit *createKilocalorie(UErrorCode &status);
static MeasureUnit getKilocalorie();
static MeasureUnit *createKilojoule(UErrorCode &status);
static MeasureUnit getKilojoule();
static MeasureUnit *createKilowattHour(UErrorCode &status);
static MeasureUnit getKilowattHour();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSievert(UErrorCode &status);
static MeasureUnit getSievert();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createThermUs(UErrorCode &status);
static MeasureUnit getThermUs();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createKilogramForce(UErrorCode &status);
static MeasureUnit getKilogramForce();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createKilowattHourPer100Kilometer(UErrorCode &status);
static MeasureUnit getKilowattHourPer100Kilometer();
static MeasureUnit *createNewton(UErrorCode &status);
static MeasureUnit getNewton();
static MeasureUnit *createPoundForce(UErrorCode &status);
static MeasureUnit getPoundForce();
static MeasureUnit *createGigahertz(UErrorCode &status);
static MeasureUnit getGigahertz();
static MeasureUnit *createHertz(UErrorCode &status);
static MeasureUnit getHertz();
static MeasureUnit *createKilohertz(UErrorCode &status);
static MeasureUnit getKilohertz();
static MeasureUnit *createMegahertz(UErrorCode &status);
static MeasureUnit getMegahertz();
static MeasureUnit *createDot(UErrorCode &status);
static MeasureUnit getDot();
static MeasureUnit *createDotPerCentimeter(UErrorCode &status);
static MeasureUnit getDotPerCentimeter();
static MeasureUnit *createDotPerInch(UErrorCode &status);
static MeasureUnit getDotPerInch();
static MeasureUnit *createEm(UErrorCode &status);
static MeasureUnit getEm();
static MeasureUnit *createMegapixel(UErrorCode &status);
static MeasureUnit getMegapixel();
static MeasureUnit *createPixel(UErrorCode &status);
static MeasureUnit getPixel();
static MeasureUnit *createPixelPerCentimeter(UErrorCode &status);
static MeasureUnit getPixelPerCentimeter();
static MeasureUnit *createPixelPerInch(UErrorCode &status);
static MeasureUnit getPixelPerInch();
static MeasureUnit *createAstronomicalUnit(UErrorCode &status);
static MeasureUnit getAstronomicalUnit();
static MeasureUnit *createCentimeter(UErrorCode &status);
static MeasureUnit getCentimeter();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createChain(UErrorCode &status);
static MeasureUnit getChain();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createDecimeter(UErrorCode &status);
static MeasureUnit getDecimeter();
static MeasureUnit *createEarthRadius(UErrorCode &status);
static MeasureUnit getEarthRadius();
static MeasureUnit *createFathom(UErrorCode &status);
static MeasureUnit getFathom();
static MeasureUnit *createFoot(UErrorCode &status);
static MeasureUnit getFoot();
static MeasureUnit *createFurlong(UErrorCode &status);
static MeasureUnit getFurlong();
static MeasureUnit *createInch(UErrorCode &status);
static MeasureUnit getInch();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createJoJp(UErrorCode &status);
static MeasureUnit getJoJp();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createKen(UErrorCode &status);
static MeasureUnit getKen();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createKilometer(UErrorCode &status);
static MeasureUnit getKilometer();
static MeasureUnit *createLightYear(UErrorCode &status);
static MeasureUnit getLightYear();
static MeasureUnit *createMeter(UErrorCode &status);
static MeasureUnit getMeter();
static MeasureUnit *createMicrometer(UErrorCode &status);
static MeasureUnit getMicrometer();
static MeasureUnit *createMile(UErrorCode &status);
static MeasureUnit getMile();
static MeasureUnit *createMileScandinavian(UErrorCode &status);
static MeasureUnit getMileScandinavian();
static MeasureUnit *createMillimeter(UErrorCode &status);
static MeasureUnit getMillimeter();
static MeasureUnit *createNanometer(UErrorCode &status);
static MeasureUnit getNanometer();
static MeasureUnit *createNauticalMile(UErrorCode &status);
static MeasureUnit getNauticalMile();
static MeasureUnit *createParsec(UErrorCode &status);
static MeasureUnit getParsec();
static MeasureUnit *createPicometer(UErrorCode &status);
static MeasureUnit getPicometer();
static MeasureUnit *createPoint(UErrorCode &status);
static MeasureUnit getPoint();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createRiJp(UErrorCode &status);
static MeasureUnit getRiJp();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createRin(UErrorCode &status);
static MeasureUnit getRin();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createRod(UErrorCode &status);
static MeasureUnit getRod();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createShakuCloth(UErrorCode &status);
static MeasureUnit getShakuCloth();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createShakuLength(UErrorCode &status);
static MeasureUnit getShakuLength();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createSolarRadius(UErrorCode &status);
static MeasureUnit getSolarRadius();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSun(UErrorCode &status);
static MeasureUnit getSun();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createYard(UErrorCode &status);
static MeasureUnit getYard();
static MeasureUnit *createCandela(UErrorCode &status);
static MeasureUnit getCandela();
static MeasureUnit *createLumen(UErrorCode &status);
static MeasureUnit getLumen();
static MeasureUnit *createLux(UErrorCode &status);
static MeasureUnit getLux();
static MeasureUnit *createSolarLuminosity(UErrorCode &status);
static MeasureUnit getSolarLuminosity();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createTesla(UErrorCode &status);
static MeasureUnit getTesla();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createWeber(UErrorCode &status);
static MeasureUnit getWeber();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createCarat(UErrorCode &status);
static MeasureUnit getCarat();
static MeasureUnit *createDalton(UErrorCode &status);
static MeasureUnit getDalton();
static MeasureUnit *createEarthMass(UErrorCode &status);
static MeasureUnit getEarthMass();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createFun(UErrorCode &status);
static MeasureUnit getFun();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createGrain(UErrorCode &status);
static MeasureUnit getGrain();
static MeasureUnit *createGram(UErrorCode &status);
static MeasureUnit getGram();
static MeasureUnit *createKilogram(UErrorCode &status);
static MeasureUnit getKilogram();
static MeasureUnit *createMicrogram(UErrorCode &status);
static MeasureUnit getMicrogram();
static MeasureUnit *createMilligram(UErrorCode &status);
static MeasureUnit getMilligram();
static MeasureUnit *createOunce(UErrorCode &status);
static MeasureUnit getOunce();
static MeasureUnit *createOunceTroy(UErrorCode &status);
static MeasureUnit getOunceTroy();
static MeasureUnit *createPound(UErrorCode &status);
static MeasureUnit getPound();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSlug(UErrorCode &status);
static MeasureUnit getSlug();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createSolarMass(UErrorCode &status);
static MeasureUnit getSolarMass();
static MeasureUnit *createStone(UErrorCode &status);
static MeasureUnit getStone();
static MeasureUnit *createTon(UErrorCode &status);
static MeasureUnit getTon();
static MeasureUnit *createTonne(UErrorCode &status);
static MeasureUnit getTonne();
#ifndef U_HIDE_DEPRECATED_API
static MeasureUnit *createMetricTon(UErrorCode &status);
static MeasureUnit getMetricTon();
#endif /* U_HIDE_DEPRECATED_API */
static MeasureUnit *createGigawatt(UErrorCode &status);
static MeasureUnit getGigawatt();
static MeasureUnit *createHorsepower(UErrorCode &status);
static MeasureUnit getHorsepower();
static MeasureUnit *createKilowatt(UErrorCode &status);
static MeasureUnit getKilowatt();
static MeasureUnit *createMegawatt(UErrorCode &status);
static MeasureUnit getMegawatt();
static MeasureUnit *createMilliwatt(UErrorCode &status);
static MeasureUnit getMilliwatt();
static MeasureUnit *createWatt(UErrorCode &status);
static MeasureUnit getWatt();
static MeasureUnit *createAtmosphere(UErrorCode &status);
static MeasureUnit getAtmosphere();
static MeasureUnit *createBar(UErrorCode &status);
static MeasureUnit getBar();
static MeasureUnit *createGasolineEnergyDensity(UErrorCode &status);
static MeasureUnit getGasolineEnergyDensity();
static MeasureUnit *createHectopascal(UErrorCode &status);
static MeasureUnit getHectopascal();
static MeasureUnit *createInchHg(UErrorCode &status);
static MeasureUnit getInchHg();
static MeasureUnit *createKilopascal(UErrorCode &status);
static MeasureUnit getKilopascal();
static MeasureUnit *createMegapascal(UErrorCode &status);
static MeasureUnit getMegapascal();
static MeasureUnit *createMillibar(UErrorCode &status);
static MeasureUnit getMillibar();
static MeasureUnit *createMillimeterOfMercury(UErrorCode &status);
static MeasureUnit getMillimeterOfMercury();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createOfhg(UErrorCode &status);
static MeasureUnit getOfhg();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createPascal(UErrorCode &status);
static MeasureUnit getPascal();
static MeasureUnit *createPoundPerSquareInch(UErrorCode &status);
static MeasureUnit getPoundPerSquareInch();
static MeasureUnit *createBeaufort(UErrorCode &status);
static MeasureUnit getBeaufort();
static MeasureUnit *createKilometerPerHour(UErrorCode &status);
static MeasureUnit getKilometerPerHour();
static MeasureUnit *createKnot(UErrorCode &status);
static MeasureUnit getKnot();
static MeasureUnit *createLightSpeed(UErrorCode &status);
static MeasureUnit getLightSpeed();
static MeasureUnit *createMeterPerSecond(UErrorCode &status);
static MeasureUnit getMeterPerSecond();
static MeasureUnit *createMilePerHour(UErrorCode &status);
static MeasureUnit getMilePerHour();
static MeasureUnit *createCelsius(UErrorCode &status);
static MeasureUnit getCelsius();
static MeasureUnit *createFahrenheit(UErrorCode &status);
static MeasureUnit getFahrenheit();
static MeasureUnit *createGenericTemperature(UErrorCode &status);
static MeasureUnit getGenericTemperature();
static MeasureUnit *createKelvin(UErrorCode &status);
static MeasureUnit getKelvin();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createRankine(UErrorCode &status);
static MeasureUnit getRankine();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createNewtonMeter(UErrorCode &status);
static MeasureUnit getNewtonMeter();
static MeasureUnit *createPoundFoot(UErrorCode &status);
static MeasureUnit getPoundFoot();
static MeasureUnit *createAcreFoot(UErrorCode &status);
static MeasureUnit getAcreFoot();
static MeasureUnit *createBarrel(UErrorCode &status);
static MeasureUnit getBarrel();
static MeasureUnit *createBushel(UErrorCode &status);
static MeasureUnit getBushel();
static MeasureUnit *createCentiliter(UErrorCode &status);
static MeasureUnit getCentiliter();
static MeasureUnit *createCubicCentimeter(UErrorCode &status);
static MeasureUnit getCubicCentimeter();
static MeasureUnit *createCubicFoot(UErrorCode &status);
static MeasureUnit getCubicFoot();
static MeasureUnit *createCubicInch(UErrorCode &status);
static MeasureUnit getCubicInch();
static MeasureUnit *createCubicKilometer(UErrorCode &status);
static MeasureUnit getCubicKilometer();
static MeasureUnit *createCubicMeter(UErrorCode &status);
static MeasureUnit getCubicMeter();
static MeasureUnit *createCubicMile(UErrorCode &status);
static MeasureUnit getCubicMile();
static MeasureUnit *createCubicYard(UErrorCode &status);
static MeasureUnit getCubicYard();
static MeasureUnit *createCup(UErrorCode &status);
static MeasureUnit getCup();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createCupImperial(UErrorCode &status);
static MeasureUnit getCupImperial();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createCupJp(UErrorCode &status);
static MeasureUnit getCupJp();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createCupMetric(UErrorCode &status);
static MeasureUnit getCupMetric();
static MeasureUnit *createDeciliter(UErrorCode &status);
static MeasureUnit getDeciliter();
static MeasureUnit *createDessertSpoon(UErrorCode &status);
static MeasureUnit getDessertSpoon();
static MeasureUnit *createDessertSpoonImperial(UErrorCode &status);
static MeasureUnit getDessertSpoonImperial();
static MeasureUnit *createDram(UErrorCode &status);
static MeasureUnit getDram();
static MeasureUnit *createDrop(UErrorCode &status);
static MeasureUnit getDrop();
static MeasureUnit *createFluidOunce(UErrorCode &status);
static MeasureUnit getFluidOunce();
static MeasureUnit *createFluidOunceImperial(UErrorCode &status);
static MeasureUnit getFluidOunceImperial();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createFluidOunceMetric(UErrorCode &status);
static MeasureUnit getFluidOunceMetric();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createGallon(UErrorCode &status);
static MeasureUnit getGallon();
static MeasureUnit *createGallonImperial(UErrorCode &status);
static MeasureUnit getGallonImperial();
static MeasureUnit *createHectoliter(UErrorCode &status);
static MeasureUnit getHectoliter();
static MeasureUnit *createJigger(UErrorCode &status);
static MeasureUnit getJigger();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createKoku(UErrorCode &status);
static MeasureUnit getKoku();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createKosaji(UErrorCode &status);
static MeasureUnit getKosaji();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createLiter(UErrorCode &status);
static MeasureUnit getLiter();
static MeasureUnit *createMegaliter(UErrorCode &status);
static MeasureUnit getMegaliter();
static MeasureUnit *createMilliliter(UErrorCode &status);
static MeasureUnit getMilliliter();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createOsaji(UErrorCode &status);
static MeasureUnit getOsaji();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createPinch(UErrorCode &status);
static MeasureUnit getPinch();
static MeasureUnit *createPint(UErrorCode &status);
static MeasureUnit getPint();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createPintImperial(UErrorCode &status);
static MeasureUnit getPintImperial();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createPintMetric(UErrorCode &status);
static MeasureUnit getPintMetric();
static MeasureUnit *createQuart(UErrorCode &status);
static MeasureUnit getQuart();
static MeasureUnit *createQuartImperial(UErrorCode &status);
static MeasureUnit getQuartImperial();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createSai(UErrorCode &status);
static MeasureUnit getSai();
#endif /* U_HIDE_DRAFT_API */
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createShaku(UErrorCode &status);
static MeasureUnit getShaku();
#endif /* U_HIDE_DRAFT_API */
static MeasureUnit *createTablespoon(UErrorCode &status);
static MeasureUnit getTablespoon();
static MeasureUnit *createTeaspoon(UErrorCode &status);
static MeasureUnit getTeaspoon();
#ifndef U_HIDE_DRAFT_API
static MeasureUnit *createToJp(UErrorCode &status);
static MeasureUnit getToJp();
#endif /* U_HIDE_DRAFT_API */
// End generated createXXX methods
protected:
#ifndef U_HIDE_INTERNAL_API
void initTime(const char *timeId);
void initCurrency(StringPiece isoCurrency);
#endif /* U_HIDE_INTERNAL_API */
private:
// Used by new draft APIs in ICU 67. If non-null, fImpl is owned by the
// MeasureUnit.
MeasureUnitImpl* fImpl;
// An index into a static string list in measunit.cpp. If set to -1, fImpl
// is in use instead of fTypeId and fSubTypeId.
int16_t fSubTypeId;
// An index into a static string list in measunit.cpp. If set to -1, fImpl
// is in use instead of fTypeId and fSubTypeId.
int8_t fTypeId;
MeasureUnit(int32_t typeId, int32_t subTypeId);
MeasureUnit(MeasureUnitImpl&& impl);
void setTo(int32_t typeId, int32_t subTypeId);
static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status);
static bool findBySubType(StringPiece subType, MeasureUnit* output);
LocalArray<MeasureUnit> splitToSingleUnitsImpl(int32_t& outCount, UErrorCode& status) const;
friend class MeasureUnitImpl;
// For access to findBySubType
friend class number::impl::LongNameHandler;
};
// inline impl of @stable ICU 68 method
inline std::pair<LocalArray<MeasureUnit>, int32_t>
MeasureUnit::splitToSingleUnits(UErrorCode& status) const {
int32_t length;
auto array = splitToSingleUnitsImpl(length, status);
return std::make_pair(std::move(array), length);
}
U_NAMESPACE_END
#endif // !UNCONFIG_NO_FORMATTING
#endif /* U_SHOW_CPLUSPLUS_API */
#endif // __MEASUREUNIT_H__
icu::LocalArray
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
Definition localpointer.h:364
icu::MeasureUnit::getBritishThermalUnit
static MeasureUnit getBritishThermalUnit()
Returns by value, unit of energy: british-thermal-unit.
icu::MeasureUnit::getInch
static MeasureUnit getInch()
Returns by value, unit of length: inch.
icu::MeasureUnit::createMeterPerSecondSquared
static MeasureUnit * createMeterPerSecondSquared(UErrorCode &status)
Returns by pointer, unit of acceleration: meter-per-square-second.
icu::MeasureUnit::getMilligramPerDeciliter
static MeasureUnit getMilligramPerDeciliter()
Returns by value, unit of concentr: milligram-per-deciliter.
icu::MeasureUnit::createDayPerson
static MeasureUnit * createDayPerson(UErrorCode &status)
Returns by pointer, unit of duration: day-person.
icu::MeasureUnit::createLumen
static MeasureUnit * createLumen(UErrorCode &status)
Returns by pointer, unit of light: lumen.
icu::MeasureUnit::createMillibar
static MeasureUnit * createMillibar(UErrorCode &status)
Returns by pointer, unit of pressure: millibar.
icu::MeasureUnit::getSievert
static MeasureUnit getSievert()
Returns by value, unit of energy: sievert.
icu::MeasureUnit::createDecade
static MeasureUnit * createDecade(UErrorCode &status)
Returns by pointer, unit of duration: decade.
icu::MeasureUnit::createArcMinute
static MeasureUnit * createArcMinute(UErrorCode &status)
Returns by pointer, unit of angle: arc-minute.
icu::MeasureUnit::getKilogramForce
static MeasureUnit getKilogramForce()
Returns by value, unit of force: kilogram-force.
icu::MeasureUnit::createKilowattHour
static MeasureUnit * createKilowattHour(UErrorCode &status)
Returns by pointer, unit of energy: kilowatt-hour.
icu::MeasureUnit::getAvailable
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.
icu::MeasureUnit::getKilobit
static MeasureUnit getKilobit()
Returns by value, unit of digital: kilobit.
icu::MeasureUnit::getLiterPerKilometer
static MeasureUnit getLiterPerKilometer()
Returns by value, unit of consumption: liter-per-kilometer.
icu::MeasureUnit::createOfhg
static MeasureUnit * createOfhg(UErrorCode &status)
Returns by pointer, unit of pressure: ofhg.
icu::MeasureUnit::getFortnight
static MeasureUnit getFortnight()
Returns by value, unit of duration: fortnight.
icu::MeasureUnit::createSteradian
static MeasureUnit * createSteradian(UErrorCode &status)
Returns by pointer, unit of angle: steradian.
icu::MeasureUnit::createLightSpeed
static MeasureUnit * createLightSpeed(UErrorCode &status)
Returns by pointer, unit of speed: light-speed.
icu::MeasureUnit::getNight
static MeasureUnit getNight()
Returns by value, unit of duration: night.
icu::MeasureUnit::createBecquerel
static MeasureUnit * createBecquerel(UErrorCode &status)
Returns by pointer, unit of energy: becquerel.
icu::MeasureUnit::getMillimolePerLiter
static MeasureUnit getMillimolePerLiter()
Returns by value, unit of concentr: millimole-per-liter.
icu::MeasureUnit::createKilobyte
static MeasureUnit * createKilobyte(UErrorCode &status)
Returns by pointer, unit of digital: kilobyte.
icu::MeasureUnit::getDegree
static MeasureUnit getDegree()
Returns by value, unit of angle: degree.
icu::MeasureUnit::getMilePerGallon
static MeasureUnit getMilePerGallon()
Returns by value, unit of consumption: mile-per-gallon.
icu::MeasureUnit::getKilohertz
static MeasureUnit getKilohertz()
Returns by value, unit of frequency: kilohertz.
icu::MeasureUnit::getKatal
static MeasureUnit getKatal()
Returns by value, unit of concentr: katal.
icu::MeasureUnit::createCubicFoot
static MeasureUnit * createCubicFoot(UErrorCode &status)
Returns by pointer, unit of volume: cubic-foot.
icu::MeasureUnit::getMinute
static MeasureUnit getMinute()
Returns by value, unit of duration: minute.
icu::MeasureUnit::getTerabyte
static MeasureUnit getTerabyte()
Returns by value, unit of digital: terabyte.
icu::MeasureUnit::getMillimeterOfMercury
static MeasureUnit getMillimeterOfMercury()
Returns by value, unit of pressure: millimeter-ofhg.
icu::MeasureUnit::getCubicYard
static MeasureUnit getCubicYard()
Returns by value, unit of volume: cubic-yard.
icu::MeasureUnit::initCurrency
void initCurrency(StringPiece isoCurrency)
For ICU use only.
icu::MeasureUnit::getGenericTemperature
static MeasureUnit getGenericTemperature()
Returns by value, unit of temperature: generic.
icu::MeasureUnit::getKilowattHour
static MeasureUnit getKilowattHour()
Returns by value, unit of energy: kilowatt-hour.
icu::MeasureUnit::getBit
static MeasureUnit getBit()
Returns by value, unit of digital: bit.
icu::MeasureUnit::getCho
static MeasureUnit getCho()
Returns by value, unit of area: cho.
icu::MeasureUnit::getStone
static MeasureUnit getStone()
Returns by value, unit of mass: stone.
icu::MeasureUnit::getPart
static MeasureUnit getPart()
Returns by value, unit of concentr: part.
icu::MeasureUnit::getParsec
static MeasureUnit getParsec()
Returns by value, unit of length: parsec.
icu::MeasureUnit::createQuart
static MeasureUnit * createQuart(UErrorCode &status)
Returns by pointer, unit of volume: quart.
icu::MeasureUnit::getKilopascal
static MeasureUnit getKilopascal()
Returns by value, unit of pressure: kilopascal.
icu::MeasureUnit::getHour
static MeasureUnit getHour()
Returns by value, unit of duration: hour.
icu::MeasureUnit::getLightSpeed
static MeasureUnit getLightSpeed()
Returns by value, unit of speed: light-speed.
icu::MeasureUnit::getPoundFoot
static MeasureUnit getPoundFoot()
Returns by value, unit of torque: pound-force-foot.
icu::MeasureUnit::createLightYear
static MeasureUnit * createLightYear(UErrorCode &status)
Returns by pointer, unit of length: light-year.
icu::MeasureUnit::createNanometer
static MeasureUnit * createNanometer(UErrorCode &status)
Returns by pointer, unit of length: nanometer.
icu::MeasureUnit::createMilligramOfglucosePerDeciliter
static MeasureUnit * createMilligramOfglucosePerDeciliter(UErrorCode &status)
Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.
icu::MeasureUnit::getPixelPerCentimeter
static MeasureUnit getPixelPerCentimeter()
Returns by value, unit of graphics: pixel-per-centimeter.
icu::MeasureUnit::createPart
static MeasureUnit * createPart(UErrorCode &status)
Returns by pointer, unit of concentr: part.
icu::MeasureUnit::getMegabyte
static MeasureUnit getMegabyte()
Returns by value, unit of digital: megabyte.
icu::MeasureUnit::getShaku
static MeasureUnit getShaku()
Returns by value, unit of volume: shaku.
icu::MeasureUnit::createKarat
static MeasureUnit * createKarat(UErrorCode &status)
Returns by pointer, unit of concentr: karat.
icu::MeasureUnit::createOhm
static MeasureUnit * createOhm(UErrorCode &status)
Returns by pointer, unit of electric: ohm.
icu::MeasureUnit::getKen
static MeasureUnit getKen()
Returns by value, unit of length: ken.
icu::MeasureUnit::createStone
static MeasureUnit * createStone(UErrorCode &status)
Returns by pointer, unit of mass: stone.
icu::MeasureUnit::getMile
static MeasureUnit getMile()
Returns by value, unit of length: mile.
icu::MeasureUnit::getPermyriad
static MeasureUnit getPermyriad()
Returns by value, unit of concentr: permyriad.
icu::MeasureUnit::createKilowattHourPer100Kilometer
static MeasureUnit * createKilowattHourPer100Kilometer(UErrorCode &status)
Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.
icu::MeasureUnit::createBuJp
static MeasureUnit * createBuJp(UErrorCode &status)
Returns by pointer, unit of area: bu-jp.
icu::MeasureUnit::createTesla
static MeasureUnit * createTesla(UErrorCode &status)
Returns by pointer, unit of magnetic: tesla.
icu::MeasureUnit::createPermille
static MeasureUnit * createPermille(UErrorCode &status)
Returns by pointer, unit of concentr: permille.
icu::MeasureUnit::createAcreFoot
static MeasureUnit * createAcreFoot(UErrorCode &status)
Returns by pointer, unit of volume: acre-foot.
icu::MeasureUnit::getAstronomicalUnit
static MeasureUnit getAstronomicalUnit()
Returns by value, unit of length: astronomical-unit.
icu::MeasureUnit::createHertz
static MeasureUnit * createHertz(UErrorCode &status)
Returns by pointer, unit of frequency: hertz.
icu::MeasureUnit::createVolt
static MeasureUnit * createVolt(UErrorCode &status)
Returns by pointer, unit of electric: volt.
icu::MeasureUnit::getBarrel
static MeasureUnit getBarrel()
Returns by value, unit of volume: barrel.
icu::MeasureUnit::createSquareKilometer
static MeasureUnit * createSquareKilometer(UErrorCode &status)
Returns by pointer, unit of area: square-kilometer.
icu::MeasureUnit::createFluidOunceImperial
static MeasureUnit * createFluidOunceImperial(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce-imperial.
icu::MeasureUnit::getSiemens
static MeasureUnit getSiemens()
Returns by value, unit of electric: siemens.
icu::MeasureUnit::createGenericTemperature
static MeasureUnit * createGenericTemperature(UErrorCode &status)
Returns by pointer, unit of temperature: generic.
icu::MeasureUnit::getDalton
static MeasureUnit getDalton()
Returns by value, unit of mass: dalton.
icu::MeasureUnit::getMilePerHour
static MeasureUnit getMilePerHour()
Returns by value, unit of speed: mile-per-hour.
icu::MeasureUnit::getTerabit
static MeasureUnit getTerabit()
Returns by value, unit of digital: terabit.
icu::MeasureUnit::createCup
static MeasureUnit * createCup(UErrorCode &status)
Returns by pointer, unit of volume: cup.
icu::MeasureUnit::getDotPerCentimeter
static MeasureUnit getDotPerCentimeter()
Returns by value, unit of graphics: dot-per-centimeter.
icu::MeasureUnit::getDimensionality
int32_t getDimensionality(UErrorCode &status) const
Gets the dimensionality (power) of this MeasureUnit.
icu::MeasureUnit::getCalorie
static MeasureUnit getCalorie()
Returns by value, unit of energy: calorie.
icu::MeasureUnit::createOfglucose
static MeasureUnit * createOfglucose(UErrorCode &status)
Returns by pointer, unit of concentr: ofglucose.
icu::MeasureUnit::getCentimeter
static MeasureUnit getCentimeter()
Returns by value, unit of length: centimeter.
icu::MeasureUnit::getJigger
static MeasureUnit getJigger()
Returns by value, unit of volume: jigger.
icu::MeasureUnit::getGigahertz
static MeasureUnit getGigahertz()
Returns by value, unit of frequency: gigahertz.
icu::MeasureUnit::getCupJp
static MeasureUnit getCupJp()
Returns by value, unit of volume: cup-jp.
icu::MeasureUnit::getPixelPerInch
static MeasureUnit getPixelPerInch()
Returns by value, unit of graphics: pixel-per-inch.
icu::MeasureUnit::getCalorieIt
static MeasureUnit getCalorieIt()
Returns by value, unit of energy: calorie-it.
icu::MeasureUnit::createMileScandinavian
static MeasureUnit * createMileScandinavian(UErrorCode &status)
Returns by pointer, unit of length: mile-scandinavian.
icu::MeasureUnit::getFoodcalorie
static MeasureUnit getFoodcalorie()
Returns by value, unit of energy: foodcalorie.
icu::MeasureUnit::createQuarter
static MeasureUnit * createQuarter(UErrorCode &status)
Returns by pointer, unit of duration: quarter.
icu::MeasureUnit::getKosaji
static MeasureUnit getKosaji()
Returns by value, unit of volume: kosaji.
icu::MeasureUnit::createInchHg
static MeasureUnit * createInchHg(UErrorCode &status)
Returns by pointer, unit of pressure: inch-ofhg.
icu::MeasureUnit::getMicrogram
static MeasureUnit getMicrogram()
Returns by value, unit of mass: microgram.
icu::MeasureUnit::createMilePerGallonImperial
static MeasureUnit * createMilePerGallonImperial(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon-imperial.
icu::MeasureUnit::getSquareKilometer
static MeasureUnit getSquareKilometer()
Returns by value, unit of area: square-kilometer.
icu::MeasureUnit::getKilometer
static MeasureUnit getKilometer()
Returns by value, unit of length: kilometer.
icu::MeasureUnit::getGigabyte
static MeasureUnit getGigabyte()
Returns by value, unit of digital: gigabyte.
icu::MeasureUnit::getFun
static MeasureUnit getFun()
Returns by value, unit of mass: fun.
icu::MeasureUnit::getMilligram
static MeasureUnit getMilligram()
Returns by value, unit of mass: milligram.
icu::MeasureUnit::getPascal
static MeasureUnit getPascal()
Returns by value, unit of pressure: pascal.
icu::MeasureUnit::createPixelPerInch
static MeasureUnit * createPixelPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-inch.
icu::MeasureUnit::getRadian
static MeasureUnit getRadian()
Returns by value, unit of angle: radian.
icu::MeasureUnit::getPoint
static MeasureUnit getPoint()
Returns by value, unit of length: point.
icu::MeasureUnit::getPoundForce
static MeasureUnit getPoundForce()
Returns by value, unit of force: pound-force.
icu::MeasureUnit::createWeber
static MeasureUnit * createWeber(UErrorCode &status)
Returns by pointer, unit of magnetic: weber.
icu::MeasureUnit::createCho
static MeasureUnit * createCho(UErrorCode &status)
Returns by pointer, unit of area: cho.
icu::MeasureUnit::createTerabit
static MeasureUnit * createTerabit(UErrorCode &status)
Returns by pointer, unit of digital: terabit.
icu::MeasureUnit::createMegapascal
static MeasureUnit * createMegapascal(UErrorCode &status)
Returns by pointer, unit of pressure: megapascal.
icu::MeasureUnit::product
MeasureUnit product(const MeasureUnit &other, UErrorCode &status) const
Gets the product of this unit with another unit.
icu::MeasureUnit::getFarad
static MeasureUnit getFarad()
Returns by value, unit of electric: farad.
icu::MeasureUnit::createYear
static MeasureUnit * createYear(UErrorCode &status)
Returns by pointer, unit of duration: year.
icu::MeasureUnit::createMile
static MeasureUnit * createMile(UErrorCode &status)
Returns by pointer, unit of length: mile.
icu::MeasureUnit::createMonth
static MeasureUnit * createMonth(UErrorCode &status)
Returns by pointer, unit of duration: month.
icu::MeasureUnit::createDessertSpoonImperial
static MeasureUnit * createDessertSpoonImperial(UErrorCode &status)
Returns by pointer, unit of volume: dessert-spoon-imperial.
icu::MeasureUnit::getKilocalorie
static MeasureUnit getKilocalorie()
Returns by value, unit of energy: kilocalorie.
icu::MeasureUnit::getMicrosecond
static MeasureUnit getMicrosecond()
Returns by value, unit of duration: microsecond.
icu::MeasureUnit::getBushel
static MeasureUnit getBushel()
Returns by value, unit of volume: bushel.
icu::MeasureUnit::createPintImperial
static MeasureUnit * createPintImperial(UErrorCode &status)
Returns by pointer, unit of volume: pint-imperial.
icu::MeasureUnit::createMilliampere
static MeasureUnit * createMilliampere(UErrorCode &status)
Returns by pointer, unit of electric: milliampere.
icu::MeasureUnit::getFluidOunce
static MeasureUnit getFluidOunce()
Returns by value, unit of volume: fluid-ounce.
icu::MeasureUnit::getHectoliter
static MeasureUnit getHectoliter()
Returns by value, unit of volume: hectoliter.
icu::MeasureUnit::createGray
static MeasureUnit * createGray(UErrorCode &status)
Returns by pointer, unit of energy: gray.
icu::MeasureUnit::createDunam
static MeasureUnit * createDunam(UErrorCode &status)
Returns by pointer, unit of area: dunam.
icu::MeasureUnit::createMegabit
static MeasureUnit * createMegabit(UErrorCode &status)
Returns by pointer, unit of digital: megabit.
icu::MeasureUnit::getCarat
static MeasureUnit getCarat()
Returns by value, unit of mass: carat.
icu::MeasureUnit::getVolt
static MeasureUnit getVolt()
Returns by value, unit of electric: volt.
icu::MeasureUnit::getPartPer1E6
static MeasureUnit getPartPer1E6()
Returns by value, unit of concentr: part-per-1e6.
icu::MeasureUnit::createThermUs
static MeasureUnit * createThermUs(UErrorCode &status)
Returns by pointer, unit of energy: therm-us.
icu::MeasureUnit::createAtmosphere
static MeasureUnit * createAtmosphere(UErrorCode &status)
Returns by pointer, unit of pressure: atmosphere.
icu::MeasureUnit::getBuJp
static MeasureUnit getBuJp()
Returns by value, unit of area: bu-jp.
icu::MeasureUnit::getOunce
static MeasureUnit getOunce()
Returns by value, unit of mass: ounce.
icu::MeasureUnit::getConstantDenominator
uint64_t getConstantDenominator(UErrorCode &status) const
Retrieves the constant denominator for this COMPOUND unit.
icu::MeasureUnit::getHectare
static MeasureUnit getHectare()
Returns by value, unit of area: hectare.
icu::MeasureUnit::getNanosecond
static MeasureUnit getNanosecond()
Returns by value, unit of duration: nanosecond.
icu::MeasureUnit::createPixelPerCentimeter
static MeasureUnit * createPixelPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-centimeter.
icu::MeasureUnit::getEarthMass
static MeasureUnit getEarthMass()
Returns by value, unit of mass: earth-mass.
icu::MeasureUnit::createPintMetric
static MeasureUnit * createPintMetric(UErrorCode &status)
Returns by pointer, unit of volume: pint-metric.
icu::MeasureUnit::getFahrenheit
static MeasureUnit getFahrenheit()
Returns by value, unit of temperature: fahrenheit.
icu::MeasureUnit::createKatal
static MeasureUnit * createKatal(UErrorCode &status)
Returns by pointer, unit of concentr: katal.
icu::MeasureUnit::createOunce
static MeasureUnit * createOunce(UErrorCode &status)
Returns by pointer, unit of mass: ounce.
icu::MeasureUnit::getAvailable
static int32_t getAvailable(MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
getAvailable gets all of the available units.
icu::MeasureUnit::createKilohertz
static MeasureUnit * createKilohertz(UErrorCode &status)
Returns by pointer, unit of frequency: kilohertz.
icu::MeasureUnit::getMileScandinavian
static MeasureUnit getMileScandinavian()
Returns by value, unit of length: mile-scandinavian.
icu::MeasureUnit::getMegapascal
static MeasureUnit getMegapascal()
Returns by value, unit of pressure: megapascal.
icu::MeasureUnit::createNewton
static MeasureUnit * createNewton(UErrorCode &status)
Returns by pointer, unit of force: newton.
icu::MeasureUnit::getDeciliter
static MeasureUnit getDeciliter()
Returns by value, unit of volume: deciliter.
icu::MeasureUnit::clone
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.
icu::MeasureUnit::createMilliwatt
static MeasureUnit * createMilliwatt(UErrorCode &status)
Returns by pointer, unit of power: milliwatt.
icu::MeasureUnit::createMicrosecond
static MeasureUnit * createMicrosecond(UErrorCode &status)
Returns by pointer, unit of duration: microsecond.
icu::MeasureUnit::getPartPer1E9
static MeasureUnit getPartPer1E9()
Returns by value, unit of concentr: part-per-1e9.
icu::MeasureUnit::getPixel
static MeasureUnit getPixel()
Returns by value, unit of graphics: pixel.
icu::MeasureUnit::createPascal
static MeasureUnit * createPascal(UErrorCode &status)
Returns by pointer, unit of pressure: pascal.
icu::MeasureUnit::MeasureUnit
MeasureUnit(const MeasureUnit &other)
Copy constructor.
icu::MeasureUnit::createCarat
static MeasureUnit * createCarat(UErrorCode &status)
Returns by pointer, unit of mass: carat.
icu::MeasureUnit::getSolarLuminosity
static MeasureUnit getSolarLuminosity()
Returns by value, unit of light: solar-luminosity.
icu::MeasureUnit::createGigabyte
static MeasureUnit * createGigabyte(UErrorCode &status)
Returns by pointer, unit of digital: gigabyte.
icu::MeasureUnit::createGigabit
static MeasureUnit * createGigabit(UErrorCode &status)
Returns by pointer, unit of digital: gigabit.
icu::MeasureUnit::getMonthPerson
static MeasureUnit getMonthPerson()
Returns by value, unit of duration: month-person.
icu::MeasureUnit::createParsec
static MeasureUnit * createParsec(UErrorCode &status)
Returns by pointer, unit of length: parsec.
icu::MeasureUnit::createLux
static MeasureUnit * createLux(UErrorCode &status)
Returns by pointer, unit of light: lux.
icu::MeasureUnit::createSiemens
static MeasureUnit * createSiemens(UErrorCode &status)
Returns by pointer, unit of electric: siemens.
icu::MeasureUnit::createWeek
static MeasureUnit * createWeek(UErrorCode &status)
Returns by pointer, unit of duration: week.
icu::MeasureUnit::createShakuLength
static MeasureUnit * createShakuLength(UErrorCode &status)
Returns by pointer, unit of length: shaku-length.
icu::MeasureUnit::getCentiliter
static MeasureUnit getCentiliter()
Returns by value, unit of volume: centiliter.
icu::MeasureUnit::createBeaufort
static MeasureUnit * createBeaufort(UErrorCode &status)
Returns by pointer, unit of speed: beaufort.
icu::MeasureUnit::getPartPerMillion
static MeasureUnit getPartPerMillion()
Returns by value, unit of concentr: part-per-million.
icu::MeasureUnit::createJoule
static MeasureUnit * createJoule(UErrorCode &status)
Returns by pointer, unit of energy: joule.
icu::MeasureUnit::createSolarMass
static MeasureUnit * createSolarMass(UErrorCode &status)
Returns by pointer, unit of mass: solar-mass.
icu::MeasureUnit::getMegawatt
static MeasureUnit getMegawatt()
Returns by value, unit of power: megawatt.
icu::MeasureUnit::getShakuCloth
static MeasureUnit getShakuCloth()
Returns by value, unit of length: shaku-cloth.
icu::MeasureUnit::getComplexity
UMeasureUnitComplexity getComplexity(UErrorCode &status) const
Compute the complexity of the unit.
icu::MeasureUnit::getGigabit
static MeasureUnit getGigabit()
Returns by value, unit of digital: gigabit.
icu::MeasureUnit::getTon
static MeasureUnit getTon()
Returns by value, unit of mass: ton.
icu::MeasureUnit::createNight
static MeasureUnit * createNight(UErrorCode &status)
Returns by pointer, unit of duration: night.
icu::MeasureUnit::getBeaufort
static MeasureUnit getBeaufort()
Returns by value, unit of speed: beaufort.
icu::MeasureUnit::createMilliliter
static MeasureUnit * createMilliliter(UErrorCode &status)
Returns by pointer, unit of volume: milliliter.
icu::MeasureUnit::createHour
static MeasureUnit * createHour(UErrorCode &status)
Returns by pointer, unit of duration: hour.
icu::MeasureUnit::getGray
static MeasureUnit getGray()
Returns by value, unit of energy: gray.
icu::MeasureUnit::getFurlong
static MeasureUnit getFurlong()
Returns by value, unit of length: furlong.
icu::MeasureUnit::getBecquerel
static MeasureUnit getBecquerel()
Returns by value, unit of energy: becquerel.
icu::MeasureUnit::createBit
static MeasureUnit * createBit(UErrorCode &status)
Returns by pointer, unit of digital: bit.
icu::MeasureUnit::getLightYear
static MeasureUnit getLightYear()
Returns by value, unit of length: light-year.
icu::MeasureUnit::createSun
static MeasureUnit * createSun(UErrorCode &status)
Returns by pointer, unit of length: sun.
icu::MeasureUnit::getHenry
static MeasureUnit getHenry()
Returns by value, unit of electric: henry.
icu::MeasureUnit::getJoJp
static MeasureUnit getJoJp()
Returns by value, unit of length: jo-jp.
icu::MeasureUnit::getJoule
static MeasureUnit getJoule()
Returns by value, unit of energy: joule.
icu::MeasureUnit::createFarad
static MeasureUnit * createFarad(UErrorCode &status)
Returns by pointer, unit of electric: farad.
icu::MeasureUnit::getTeaspoon
static MeasureUnit getTeaspoon()
Returns by value, unit of volume: teaspoon.
icu::MeasureUnit::getWeekPerson
static MeasureUnit getWeekPerson()
Returns by value, unit of duration: week-person.
icu::MeasureUnit::createDram
static MeasureUnit * createDram(UErrorCode &status)
Returns by pointer, unit of volume: dram.
icu::MeasureUnit::getLiter
static MeasureUnit getLiter()
Returns by value, unit of volume: liter.
icu::MeasureUnit::getPermille
static MeasureUnit getPermille()
Returns by value, unit of concentr: permille.
icu::MeasureUnit::createElectronvolt
static MeasureUnit * createElectronvolt(UErrorCode &status)
Returns by pointer, unit of energy: electronvolt.
icu::MeasureUnit::getYard
static MeasureUnit getYard()
Returns by value, unit of length: yard.
icu::MeasureUnit::createCubicYard
static MeasureUnit * createCubicYard(UErrorCode &status)
Returns by pointer, unit of volume: cubic-yard.
icu::MeasureUnit::getByte
static MeasureUnit getByte()
Returns by value, unit of digital: byte.
icu::MeasureUnit::getKilogram
static MeasureUnit getKilogram()
Returns by value, unit of mass: kilogram.
icu::MeasureUnit::createEarthMass
static MeasureUnit * createEarthMass(UErrorCode &status)
Returns by pointer, unit of mass: earth-mass.
icu::MeasureUnit::createCalorie
static MeasureUnit * createCalorie(UErrorCode &status)
Returns by pointer, unit of energy: calorie.
icu::MeasureUnit::getDessertSpoon
static MeasureUnit getDessertSpoon()
Returns by value, unit of volume: dessert-spoon.
icu::MeasureUnit::getDrop
static MeasureUnit getDrop()
Returns by value, unit of volume: drop.
icu::MeasureUnit::createKilogramForce
static MeasureUnit * createKilogramForce(UErrorCode &status)
Returns by pointer, unit of force: kilogram-force.
icu::MeasureUnit::getPrefix
UMeasurePrefix getPrefix(UErrorCode &status) const
Returns the current SI or binary prefix of this SINGLE unit.
icu::MeasureUnit::createFahrenheit
static MeasureUnit * createFahrenheit(UErrorCode &status)
Returns by pointer, unit of temperature: fahrenheit.
icu::MeasureUnit::createQuartImperial
static MeasureUnit * createQuartImperial(UErrorCode &status)
Returns by pointer, unit of volume: quart-imperial.
icu::MeasureUnit::createSai
static MeasureUnit * createSai(UErrorCode &status)
Returns by pointer, unit of volume: sai.
icu::MeasureUnit::getSquareYard
static MeasureUnit getSquareYard()
Returns by value, unit of area: square-yard.
icu::MeasureUnit::createDot
static MeasureUnit * createDot(UErrorCode &status)
Returns by pointer, unit of graphics: dot.
icu::MeasureUnit::createDay
static MeasureUnit * createDay(UErrorCode &status)
Returns by pointer, unit of duration: day.
icu::MeasureUnit::createDrop
static MeasureUnit * createDrop(UErrorCode &status)
Returns by pointer, unit of volume: drop.
icu::MeasureUnit::createBritishThermalUnit
static MeasureUnit * createBritishThermalUnit(UErrorCode &status)
Returns by pointer, unit of energy: british-thermal-unit.
icu::MeasureUnit::getDot
static MeasureUnit getDot()
Returns by value, unit of graphics: dot.
icu::MeasureUnit::createDeciliter
static MeasureUnit * createDeciliter(UErrorCode &status)
Returns by pointer, unit of volume: deciliter.
icu::MeasureUnit::createPercent
static MeasureUnit * createPercent(UErrorCode &status)
Returns by pointer, unit of concentr: percent.
icu::MeasureUnit::getDunam
static MeasureUnit getDunam()
Returns by value, unit of area: dunam.
icu::MeasureUnit::getDessertSpoonImperial
static MeasureUnit getDessertSpoonImperial()
Returns by value, unit of volume: dessert-spoon-imperial.
icu::MeasureUnit::createChain
static MeasureUnit * createChain(UErrorCode &status)
Returns by pointer, unit of length: chain.
icu::MeasureUnit::getKilowatt
static MeasureUnit getKilowatt()
Returns by value, unit of power: kilowatt.
icu::MeasureUnit::getBritishThermalUnitIt
static MeasureUnit getBritishThermalUnitIt()
Returns by value, unit of energy: british-thermal-unit-it.
icu::MeasureUnit::createHectare
static MeasureUnit * createHectare(UErrorCode &status)
Returns by pointer, unit of area: hectare.
icu::MeasureUnit::getSun
static MeasureUnit getSun()
Returns by value, unit of length: sun.
icu::MeasureUnit::createJoJp
static MeasureUnit * createJoJp(UErrorCode &status)
Returns by pointer, unit of length: jo-jp.
icu::MeasureUnit::getSolarRadius
static MeasureUnit getSolarRadius()
Returns by value, unit of length: solar-radius.
icu::MeasureUnit::getMegapixel
static MeasureUnit getMegapixel()
Returns by value, unit of graphics: megapixel.
icu::MeasureUnit::operator=
MeasureUnit & operator=(MeasureUnit &&other) noexcept
Move assignment operator.
icu::MeasureUnit::getLux
static MeasureUnit getLux()
Returns by value, unit of light: lux.
icu::MeasureUnit::getMillimeter
static MeasureUnit getMillimeter()
Returns by value, unit of length: millimeter.
icu::MeasureUnit::getChain
static MeasureUnit getChain()
Returns by value, unit of length: chain.
icu::MeasureUnit::createShaku
static MeasureUnit * createShaku(UErrorCode &status)
Returns by pointer, unit of volume: shaku.
icu::MeasureUnit::createMinute
static MeasureUnit * createMinute(UErrorCode &status)
Returns by pointer, unit of duration: minute.
icu::MeasureUnit::createKilometerPerHour
static MeasureUnit * createKilometerPerHour(UErrorCode &status)
Returns by pointer, unit of speed: kilometer-per-hour.
icu::MeasureUnit::getMilliwatt
static MeasureUnit getMilliwatt()
Returns by value, unit of power: milliwatt.
icu::MeasureUnit::getOunceTroy
static MeasureUnit getOunceTroy()
Returns by value, unit of mass: ounce-troy.
icu::MeasureUnit::getNewtonMeter
static MeasureUnit getNewtonMeter()
Returns by value, unit of torque: newton-meter.
icu::MeasureUnit::getAcreFoot
static MeasureUnit getAcreFoot()
Returns by value, unit of volume: acre-foot.
icu::MeasureUnit::createRiJp
static MeasureUnit * createRiJp(UErrorCode &status)
Returns by pointer, unit of length: ri-jp.
icu::MeasureUnit::createYard
static MeasureUnit * createYard(UErrorCode &status)
Returns by pointer, unit of length: yard.
icu::MeasureUnit::createCupJp
static MeasureUnit * createCupJp(UErrorCode &status)
Returns by pointer, unit of volume: cup-jp.
icu::MeasureUnit::getCandela
static MeasureUnit getCandela()
Returns by value, unit of light: candela.
icu::MeasureUnit::getKoku
static MeasureUnit getKoku()
Returns by value, unit of volume: koku.
icu::MeasureUnit::createMilligram
static MeasureUnit * createMilligram(UErrorCode &status)
Returns by pointer, unit of mass: milligram.
icu::MeasureUnit::getNauticalMile
static MeasureUnit getNauticalMile()
Returns by value, unit of length: nautical-mile.
icu::MeasureUnit::createCupImperial
static MeasureUnit * createCupImperial(UErrorCode &status)
Returns by pointer, unit of volume: cup-imperial.
icu::MeasureUnit::createItem
static MeasureUnit * createItem(UErrorCode &status)
Returns by pointer, unit of concentr: item.
icu::MeasureUnit::createEm
static MeasureUnit * createEm(UErrorCode &status)
Returns by pointer, unit of graphics: em.
icu::MeasureUnit::getDynamicClassID
virtual UClassID getDynamicClassID() const override
Returns a unique class ID POLYMORPHICALLY.
icu::MeasureUnit::createOunceTroy
static MeasureUnit * createOunceTroy(UErrorCode &status)
Returns by pointer, unit of mass: ounce-troy.
icu::MeasureUnit::getMegaliter
static MeasureUnit getMegaliter()
Returns by value, unit of volume: megaliter.
icu::MeasureUnit::createHorsepower
static MeasureUnit * createHorsepower(UErrorCode &status)
Returns by pointer, unit of power: horsepower.
icu::MeasureUnit::getWatt
static MeasureUnit getWatt()
Returns by value, unit of power: watt.
icu::MeasureUnit::getAvailableTypes
static StringEnumeration * getAvailableTypes(UErrorCode &errorCode)
getAvailableTypes gets all of the available types.
icu::MeasureUnit::createOsaji
static MeasureUnit * createOsaji(UErrorCode &status)
Returns by pointer, unit of volume: osaji.
icu::MeasureUnit::createMegabyte
static MeasureUnit * createMegabyte(UErrorCode &status)
Returns by pointer, unit of digital: megabyte.
icu::MeasureUnit::createSquareCentimeter
static MeasureUnit * createSquareCentimeter(UErrorCode &status)
Returns by pointer, unit of area: square-centimeter.
icu::MeasureUnit::getFluidOunceImperial
static MeasureUnit getFluidOunceImperial()
Returns by value, unit of volume: fluid-ounce-imperial.
icu::MeasureUnit::getPintMetric
static MeasureUnit getPintMetric()
Returns by value, unit of volume: pint-metric.
icu::MeasureUnit::getSquareFoot
static MeasureUnit getSquareFoot()
Returns by value, unit of area: square-foot.
icu::MeasureUnit::getGigawatt
static MeasureUnit getGigawatt()
Returns by value, unit of power: gigawatt.
icu::MeasureUnit::createGallon
static MeasureUnit * createGallon(UErrorCode &status)
Returns by pointer, unit of volume: gallon.
icu::MeasureUnit::createHenry
static MeasureUnit * createHenry(UErrorCode &status)
Returns by pointer, unit of electric: henry.
icu::MeasureUnit::getCoulomb
static MeasureUnit getCoulomb()
Returns by value, unit of electric: coulomb.
icu::MeasureUnit::createWeekPerson
static MeasureUnit * createWeekPerson(UErrorCode &status)
Returns by pointer, unit of duration: week-person.
icu::MeasureUnit::getMilliampere
static MeasureUnit getMilliampere()
Returns by value, unit of electric: milliampere.
icu::MeasureUnit::createHectopascal
static MeasureUnit * createHectopascal(UErrorCode &status)
Returns by pointer, unit of pressure: hectopascal.
icu::MeasureUnit::getDram
static MeasureUnit getDram()
Returns by value, unit of volume: dram.
icu::MeasureUnit::createSquareFoot
static MeasureUnit * createSquareFoot(UErrorCode &status)
Returns by pointer, unit of area: square-foot.
icu::MeasureUnit::createKilojoule
static MeasureUnit * createKilojoule(UErrorCode &status)
Returns by pointer, unit of energy: kilojoule.
icu::MeasureUnit::getHectopascal
static MeasureUnit getHectopascal()
Returns by value, unit of pressure: hectopascal.
icu::MeasureUnit::createPermyriad
static MeasureUnit * createPermyriad(UErrorCode &status)
Returns by pointer, unit of concentr: permyriad.
icu::MeasureUnit::createGigahertz
static MeasureUnit * createGigahertz(UErrorCode &status)
Returns by pointer, unit of frequency: gigahertz.
icu::MeasureUnit::getSquareMeter
static MeasureUnit getSquareMeter()
Returns by value, unit of area: square-meter.
icu::MeasureUnit::createGallonImperial
static MeasureUnit * createGallonImperial(UErrorCode &status)
Returns by pointer, unit of volume: gallon-imperial.
icu::MeasureUnit::getKilowattHourPer100Kilometer
static MeasureUnit getKilowattHourPer100Kilometer()
Returns by value, unit of force: kilowatt-hour-per-100-kilometer.
icu::MeasureUnit::createSquareYard
static MeasureUnit * createSquareYard(UErrorCode &status)
Returns by pointer, unit of area: square-yard.
icu::MeasureUnit::createGigawatt
static MeasureUnit * createGigawatt(UErrorCode &status)
Returns by pointer, unit of power: gigawatt.
icu::MeasureUnit::createPetabyte
static MeasureUnit * createPetabyte(UErrorCode &status)
Returns by pointer, unit of digital: petabyte.
icu::MeasureUnit::getCupMetric
static MeasureUnit getCupMetric()
Returns by value, unit of volume: cup-metric.
icu::MeasureUnit::createBritishThermalUnitIt
static MeasureUnit * createBritishThermalUnitIt(UErrorCode &status)
Returns by pointer, unit of energy: british-thermal-unit-it.
icu::MeasureUnit::createBushel
static MeasureUnit * createBushel(UErrorCode &status)
Returns by pointer, unit of volume: bushel.
icu::MeasureUnit::getMillisecond
static MeasureUnit getMillisecond()
Returns by value, unit of duration: millisecond.
icu::MeasureUnit::createGasolineEnergyDensity
static MeasureUnit * createGasolineEnergyDensity(UErrorCode &status)
Returns by pointer, unit of pressure: gasoline-energy-density.
icu::MeasureUnit::createCentimeter
static MeasureUnit * createCentimeter(UErrorCode &status)
Returns by pointer, unit of length: centimeter.
icu::MeasureUnit::createDotPerInch
static MeasureUnit * createDotPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-inch.
icu::MeasureUnit::getSubtype
const char * getSubtype() const
Get the sub type.
icu::MeasureUnit::createFortnight
static MeasureUnit * createFortnight(UErrorCode &status)
Returns by pointer, unit of duration: fortnight.
icu::MeasureUnit::createRadian
static MeasureUnit * createRadian(UErrorCode &status)
Returns by pointer, unit of angle: radian.
icu::MeasureUnit::createCubicMeter
static MeasureUnit * createCubicMeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-meter.
icu::MeasureUnit::getArcMinute
static MeasureUnit getArcMinute()
Returns by value, unit of angle: arc-minute.
icu::MeasureUnit::createWatt
static MeasureUnit * createWatt(UErrorCode &status)
Returns by pointer, unit of power: watt.
icu::MeasureUnit::MeasureUnit
MeasureUnit(MeasureUnit &&other) noexcept
Move constructor.
icu::MeasureUnit::forIdentifier
static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode &status)
Constructs a MeasureUnit from a CLDR Core Unit Identifier, as defined in UTS 35.
icu::MeasureUnit::createMetricTon
static MeasureUnit * createMetricTon(UErrorCode &status)
Returns by pointer, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
icu::MeasureUnit::createMeter
static MeasureUnit * createMeter(UErrorCode &status)
Returns by pointer, unit of length: meter.
icu::MeasureUnit::getItem
static MeasureUnit getItem()
Returns by value, unit of concentr: item.
icu::MeasureUnit::createEarthRadius
static MeasureUnit * createEarthRadius(UErrorCode &status)
Returns by pointer, unit of length: earth-radius.
icu::MeasureUnit::createLiter
static MeasureUnit * createLiter(UErrorCode &status)
Returns by pointer, unit of volume: liter.
icu::MeasureUnit::createPint
static MeasureUnit * createPint(UErrorCode &status)
Returns by pointer, unit of volume: pint.
icu::MeasureUnit::getMillibar
static MeasureUnit getMillibar()
Returns by value, unit of pressure: millibar.
icu::MeasureUnit::createBarrel
static MeasureUnit * createBarrel(UErrorCode &status)
Returns by pointer, unit of volume: barrel.
icu::MeasureUnit::getPetabyte
static MeasureUnit getPetabyte()
Returns by value, unit of digital: petabyte.
icu::MeasureUnit::createTonne
static MeasureUnit * createTonne(UErrorCode &status)
Returns by pointer, unit of mass: tonne.
icu::MeasureUnit::getYearPerson
static MeasureUnit getYearPerson()
Returns by value, unit of duration: year-person.
icu::MeasureUnit::getGrain
static MeasureUnit getGrain()
Returns by value, unit of mass: grain.
icu::MeasureUnit::MeasureUnit
MeasureUnit()
Default constructor.
icu::MeasureUnit::getDayPerson
static MeasureUnit getDayPerson()
Returns by value, unit of duration: day-person.
icu::MeasureUnit::createTablespoon
static MeasureUnit * createTablespoon(UErrorCode &status)
Returns by pointer, unit of volume: tablespoon.
icu::MeasureUnit::createMeterPerSecond
static MeasureUnit * createMeterPerSecond(UErrorCode &status)
Returns by pointer, unit of speed: meter-per-second.
icu::MeasureUnit::createKoku
static MeasureUnit * createKoku(UErrorCode &status)
Returns by pointer, unit of volume: koku.
icu::MeasureUnit::createFoot
static MeasureUnit * createFoot(UErrorCode &status)
Returns by pointer, unit of length: foot.
icu::MeasureUnit::createLiterPer100Kilometers
static MeasureUnit * createLiterPer100Kilometers(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-100-kilometer.
icu::MeasureUnit::createSquareMeter
static MeasureUnit * createSquareMeter(UErrorCode &status)
Returns by pointer, unit of area: square-meter.
icu::MeasureUnit::getNanometer
static MeasureUnit getNanometer()
Returns by value, unit of length: nanometer.
icu::MeasureUnit::getGram
static MeasureUnit getGram()
Returns by value, unit of mass: gram.
icu::MeasureUnit::getOsaji
static MeasureUnit getOsaji()
Returns by value, unit of volume: osaji.
icu::MeasureUnit::getStaticClassID
static UClassID getStaticClassID()
Return the class ID for this class.
icu::MeasureUnit::createMonthPerson
static MeasureUnit * createMonthPerson(UErrorCode &status)
Returns by pointer, unit of duration: month-person.
icu::MeasureUnit::getOfglucose
static MeasureUnit getOfglucose()
Returns by value, unit of concentr: ofglucose.
icu::MeasureUnit::getSquareInch
static MeasureUnit getSquareInch()
Returns by value, unit of area: square-inch.
icu::MeasureUnit::getFluidOunceMetric
static MeasureUnit getFluidOunceMetric()
Returns by value, unit of volume: fluid-ounce-metric.
icu::MeasureUnit::getAtmosphere
static MeasureUnit getAtmosphere()
Returns by value, unit of pressure: atmosphere.
icu::MeasureUnit::getKarat
static MeasureUnit getKarat()
Returns by value, unit of concentr: karat.
icu::MeasureUnit::getEarthRadius
static MeasureUnit getEarthRadius()
Returns by value, unit of length: earth-radius.
icu::MeasureUnit::getMole
static MeasureUnit getMole()
Returns by value, unit of concentr: mole.
icu::MeasureUnit::getMilePerGallonImperial
static MeasureUnit getMilePerGallonImperial()
Returns by value, unit of consumption: mile-per-gallon-imperial.
icu::MeasureUnit::getMegahertz
static MeasureUnit getMegahertz()
Returns by value, unit of frequency: megahertz.
icu::MeasureUnit::createRevolutionAngle
static MeasureUnit * createRevolutionAngle(UErrorCode &status)
Returns by pointer, unit of angle: revolution.
icu::MeasureUnit::operator=
MeasureUnit & operator=(const MeasureUnit &other)
Copy assignment operator.
icu::MeasureUnit::getPintImperial
static MeasureUnit getPintImperial()
Returns by value, unit of volume: pint-imperial.
icu::MeasureUnit::createCelsius
static MeasureUnit * createCelsius(UErrorCode &status)
Returns by pointer, unit of temperature: celsius.
icu::MeasureUnit::getRiJp
static MeasureUnit getRiJp()
Returns by value, unit of length: ri-jp.
icu::MeasureUnit::createDegree
static MeasureUnit * createDegree(UErrorCode &status)
Returns by pointer, unit of angle: degree.
icu::MeasureUnit::createKilobit
static MeasureUnit * createKilobit(UErrorCode &status)
Returns by pointer, unit of digital: kilobit.
icu::MeasureUnit::createKelvin
static MeasureUnit * createKelvin(UErrorCode &status)
Returns by pointer, unit of temperature: kelvin.
icu::MeasureUnit::getQuartImperial
static MeasureUnit getQuartImperial()
Returns by value, unit of volume: quart-imperial.
icu::MeasureUnit::createSievert
static MeasureUnit * createSievert(UErrorCode &status)
Returns by pointer, unit of energy: sievert.
icu::MeasureUnit::createMole
static MeasureUnit * createMole(UErrorCode &status)
Returns by pointer, unit of concentr: mole.
icu::MeasureUnit::createPinch
static MeasureUnit * createPinch(UErrorCode &status)
Returns by pointer, unit of volume: pinch.
icu::MeasureUnit::getMegabit
static MeasureUnit getMegabit()
Returns by value, unit of digital: megabit.
icu::MeasureUnit::getToJp
static MeasureUnit getToJp()
Returns by value, unit of volume: to-jp.
icu::MeasureUnit::createFun
static MeasureUnit * createFun(UErrorCode &status)
Returns by pointer, unit of mass: fun.
icu::MeasureUnit::createSolarRadius
static MeasureUnit * createSolarRadius(UErrorCode &status)
Returns by pointer, unit of length: solar-radius.
icu::MeasureUnit::createCubicMile
static MeasureUnit * createCubicMile(UErrorCode &status)
Returns by pointer, unit of volume: cubic-mile.
icu::MeasureUnit::createSquareInch
static MeasureUnit * createSquareInch(UErrorCode &status)
Returns by pointer, unit of area: square-inch.
icu::MeasureUnit::createPartPer1E9
static MeasureUnit * createPartPer1E9(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-1e9.
icu::MeasureUnit::getHertz
static MeasureUnit getHertz()
Returns by value, unit of frequency: hertz.
icu::MeasureUnit::getTonne
static MeasureUnit getTonne()
Returns by value, unit of mass: tonne.
icu::MeasureUnit::getKilobyte
static MeasureUnit getKilobyte()
Returns by value, unit of digital: kilobyte.
icu::MeasureUnit::getMeterPerSecond
static MeasureUnit getMeterPerSecond()
Returns by value, unit of speed: meter-per-second.
icu::MeasureUnit::withConstantDenominator
MeasureUnit withConstantDenominator(uint64_t denominator, UErrorCode &status) const
Creates a new MeasureUnit with a specified constant denominator.
icu::MeasureUnit::getTesla
static MeasureUnit getTesla()
Returns by value, unit of magnetic: tesla.
icu::MeasureUnit::~MeasureUnit
virtual ~MeasureUnit()
Destructor.
icu::MeasureUnit::getMilliliter
static MeasureUnit getMilliliter()
Returns by value, unit of volume: milliliter.
icu::MeasureUnit::createGram
static MeasureUnit * createGram(UErrorCode &status)
Returns by pointer, unit of mass: gram.
icu::MeasureUnit::createMillimeterOfMercury
static MeasureUnit * createMillimeterOfMercury(UErrorCode &status)
Returns by pointer, unit of pressure: millimeter-ofhg.
icu::MeasureUnit::createShakuCloth
static MeasureUnit * createShakuCloth(UErrorCode &status)
Returns by pointer, unit of length: shaku-cloth.
icu::MeasureUnit::createPoundPerSquareInch
static MeasureUnit * createPoundPerSquareInch(UErrorCode &status)
Returns by pointer, unit of pressure: pound-force-per-square-inch.
icu::MeasureUnit::createMicrometer
static MeasureUnit * createMicrometer(UErrorCode &status)
Returns by pointer, unit of length: micrometer.
icu::MeasureUnit::getDay
static MeasureUnit getDay()
Returns by value, unit of duration: day.
icu::MeasureUnit::createDecimeter
static MeasureUnit * createDecimeter(UErrorCode &status)
Returns by pointer, unit of length: decimeter.
icu::MeasureUnit::createPound
static MeasureUnit * createPound(UErrorCode &status)
Returns by pointer, unit of mass: pound.
icu::MeasureUnit::reciprocal
MeasureUnit reciprocal(UErrorCode &status) const
Gets the reciprocal of this MeasureUnit, with the numerator and denominator flipped.
icu::MeasureUnit::getQuarter
static MeasureUnit getQuarter()
Returns by value, unit of duration: quarter.
icu::MeasureUnit::createDotPerCentimeter
static MeasureUnit * createDotPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-centimeter.
icu::MeasureUnit::createAcre
static MeasureUnit * createAcre(UErrorCode &status)
Returns by pointer, unit of area: acre.
icu::MeasureUnit::getCubicFoot
static MeasureUnit getCubicFoot()
Returns by value, unit of volume: cubic-foot.
icu::MeasureUnit::getSteradian
static MeasureUnit getSteradian()
Returns by value, unit of angle: steradian.
icu::MeasureUnit::splitToSingleUnits
std::pair< LocalArray< MeasureUnit >, int32_t > splitToSingleUnits(UErrorCode &status) const
Gets the list of SINGLE units contained within a MIXED or COMPOUND unit.
Definition measunit.h:4735
icu::MeasureUnit::getOffset
int32_t getOffset() const
ICU use only.
icu::MeasureUnit::getPound
static MeasureUnit getPound()
Returns by value, unit of mass: pound.
icu::MeasureUnit::getRin
static MeasureUnit getRin()
Returns by value, unit of length: rin.
icu::MeasureUnit::createJigger
static MeasureUnit * createJigger(UErrorCode &status)
Returns by pointer, unit of volume: jigger.
icu::MeasureUnit::getCubicMile
static MeasureUnit getCubicMile()
Returns by value, unit of volume: cubic-mile.
icu::MeasureUnit::operator!=
bool operator!=(const UObject &other) const
Inequality operator.
Definition measunit.h:483
icu::MeasureUnit::getOhm
static MeasureUnit getOhm()
Returns by value, unit of electric: ohm.
icu::MeasureUnit::createMillimeter
static MeasureUnit * createMillimeter(UErrorCode &status)
Returns by pointer, unit of length: millimeter.
icu::MeasureUnit::getGasolineEnergyDensity
static MeasureUnit getGasolineEnergyDensity()
Returns by value, unit of pressure: gasoline-energy-density.
icu::MeasureUnit::getType
const char * getType() const
Get the type.
icu::MeasureUnit::createFluidOunceMetric
static MeasureUnit * createFluidOunceMetric(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce-metric.
icu::MeasureUnit::createGForce
static MeasureUnit * createGForce(UErrorCode &status)
Returns by pointer, unit of acceleration: g-force.
icu::MeasureUnit::createKilopascal
static MeasureUnit * createKilopascal(UErrorCode &status)
Returns by pointer, unit of pressure: kilopascal.
icu::MeasureUnit::createSecond
static MeasureUnit * createSecond(UErrorCode &status)
Returns by pointer, unit of duration: second.
icu::MeasureUnit::createAstronomicalUnit
static MeasureUnit * createAstronomicalUnit(UErrorCode &status)
Returns by pointer, unit of length: astronomical-unit.
icu::MeasureUnit::createRin
static MeasureUnit * createRin(UErrorCode &status)
Returns by pointer, unit of length: rin.
icu::MeasureUnit::getPicometer
static MeasureUnit getPicometer()
Returns by value, unit of length: picometer.
icu::MeasureUnit::getFathom
static MeasureUnit getFathom()
Returns by value, unit of length: fathom.
icu::MeasureUnit::getMonth
static MeasureUnit getMonth()
Returns by value, unit of duration: month.
icu::MeasureUnit::getCentury
static MeasureUnit getCentury()
Returns by value, unit of duration: century.
icu::MeasureUnit::createCentiliter
static MeasureUnit * createCentiliter(UErrorCode &status)
Returns by pointer, unit of volume: centiliter.
icu::MeasureUnit::getCubicInch
static MeasureUnit getCubicInch()
Returns by value, unit of volume: cubic-inch.
icu::MeasureUnit::createPartPerMillion
static MeasureUnit * createPartPerMillion(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-million.
icu::MeasureUnit::createKilowatt
static MeasureUnit * createKilowatt(UErrorCode &status)
Returns by pointer, unit of power: kilowatt.
icu::MeasureUnit::getRankine
static MeasureUnit getRankine()
Returns by value, unit of temperature: rankine.
icu::MeasureUnit::getYear
static MeasureUnit getYear()
Returns by value, unit of duration: year.
icu::MeasureUnit::createKosaji
static MeasureUnit * createKosaji(UErrorCode &status)
Returns by pointer, unit of volume: kosaji.
icu::MeasureUnit::getCupImperial
static MeasureUnit getCupImperial()
Returns by value, unit of volume: cup-imperial.
icu::MeasureUnit::createPixel
static MeasureUnit * createPixel(UErrorCode &status)
Returns by pointer, unit of graphics: pixel.
icu::MeasureUnit::createMillisecond
static MeasureUnit * createMillisecond(UErrorCode &status)
Returns by pointer, unit of duration: millisecond.
icu::MeasureUnit::createKen
static MeasureUnit * createKen(UErrorCode &status)
Returns by pointer, unit of length: ken.
icu::MeasureUnit::createPoundFoot
static MeasureUnit * createPoundFoot(UErrorCode &status)
Returns by pointer, unit of torque: pound-force-foot.
icu::MeasureUnit::getPoundPerSquareInch
static MeasureUnit getPoundPerSquareInch()
Returns by value, unit of pressure: pound-force-per-square-inch.
icu::MeasureUnit::getInchHg
static MeasureUnit getInchHg()
Returns by value, unit of pressure: inch-ofhg.
icu::MeasureUnit::createFoodcalorie
static MeasureUnit * createFoodcalorie(UErrorCode &status)
Returns by pointer, unit of energy: foodcalorie.
icu::MeasureUnit::createGrain
static MeasureUnit * createGrain(UErrorCode &status)
Returns by pointer, unit of mass: grain.
icu::MeasureUnit::getLiterPer100Kilometers
static MeasureUnit getLiterPer100Kilometers()
Returns by value, unit of consumption: liter-per-100-kilometer.
icu::MeasureUnit::getAmpere
static MeasureUnit getAmpere()
Returns by value, unit of electric: ampere.
icu::MeasureUnit::createNewtonMeter
static MeasureUnit * createNewtonMeter(UErrorCode &status)
Returns by pointer, unit of torque: newton-meter.
icu::MeasureUnit::createRod
static MeasureUnit * createRod(UErrorCode &status)
Returns by pointer, unit of length: rod.
icu::MeasureUnit::getTablespoon
static MeasureUnit getTablespoon()
Returns by value, unit of volume: tablespoon.
icu::MeasureUnit::getCup
static MeasureUnit getCup()
Returns by value, unit of volume: cup.
icu::MeasureUnit::withPrefix
MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode &status) const
Creates a MeasureUnit which is this SINGLE unit augmented with the specified prefix.
icu::MeasureUnit::createBar
static MeasureUnit * createBar(UErrorCode &status)
Returns by pointer, unit of pressure: bar.
icu::MeasureUnit::createNanosecond
static MeasureUnit * createNanosecond(UErrorCode &status)
Returns by pointer, unit of duration: nanosecond.
icu::MeasureUnit::createByte
static MeasureUnit * createByte(UErrorCode &status)
Returns by pointer, unit of digital: byte.
icu::MeasureUnit::createKilocalorie
static MeasureUnit * createKilocalorie(UErrorCode &status)
Returns by pointer, unit of energy: kilocalorie.
icu::MeasureUnit::getIdentifier
const char * getIdentifier() const
Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.
icu::MeasureUnit::createPartPer1E6
static MeasureUnit * createPartPer1E6(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-1e6.
icu::MeasureUnit::getPercent
static MeasureUnit getPercent()
Returns by value, unit of concentr: percent.
icu::MeasureUnit::getRevolutionAngle
static MeasureUnit getRevolutionAngle()
Returns by value, unit of angle: revolution.
icu::MeasureUnit::getSecond
static MeasureUnit getSecond()
Returns by value, unit of duration: second.
icu::MeasureUnit::createCoulomb
static MeasureUnit * createCoulomb(UErrorCode &status)
Returns by pointer, unit of electric: coulomb.
icu::MeasureUnit::createTerabyte
static MeasureUnit * createTerabyte(UErrorCode &status)
Returns by pointer, unit of digital: terabyte.
icu::MeasureUnit::createTeaspoon
static MeasureUnit * createTeaspoon(UErrorCode &status)
Returns by pointer, unit of volume: teaspoon.
icu::MeasureUnit::getSai
static MeasureUnit getSai()
Returns by value, unit of volume: sai.
icu::MeasureUnit::createFathom
static MeasureUnit * createFathom(UErrorCode &status)
Returns by pointer, unit of length: fathom.
icu::MeasureUnit::getQuart
static MeasureUnit getQuart()
Returns by value, unit of volume: quart.
icu::MeasureUnit::createMilligramPerDeciliter
static MeasureUnit * createMilligramPerDeciliter(UErrorCode &status)
Returns by pointer, unit of concentr: milligram-per-deciliter.
icu::MeasureUnit::createCubicKilometer
static MeasureUnit * createCubicKilometer(UErrorCode &status)
Returns by pointer, unit of volume: cubic-kilometer.
icu::MeasureUnit::createAmpere
static MeasureUnit * createAmpere(UErrorCode &status)
Returns by pointer, unit of electric: ampere.
icu::MeasureUnit::createToJp
static MeasureUnit * createToJp(UErrorCode &status)
Returns by pointer, unit of volume: to-jp.
icu::MeasureUnit::createCubicInch
static MeasureUnit * createCubicInch(UErrorCode &status)
Returns by pointer, unit of volume: cubic-inch.
icu::MeasureUnit::getRod
static MeasureUnit getRod()
Returns by value, unit of length: rod.
icu::MeasureUnit::createCubicCentimeter
static MeasureUnit * createCubicCentimeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-centimeter.
icu::MeasureUnit::getBar
static MeasureUnit getBar()
Returns by value, unit of pressure: bar.
icu::MeasureUnit::getElectronvolt
static MeasureUnit getElectronvolt()
Returns by value, unit of energy: electronvolt.
icu::MeasureUnit::getKelvin
static MeasureUnit getKelvin()
Returns by value, unit of temperature: kelvin.
icu::MeasureUnit::createCandela
static MeasureUnit * createCandela(UErrorCode &status)
Returns by pointer, unit of light: candela.
icu::MeasureUnit::createKnot
static MeasureUnit * createKnot(UErrorCode &status)
Returns by pointer, unit of speed: knot.
icu::MeasureUnit::createSolarLuminosity
static MeasureUnit * createSolarLuminosity(UErrorCode &status)
Returns by pointer, unit of light: solar-luminosity.
icu::MeasureUnit::getEm
static MeasureUnit getEm()
Returns by value, unit of graphics: em.
icu::MeasureUnit::createInch
static MeasureUnit * createInch(UErrorCode &status)
Returns by pointer, unit of length: inch.
icu::MeasureUnit::createLiterPerKilometer
static MeasureUnit * createLiterPerKilometer(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-kilometer.
icu::MeasureUnit::createKilogram
static MeasureUnit * createKilogram(UErrorCode &status)
Returns by pointer, unit of mass: kilogram.
icu::MeasureUnit::createDalton
static MeasureUnit * createDalton(UErrorCode &status)
Returns by pointer, unit of mass: dalton.
icu::MeasureUnit::createYearPerson
static MeasureUnit * createYearPerson(UErrorCode &status)
Returns by pointer, unit of duration: year-person.
icu::MeasureUnit::createNauticalMile
static MeasureUnit * createNauticalMile(UErrorCode &status)
Returns by pointer, unit of length: nautical-mile.
icu::MeasureUnit::createMillimolePerLiter
static MeasureUnit * createMillimolePerLiter(UErrorCode &status)
Returns by pointer, unit of concentr: millimole-per-liter.
icu::MeasureUnit::createDessertSpoon
static MeasureUnit * createDessertSpoon(UErrorCode &status)
Returns by pointer, unit of volume: dessert-spoon.
icu::MeasureUnit::getShakuLength
static MeasureUnit getShakuLength()
Returns by value, unit of length: shaku-length.
icu::MeasureUnit::createSquareMile
static MeasureUnit * createSquareMile(UErrorCode &status)
Returns by pointer, unit of area: square-mile.
icu::MeasureUnit::getKilometerPerHour
static MeasureUnit getKilometerPerHour()
Returns by value, unit of speed: kilometer-per-hour.
icu::MeasureUnit::createCalorieIt
static MeasureUnit * createCalorieIt(UErrorCode &status)
Returns by pointer, unit of energy: calorie-it.
icu::MeasureUnit::getCubicMeter
static MeasureUnit getCubicMeter()
Returns by value, unit of volume: cubic-meter.
icu::MeasureUnit::getCubicCentimeter
static MeasureUnit getCubicCentimeter()
Returns by value, unit of volume: cubic-centimeter.
icu::MeasureUnit::createSlug
static MeasureUnit * createSlug(UErrorCode &status)
Returns by pointer, unit of mass: slug.
icu::MeasureUnit::getGallon
static MeasureUnit getGallon()
Returns by value, unit of volume: gallon.
icu::MeasureUnit::initTime
void initTime(const char *timeId)
For ICU use only.
icu::MeasureUnit::createMicrogram
static MeasureUnit * createMicrogram(UErrorCode &status)
Returns by pointer, unit of mass: microgram.
icu::MeasureUnit::createTon
static MeasureUnit * createTon(UErrorCode &status)
Returns by pointer, unit of mass: ton.
icu::MeasureUnit::getKnot
static MeasureUnit getKnot()
Returns by value, unit of speed: knot.
icu::MeasureUnit::createRankine
static MeasureUnit * createRankine(UErrorCode &status)
Returns by pointer, unit of temperature: rankine.
icu::MeasureUnit::getFoot
static MeasureUnit getFoot()
Returns by value, unit of length: foot.
icu::MeasureUnit::getMicrometer
static MeasureUnit getMicrometer()
Returns by value, unit of length: micrometer.
icu::MeasureUnit::getAcre
static MeasureUnit getAcre()
Returns by value, unit of area: acre.
icu::MeasureUnit::createMilePerGallon
static MeasureUnit * createMilePerGallon(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon.
icu::MeasureUnit::getNewton
static MeasureUnit getNewton()
Returns by value, unit of force: newton.
icu::MeasureUnit::getSlug
static MeasureUnit getSlug()
Returns by value, unit of mass: slug.
icu::MeasureUnit::createPoint
static MeasureUnit * createPoint(UErrorCode &status)
Returns by pointer, unit of length: point.
icu::MeasureUnit::createMegahertz
static MeasureUnit * createMegahertz(UErrorCode &status)
Returns by pointer, unit of frequency: megahertz.
icu::MeasureUnit::createPicometer
static MeasureUnit * createPicometer(UErrorCode &status)
Returns by pointer, unit of length: picometer.
icu::MeasureUnit::operator==
virtual bool operator==(const UObject &other) const
Equality operator.
icu::MeasureUnit::getPint
static MeasureUnit getPint()
Returns by value, unit of volume: pint.
icu::MeasureUnit::createMegapixel
static MeasureUnit * createMegapixel(UErrorCode &status)
Returns by pointer, unit of graphics: megapixel.
icu::MeasureUnit::getGForce
static MeasureUnit getGForce()
Returns by value, unit of acceleration: g-force.
icu::MeasureUnit::getGallonImperial
static MeasureUnit getGallonImperial()
Returns by value, unit of volume: gallon-imperial.
icu::MeasureUnit::getArcSecond
static MeasureUnit getArcSecond()
Returns by value, unit of angle: arc-second.
icu::MeasureUnit::getMeter
static MeasureUnit getMeter()
Returns by value, unit of length: meter.
icu::MeasureUnit::getMeterPerSecondSquared
static MeasureUnit getMeterPerSecondSquared()
Returns by value, unit of acceleration: meter-per-square-second.
icu::MeasureUnit::createFurlong
static MeasureUnit * createFurlong(UErrorCode &status)
Returns by pointer, unit of length: furlong.
icu::MeasureUnit::getPinch
static MeasureUnit getPinch()
Returns by value, unit of volume: pinch.
icu::MeasureUnit::createCupMetric
static MeasureUnit * createCupMetric(UErrorCode &status)
Returns by pointer, unit of volume: cup-metric.
icu::MeasureUnit::getCelsius
static MeasureUnit getCelsius()
Returns by value, unit of temperature: celsius.
icu::MeasureUnit::getDecimeter
static MeasureUnit getDecimeter()
Returns by value, unit of length: decimeter.
icu::MeasureUnit::createCentury
static MeasureUnit * createCentury(UErrorCode &status)
Returns by pointer, unit of duration: century.
icu::MeasureUnit::getHorsepower
static MeasureUnit getHorsepower()
Returns by value, unit of power: horsepower.
icu::MeasureUnit::getOfhg
static MeasureUnit getOfhg()
Returns by value, unit of pressure: ofhg.
icu::MeasureUnit::createPoundForce
static MeasureUnit * createPoundForce(UErrorCode &status)
Returns by pointer, unit of force: pound-force.
icu::MeasureUnit::createArcSecond
static MeasureUnit * createArcSecond(UErrorCode &status)
Returns by pointer, unit of angle: arc-second.
icu::MeasureUnit::getMetricTon
static MeasureUnit getMetricTon()
Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
icu::MeasureUnit::createHectoliter
static MeasureUnit * createHectoliter(UErrorCode &status)
Returns by pointer, unit of volume: hectoliter.
icu::MeasureUnit::getSolarMass
static MeasureUnit getSolarMass()
Returns by value, unit of mass: solar-mass.
icu::MeasureUnit::getSquareCentimeter
static MeasureUnit getSquareCentimeter()
Returns by value, unit of area: square-centimeter.
icu::MeasureUnit::getWeber
static MeasureUnit getWeber()
Returns by value, unit of magnetic: weber.
icu::MeasureUnit::getKilojoule
static MeasureUnit getKilojoule()
Returns by value, unit of energy: kilojoule.
icu::MeasureUnit::getThermUs
static MeasureUnit getThermUs()
Returns by value, unit of energy: therm-us.
icu::MeasureUnit::createMilePerHour
static MeasureUnit * createMilePerHour(UErrorCode &status)
Returns by pointer, unit of speed: mile-per-hour.
icu::MeasureUnit::getCubicKilometer
static MeasureUnit getCubicKilometer()
Returns by value, unit of volume: cubic-kilometer.
icu::MeasureUnit::createFluidOunce
static MeasureUnit * createFluidOunce(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce.
icu::MeasureUnit::getSeJp
static MeasureUnit getSeJp()
Returns by value, unit of area: se-jp.
icu::MeasureUnit::getDotPerInch
static MeasureUnit getDotPerInch()
Returns by value, unit of graphics: dot-per-inch.
icu::MeasureUnit::createMegaliter
static MeasureUnit * createMegaliter(UErrorCode &status)
Returns by pointer, unit of volume: megaliter.
icu::MeasureUnit::getWeek
static MeasureUnit getWeek()
Returns by value, unit of duration: week.
icu::MeasureUnit::getSquareMile
static MeasureUnit getSquareMile()
Returns by value, unit of area: square-mile.
icu::MeasureUnit::getDecade
static MeasureUnit getDecade()
Returns by value, unit of duration: decade.
icu::MeasureUnit::createSeJp
static MeasureUnit * createSeJp(UErrorCode &status)
Returns by pointer, unit of area: se-jp.
icu::MeasureUnit::createKilometer
static MeasureUnit * createKilometer(UErrorCode &status)
Returns by pointer, unit of length: kilometer.
icu::MeasureUnit::getLumen
static MeasureUnit getLumen()
Returns by value, unit of light: lumen.
icu::MeasureUnit::createMegawatt
static MeasureUnit * createMegawatt(UErrorCode &status)
Returns by pointer, unit of power: megawatt.
icu::MeasureUnit::withDimensionality
MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode &status) const
Creates a MeasureUnit which is this SINGLE unit augmented with the specified dimensionality (power).
icu::MeasureUnit::getMilligramOfglucosePerDeciliter
static MeasureUnit getMilligramOfglucosePerDeciliter()
Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.
icu::StringEnumeration
Base class for 'pure' C++ implementations of uenum api.
Definition strenum.h:61
icu::StringPiece
A string-like object that points to a sized piece of memory.
Definition stringpiece.h:61
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition uobject.h:222
localpointer.h
C++ API: "Smart pointers" for use with and in ICU4C C++ code.
icu::umeas_getPrefixBase
U_CAPI int32_t umeas_getPrefixBase(UMeasurePrefix unitPrefix)
Returns the base of the factor associated with the given unit prefix: the base is 10 for SI prefixes ...
icu::umeas_getPrefixPower
U_CAPI int32_t umeas_getPrefixPower(UMeasurePrefix unitPrefix)
Returns the exponent of the factor associated with the given unit prefix, for example 3 for kilo,...
icu::UMeasurePrefix
UMeasurePrefix
Enumeration for SI and binary prefixes, e.g.
Definition measunit.h:89
icu::UMEASURE_PREFIX_QUECTO
@ UMEASURE_PREFIX_QUECTO
SI prefix: quecto, 10^-30.
Definition measunit.h:281
icu::UMEASURE_PREFIX_YOBI
@ UMEASURE_PREFIX_YOBI
Binary prefix: yobi, 1024^8.
Definition measunit.h:369
icu::UMEASURE_PREFIX_GIGA
@ UMEASURE_PREFIX_GIGA
SI prefix: giga, 10^9.
Definition measunit.h:169
icu::UMEASURE_PREFIX_GIBI
@ UMEASURE_PREFIX_GIBI
Binary prefix: gibi, 1024^3.
Definition measunit.h:334
icu::UMEASURE_PREFIX_TEBI
@ UMEASURE_PREFIX_TEBI
Binary prefix: tebi, 1024^4.
Definition measunit.h:341
icu::UMEASURE_PREFIX_PICO
@ UMEASURE_PREFIX_PICO
SI prefix: pico, 10^-12.
Definition measunit.h:239
icu::UMEASURE_PREFIX_NANO
@ UMEASURE_PREFIX_NANO
SI prefix: nano, 10^-9.
Definition measunit.h:232
icu::UMEASURE_PREFIX_INTERNAL_MIN_SI
@ UMEASURE_PREFIX_INTERNAL_MIN_SI
ICU use only.
Definition measunit.h:290
icu::UMEASURE_PREFIX_QUETTA
@ UMEASURE_PREFIX_QUETTA
SI prefix: quetta, 10^30.
Definition measunit.h:120
icu::UMEASURE_PREFIX_INTERNAL_MIN_BIN
@ UMEASURE_PREFIX_INTERNAL_MIN_BIN
ICU use only.
Definition measunit.h:319
icu::UMEASURE_PREFIX_HECTO
@ UMEASURE_PREFIX_HECTO
SI prefix: hecto, 10^2.
Definition measunit.h:190
icu::UMEASURE_PREFIX_KIBI
@ UMEASURE_PREFIX_KIBI
Binary prefix: kibi, 1024^1.
Definition measunit.h:311
icu::UMEASURE_PREFIX_INTERNAL_ONE_BIN
@ UMEASURE_PREFIX_INTERNAL_ONE_BIN
ICU use only.
Definition measunit.h:304
icu::UMEASURE_PREFIX_EXA
@ UMEASURE_PREFIX_EXA
SI prefix: exa, 10^18.
Definition measunit.h:148
icu::UMEASURE_PREFIX_FEMTO
@ UMEASURE_PREFIX_FEMTO
SI prefix: femto, 10^-15.
Definition measunit.h:246
icu::UMEASURE_PREFIX_MEBI
@ UMEASURE_PREFIX_MEBI
Binary prefix: mebi, 1024^2.
Definition measunit.h:327
icu::UMEASURE_PREFIX_MEGA
@ UMEASURE_PREFIX_MEGA
SI prefix: mega, 10^6.
Definition measunit.h:176
icu::UMEASURE_PREFIX_RONNA
@ UMEASURE_PREFIX_RONNA
SI prefix: ronna, 10^27.
Definition measunit.h:113
icu::UMEASURE_PREFIX_PEBI
@ UMEASURE_PREFIX_PEBI
Binary prefix: pebi, 1024^5.
Definition measunit.h:348
icu::UMEASURE_PREFIX_RONTO
@ UMEASURE_PREFIX_RONTO
SI prefix: ronto, 10^-27.
Definition measunit.h:274
icu::UMEASURE_PREFIX_DECI
@ UMEASURE_PREFIX_DECI
SI prefix: deci, 10^-1.
Definition measunit.h:204
icu::UMEASURE_PREFIX_ZEPTO
@ UMEASURE_PREFIX_ZEPTO
SI prefix: zepto, 10^-21.
Definition measunit.h:260
icu::UMEASURE_PREFIX_CENTI
@ UMEASURE_PREFIX_CENTI
SI prefix: centi, 10^-2.
Definition measunit.h:211
icu::UMEASURE_PREFIX_ZEBI
@ UMEASURE_PREFIX_ZEBI
Binary prefix: zebi, 1024^7.
Definition measunit.h:362
icu::UMEASURE_PREFIX_KILO
@ UMEASURE_PREFIX_KILO
SI prefix: kilo, 10^3.
Definition measunit.h:183
icu::UMEASURE_PREFIX_DEKA
@ UMEASURE_PREFIX_DEKA
SI prefix: deka, 10^1.
Definition measunit.h:197
icu::UMEASURE_PREFIX_ONE
@ UMEASURE_PREFIX_ONE
The absence of an SI or binary prefix.
Definition measunit.h:99
icu::UMEASURE_PREFIX_YOTTA
@ UMEASURE_PREFIX_YOTTA
SI prefix: yotta, 10^24.
Definition measunit.h:106
icu::UMEASURE_PREFIX_INTERNAL_MAX_BIN
@ UMEASURE_PREFIX_INTERNAL_MAX_BIN
ICU use only.
Definition measunit.h:377
icu::UMEASURE_PREFIX_ATTO
@ UMEASURE_PREFIX_ATTO
SI prefix: atto, 10^-18.
Definition measunit.h:253
icu::UMEASURE_PREFIX_YOCTO
@ UMEASURE_PREFIX_YOCTO
SI prefix: yocto, 10^-24.
Definition measunit.h:267
icu::UMEASURE_PREFIX_ZETTA
@ UMEASURE_PREFIX_ZETTA
SI prefix: zetta, 10^21.
Definition measunit.h:141
icu::UMEASURE_PREFIX_EXBI
@ UMEASURE_PREFIX_EXBI
Binary prefix: exbi, 1024^6.
Definition measunit.h:355
icu::UMEASURE_PREFIX_TERA
@ UMEASURE_PREFIX_TERA
SI prefix: tera, 10^12.
Definition measunit.h:162
icu::UMEASURE_PREFIX_INTERNAL_MAX_SI
@ UMEASURE_PREFIX_INTERNAL_MAX_SI
ICU use only.
Definition measunit.h:129
icu::UMEASURE_PREFIX_MILLI
@ UMEASURE_PREFIX_MILLI
SI prefix: milli, 10^-3.
Definition measunit.h:218
icu::UMEASURE_PREFIX_MICRO
@ UMEASURE_PREFIX_MICRO
SI prefix: micro, 10^-6.
Definition measunit.h:225
icu::UMEASURE_PREFIX_PETA
@ UMEASURE_PREFIX_PETA
SI prefix: peta, 10^15.
Definition measunit.h:155
icu::UMeasureUnitComplexity
UMeasureUnitComplexity
Enumeration for unit complexity.
Definition measunit.h:55
icu::UMEASURE_UNIT_MIXED
@ UMEASURE_UNIT_MIXED
A mixed unit, like hour+minute.
Definition measunit.h:75
icu::UMEASURE_UNIT_COMPOUND
@ UMEASURE_UNIT_COMPOUND
A compound unit, like meter-per-second.
Definition measunit.h:68
icu::UMEASURE_UNIT_SINGLE
@ UMEASURE_UNIT_SINGLE
A single unit, like kilojoule.
Definition measunit.h:61
U_CAPI
#define U_CAPI
This is used to declare a function as a public ICU C API.
Definition umachine.h:110
unistr.h
C++ API: Unicode String.
UClassID
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition uobject.h:96
utypes.h
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition utypes.h:509
U_I18N_API
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition utypes.h:316