ICU 74.2 74.2

measunit.h
Go to the documentation of this file.
1// © 2016 and later: Unicode, Inc. and others.
2// License & terms of use: http://www.unicode.org/copyright.html
3/*
4**********************************************************************
5* Copyright (c) 2004-2016, International Business Machines
6* Corporation and others. All Rights Reserved.
7**********************************************************************
8* Author: Alan Liu
9* Created: April 26, 2004
10* Since: ICU 3.0
11**********************************************************************
12*/
13#ifndef __MEASUREUNIT_H__
14#define __MEASUREUNIT_H__
15
16#include "unicode/utypes.h"
17
18#if U_SHOW_CPLUSPLUS_API
19
20#if !UCONFIG_NO_FORMATTING
21
22#include <utility>
23#include "unicode/unistr.h"
24#include "unicode/localpointer.h"
25
31U_NAMESPACE_BEGIN
32
33 class StringEnumeration;
34 class MeasureUnitImpl;
35
36 namespace number {
37 namespace impl {
38 class LongNameHandler;
39}
40} // namespace number
41
57 enum UMeasureUnitComplexity {
63 UMEASURE_UNIT_SINGLE,
64
70 UMEASURE_UNIT_COMPOUND,
71
77 UMEASURE_UNIT_MIXED
78};
79
80
91 typedef enum UMeasurePrefix {
101 UMEASURE_PREFIX_ONE = 30 + 0,
102
108 UMEASURE_PREFIX_YOTTA = UMEASURE_PREFIX_ONE + 24,
109
110#ifndef U_HIDE_INTERNAL_API
116 UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_YOTTA,
117#endif /* U_HIDE_INTERNAL_API */
118
124 UMEASURE_PREFIX_ZETTA = UMEASURE_PREFIX_ONE + 21,
125
131 UMEASURE_PREFIX_EXA = UMEASURE_PREFIX_ONE + 18,
132
138 UMEASURE_PREFIX_PETA = UMEASURE_PREFIX_ONE + 15,
139
145 UMEASURE_PREFIX_TERA = UMEASURE_PREFIX_ONE + 12,
146
152 UMEASURE_PREFIX_GIGA = UMEASURE_PREFIX_ONE + 9,
153
159 UMEASURE_PREFIX_MEGA = UMEASURE_PREFIX_ONE + 6,
160
166 UMEASURE_PREFIX_KILO = UMEASURE_PREFIX_ONE + 3,
167
173 UMEASURE_PREFIX_HECTO = UMEASURE_PREFIX_ONE + 2,
174
180 UMEASURE_PREFIX_DEKA = UMEASURE_PREFIX_ONE + 1,
181
187 UMEASURE_PREFIX_DECI = UMEASURE_PREFIX_ONE + -1,
188
194 UMEASURE_PREFIX_CENTI = UMEASURE_PREFIX_ONE + -2,
195
201 UMEASURE_PREFIX_MILLI = UMEASURE_PREFIX_ONE + -3,
202
208 UMEASURE_PREFIX_MICRO = UMEASURE_PREFIX_ONE + -6,
209
215 UMEASURE_PREFIX_NANO = UMEASURE_PREFIX_ONE + -9,
216
222 UMEASURE_PREFIX_PICO = UMEASURE_PREFIX_ONE + -12,
223
229 UMEASURE_PREFIX_FEMTO = UMEASURE_PREFIX_ONE + -15,
230
236 UMEASURE_PREFIX_ATTO = UMEASURE_PREFIX_ONE + -18,
237
243 UMEASURE_PREFIX_ZEPTO = UMEASURE_PREFIX_ONE + -21,
244
250 UMEASURE_PREFIX_YOCTO = UMEASURE_PREFIX_ONE + -24,
251
252#ifndef U_HIDE_INTERNAL_API
258 UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_YOCTO,
259#endif // U_HIDE_INTERNAL_API
260
261 // Cannot conditionalize the following with #ifndef U_HIDE_INTERNAL_API,
262 // used in definitions of non-internal enum values
268 UMEASURE_PREFIX_INTERNAL_ONE_BIN = -60,
269
275 UMEASURE_PREFIX_KIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 1,
276
277#ifndef U_HIDE_INTERNAL_API
283 UMEASURE_PREFIX_INTERNAL_MIN_BIN = UMEASURE_PREFIX_KIBI,
284#endif // U_HIDE_INTERNAL_API
285
291 UMEASURE_PREFIX_MEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 2,
292
298 UMEASURE_PREFIX_GIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 3,
299
305 UMEASURE_PREFIX_TEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 4,
306
312 UMEASURE_PREFIX_PEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 5,
313
319 UMEASURE_PREFIX_EXBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 6,
320
326 UMEASURE_PREFIX_ZEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 7,
327
333 UMEASURE_PREFIX_YOBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 8,
334
335#ifndef U_HIDE_INTERNAL_API
341 UMEASURE_PREFIX_INTERNAL_MAX_BIN = UMEASURE_PREFIX_YOBI,
342#endif // U_HIDE_INTERNAL_API
343} UMeasurePrefix;
344
352 U_CAPI int32_t U_EXPORT2 umeas_getPrefixBase(UMeasurePrefix unitPrefix);
353
360 U_CAPI int32_t U_EXPORT2 umeas_getPrefixPower(UMeasurePrefix unitPrefix);
361
369 class U_I18N_API MeasureUnit: public UObject {
370 public:
371
378 MeasureUnit();
379
384 MeasureUnit(const MeasureUnit &other);
385
390 MeasureUnit(MeasureUnit &&other) noexcept;
391
405 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
406
411 MeasureUnit &operator=(const MeasureUnit &other);
412
417 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
418
424 virtual MeasureUnit* clone() const;
425
430 virtual ~MeasureUnit();
431
437 virtual bool operator==(const UObject& other) const;
438
444 bool operator!=(const UObject& other) const {
445 return !(*this == other);
446 }
447
455 const char *getType() const;
456
464 const char *getSubtype() const;
465
472 const char* getIdentifier() const;
473
481 UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
482
497 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
498
513 UMeasurePrefix getPrefix(UErrorCode& status) const;
514
529 MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
530
544 int32_t getDimensionality(UErrorCode& status) const;
545
558 MeasureUnit reciprocal(UErrorCode& status) const;
559
577 MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
578
594 inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
595
607 static int32_t getAvailable(
608 MeasureUnit *destArray,
609 int32_t destCapacity,
610 UErrorCode &errorCode);
611
624 static int32_t getAvailable(
625 const char *type,
626 MeasureUnit *destArray,
627 int32_t destCapacity,
628 UErrorCode &errorCode);
629
638 static StringEnumeration* getAvailableTypes(UErrorCode &errorCode);
639
651 static UClassID U_EXPORT2 getStaticClassID(void);
652
664 virtual UClassID getDynamicClassID(void) const override;
665
666#ifndef U_HIDE_INTERNAL_API
672 int32_t getOffset() const;
673#endif /* U_HIDE_INTERNAL_API */
674
675// All code between the "Start generated createXXX methods" comment and
676// the "End generated createXXX methods" comment is auto generated code
677// and must not be edited manually. For instructions on how to correctly
678// update this code, refer to:
679// docs/processes/release/tasks/updating-measure-unit.md
680//
681// Start generated createXXX methods
682
690 static MeasureUnit *createGForce(UErrorCode &status);
691
697 static MeasureUnit getGForce();
698
706 static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
707
713 static MeasureUnit getMeterPerSecondSquared();
714
722 static MeasureUnit *createArcMinute(UErrorCode &status);
723
729 static MeasureUnit getArcMinute();
730
738 static MeasureUnit *createArcSecond(UErrorCode &status);
739
745 static MeasureUnit getArcSecond();
746
754 static MeasureUnit *createDegree(UErrorCode &status);
755
761 static MeasureUnit getDegree();
762
770 static MeasureUnit *createRadian(UErrorCode &status);
771
777 static MeasureUnit getRadian();
778
786 static MeasureUnit *createRevolutionAngle(UErrorCode &status);
787
793 static MeasureUnit getRevolutionAngle();
794
802 static MeasureUnit *createAcre(UErrorCode &status);
803
809 static MeasureUnit getAcre();
810
818 static MeasureUnit *createDunam(UErrorCode &status);
819
825 static MeasureUnit getDunam();
826
834 static MeasureUnit *createHectare(UErrorCode &status);
835
841 static MeasureUnit getHectare();
842
850 static MeasureUnit *createSquareCentimeter(UErrorCode &status);
851
857 static MeasureUnit getSquareCentimeter();
858
866 static MeasureUnit *createSquareFoot(UErrorCode &status);
867
873 static MeasureUnit getSquareFoot();
874
882 static MeasureUnit *createSquareInch(UErrorCode &status);
883
889 static MeasureUnit getSquareInch();
890
898 static MeasureUnit *createSquareKilometer(UErrorCode &status);
899
905 static MeasureUnit getSquareKilometer();
906
914 static MeasureUnit *createSquareMeter(UErrorCode &status);
915
921 static MeasureUnit getSquareMeter();
922
930 static MeasureUnit *createSquareMile(UErrorCode &status);
931
937 static MeasureUnit getSquareMile();
938
946 static MeasureUnit *createSquareYard(UErrorCode &status);
947
953 static MeasureUnit getSquareYard();
954
962 static MeasureUnit *createItem(UErrorCode &status);
963
969 static MeasureUnit getItem();
970
978 static MeasureUnit *createKarat(UErrorCode &status);
979
985 static MeasureUnit getKarat();
986
994 static MeasureUnit *createMilligramOfglucosePerDeciliter(UErrorCode &status);
995
1001 static MeasureUnit getMilligramOfglucosePerDeciliter();
1002
1010 static MeasureUnit *createMilligramPerDeciliter(UErrorCode &status);
1011
1017 static MeasureUnit getMilligramPerDeciliter();
1018
1026 static MeasureUnit *createMillimolePerLiter(UErrorCode &status);
1027
1033 static MeasureUnit getMillimolePerLiter();
1034
1042 static MeasureUnit *createMole(UErrorCode &status);
1043
1049 static MeasureUnit getMole();
1050
1058 static MeasureUnit *createPercent(UErrorCode &status);
1059
1065 static MeasureUnit getPercent();
1066
1074 static MeasureUnit *createPermille(UErrorCode &status);
1075
1081 static MeasureUnit getPermille();
1082
1090 static MeasureUnit *createPartPerMillion(UErrorCode &status);
1091
1097 static MeasureUnit getPartPerMillion();
1098
1106 static MeasureUnit *createPermyriad(UErrorCode &status);
1107
1113 static MeasureUnit getPermyriad();
1114
1122 static MeasureUnit *createLiterPer100Kilometers(UErrorCode &status);
1123
1129 static MeasureUnit getLiterPer100Kilometers();
1130
1138 static MeasureUnit *createLiterPerKilometer(UErrorCode &status);
1139
1145 static MeasureUnit getLiterPerKilometer();
1146
1154 static MeasureUnit *createMilePerGallon(UErrorCode &status);
1155
1161 static MeasureUnit getMilePerGallon();
1162
1170 static MeasureUnit *createMilePerGallonImperial(UErrorCode &status);
1171
1177 static MeasureUnit getMilePerGallonImperial();
1178
1186 static MeasureUnit *createBit(UErrorCode &status);
1187
1193 static MeasureUnit getBit();
1194
1202 static MeasureUnit *createByte(UErrorCode &status);
1203
1209 static MeasureUnit getByte();
1210
1218 static MeasureUnit *createGigabit(UErrorCode &status);
1219
1225 static MeasureUnit getGigabit();
1226
1234 static MeasureUnit *createGigabyte(UErrorCode &status);
1235
1241 static MeasureUnit getGigabyte();
1242
1250 static MeasureUnit *createKilobit(UErrorCode &status);
1251
1257 static MeasureUnit getKilobit();
1258
1266 static MeasureUnit *createKilobyte(UErrorCode &status);
1267
1273 static MeasureUnit getKilobyte();
1274
1282 static MeasureUnit *createMegabit(UErrorCode &status);
1283
1289 static MeasureUnit getMegabit();
1290
1298 static MeasureUnit *createMegabyte(UErrorCode &status);
1299
1305 static MeasureUnit getMegabyte();
1306
1314 static MeasureUnit *createPetabyte(UErrorCode &status);
1315
1321 static MeasureUnit getPetabyte();
1322
1330 static MeasureUnit *createTerabit(UErrorCode &status);
1331
1337 static MeasureUnit getTerabit();
1338
1346 static MeasureUnit *createTerabyte(UErrorCode &status);
1347
1353 static MeasureUnit getTerabyte();
1354
1362 static MeasureUnit *createCentury(UErrorCode &status);
1363
1369 static MeasureUnit getCentury();
1370
1378 static MeasureUnit *createDay(UErrorCode &status);
1379
1385 static MeasureUnit getDay();
1386
1394 static MeasureUnit *createDayPerson(UErrorCode &status);
1395
1401 static MeasureUnit getDayPerson();
1402
1410 static MeasureUnit *createDecade(UErrorCode &status);
1411
1417 static MeasureUnit getDecade();
1418
1426 static MeasureUnit *createHour(UErrorCode &status);
1427
1433 static MeasureUnit getHour();
1434
1442 static MeasureUnit *createMicrosecond(UErrorCode &status);
1443
1449 static MeasureUnit getMicrosecond();
1450
1458 static MeasureUnit *createMillisecond(UErrorCode &status);
1459
1465 static MeasureUnit getMillisecond();
1466
1474 static MeasureUnit *createMinute(UErrorCode &status);
1475
1481 static MeasureUnit getMinute();
1482
1490 static MeasureUnit *createMonth(UErrorCode &status);
1491
1497 static MeasureUnit getMonth();
1498
1506 static MeasureUnit *createMonthPerson(UErrorCode &status);
1507
1513 static MeasureUnit getMonthPerson();
1514
1522 static MeasureUnit *createNanosecond(UErrorCode &status);
1523
1529 static MeasureUnit getNanosecond();
1530
1538 static MeasureUnit *createQuarter(UErrorCode &status);
1539
1545 static MeasureUnit getQuarter();
1546
1554 static MeasureUnit *createSecond(UErrorCode &status);
1555
1561 static MeasureUnit getSecond();
1562
1570 static MeasureUnit *createWeek(UErrorCode &status);
1571
1577 static MeasureUnit getWeek();
1578
1586 static MeasureUnit *createWeekPerson(UErrorCode &status);
1587
1593 static MeasureUnit getWeekPerson();
1594
1602 static MeasureUnit *createYear(UErrorCode &status);
1603
1609 static MeasureUnit getYear();
1610
1618 static MeasureUnit *createYearPerson(UErrorCode &status);
1619
1625 static MeasureUnit getYearPerson();
1626
1634 static MeasureUnit *createAmpere(UErrorCode &status);
1635
1641 static MeasureUnit getAmpere();
1642
1650 static MeasureUnit *createMilliampere(UErrorCode &status);
1651
1657 static MeasureUnit getMilliampere();
1658
1666 static MeasureUnit *createOhm(UErrorCode &status);
1667
1673 static MeasureUnit getOhm();
1674
1682 static MeasureUnit *createVolt(UErrorCode &status);
1683
1689 static MeasureUnit getVolt();
1690
1698 static MeasureUnit *createBritishThermalUnit(UErrorCode &status);
1699
1705 static MeasureUnit getBritishThermalUnit();
1706
1714 static MeasureUnit *createCalorie(UErrorCode &status);
1715
1721 static MeasureUnit getCalorie();
1722
1730 static MeasureUnit *createElectronvolt(UErrorCode &status);
1731
1737 static MeasureUnit getElectronvolt();
1738
1746 static MeasureUnit *createFoodcalorie(UErrorCode &status);
1747
1753 static MeasureUnit getFoodcalorie();
1754
1762 static MeasureUnit *createJoule(UErrorCode &status);
1763
1769 static MeasureUnit getJoule();
1770
1778 static MeasureUnit *createKilocalorie(UErrorCode &status);
1779
1785 static MeasureUnit getKilocalorie();
1786
1794 static MeasureUnit *createKilojoule(UErrorCode &status);
1795
1801 static MeasureUnit getKilojoule();
1802
1810 static MeasureUnit *createKilowattHour(UErrorCode &status);
1811
1817 static MeasureUnit getKilowattHour();
1818
1826 static MeasureUnit *createThermUs(UErrorCode &status);
1827
1833 static MeasureUnit getThermUs();
1834
1842 static MeasureUnit *createKilowattHourPer100Kilometer(UErrorCode &status);
1843
1849 static MeasureUnit getKilowattHourPer100Kilometer();
1850
1858 static MeasureUnit *createNewton(UErrorCode &status);
1859
1865 static MeasureUnit getNewton();
1866
1874 static MeasureUnit *createPoundForce(UErrorCode &status);
1875
1881 static MeasureUnit getPoundForce();
1882
1890 static MeasureUnit *createGigahertz(UErrorCode &status);
1891
1897 static MeasureUnit getGigahertz();
1898
1906 static MeasureUnit *createHertz(UErrorCode &status);
1907
1913 static MeasureUnit getHertz();
1914
1922 static MeasureUnit *createKilohertz(UErrorCode &status);
1923
1929 static MeasureUnit getKilohertz();
1930
1938 static MeasureUnit *createMegahertz(UErrorCode &status);
1939
1945 static MeasureUnit getMegahertz();
1946
1954 static MeasureUnit *createDot(UErrorCode &status);
1955
1961 static MeasureUnit getDot();
1962
1970 static MeasureUnit *createDotPerCentimeter(UErrorCode &status);
1971
1977 static MeasureUnit getDotPerCentimeter();
1978
1986 static MeasureUnit *createDotPerInch(UErrorCode &status);
1987
1993 static MeasureUnit getDotPerInch();
1994
2002 static MeasureUnit *createEm(UErrorCode &status);
2003
2009 static MeasureUnit getEm();
2010
2018 static MeasureUnit *createMegapixel(UErrorCode &status);
2019
2025 static MeasureUnit getMegapixel();
2026
2034 static MeasureUnit *createPixel(UErrorCode &status);
2035
2041 static MeasureUnit getPixel();
2042
2050 static MeasureUnit *createPixelPerCentimeter(UErrorCode &status);
2051
2057 static MeasureUnit getPixelPerCentimeter();
2058
2066 static MeasureUnit *createPixelPerInch(UErrorCode &status);
2067
2073 static MeasureUnit getPixelPerInch();
2074
2082 static MeasureUnit *createAstronomicalUnit(UErrorCode &status);
2083
2089 static MeasureUnit getAstronomicalUnit();
2090
2098 static MeasureUnit *createCentimeter(UErrorCode &status);
2099
2105 static MeasureUnit getCentimeter();
2106
2114 static MeasureUnit *createDecimeter(UErrorCode &status);
2115
2121 static MeasureUnit getDecimeter();
2122
2130 static MeasureUnit *createEarthRadius(UErrorCode &status);
2131
2137 static MeasureUnit getEarthRadius();
2138
2146 static MeasureUnit *createFathom(UErrorCode &status);
2147
2153 static MeasureUnit getFathom();
2154
2162 static MeasureUnit *createFoot(UErrorCode &status);
2163
2169 static MeasureUnit getFoot();
2170
2178 static MeasureUnit *createFurlong(UErrorCode &status);
2179
2185 static MeasureUnit getFurlong();
2186
2194 static MeasureUnit *createInch(UErrorCode &status);
2195
2201 static MeasureUnit getInch();
2202
2210 static MeasureUnit *createKilometer(UErrorCode &status);
2211
2217 static MeasureUnit getKilometer();
2218
2226 static MeasureUnit *createLightYear(UErrorCode &status);
2227
2233 static MeasureUnit getLightYear();
2234
2242 static MeasureUnit *createMeter(UErrorCode &status);
2243
2249 static MeasureUnit getMeter();
2250
2258 static MeasureUnit *createMicrometer(UErrorCode &status);
2259
2265 static MeasureUnit getMicrometer();
2266
2274 static MeasureUnit *createMile(UErrorCode &status);
2275
2281 static MeasureUnit getMile();
2282
2290 static MeasureUnit *createMileScandinavian(UErrorCode &status);
2291
2297 static MeasureUnit getMileScandinavian();
2298
2306 static MeasureUnit *createMillimeter(UErrorCode &status);
2307
2313 static MeasureUnit getMillimeter();
2314
2322 static MeasureUnit *createNanometer(UErrorCode &status);
2323
2329 static MeasureUnit getNanometer();
2330
2338 static MeasureUnit *createNauticalMile(UErrorCode &status);
2339
2345 static MeasureUnit getNauticalMile();
2346
2354 static MeasureUnit *createParsec(UErrorCode &status);
2355
2361 static MeasureUnit getParsec();
2362
2370 static MeasureUnit *createPicometer(UErrorCode &status);
2371
2377 static MeasureUnit getPicometer();
2378
2386 static MeasureUnit *createPoint(UErrorCode &status);
2387
2393 static MeasureUnit getPoint();
2394
2402 static MeasureUnit *createSolarRadius(UErrorCode &status);
2403
2409 static MeasureUnit getSolarRadius();
2410
2418 static MeasureUnit *createYard(UErrorCode &status);
2419
2425 static MeasureUnit getYard();
2426
2434 static MeasureUnit *createCandela(UErrorCode &status);
2435
2441 static MeasureUnit getCandela();
2442
2450 static MeasureUnit *createLumen(UErrorCode &status);
2451
2457 static MeasureUnit getLumen();
2458
2466 static MeasureUnit *createLux(UErrorCode &status);
2467
2473 static MeasureUnit getLux();
2474
2482 static MeasureUnit *createSolarLuminosity(UErrorCode &status);
2483
2489 static MeasureUnit getSolarLuminosity();
2490
2498 static MeasureUnit *createCarat(UErrorCode &status);
2499
2505 static MeasureUnit getCarat();
2506
2514 static MeasureUnit *createDalton(UErrorCode &status);
2515
2521 static MeasureUnit getDalton();
2522
2530 static MeasureUnit *createEarthMass(UErrorCode &status);
2531
2537 static MeasureUnit getEarthMass();
2538
2546 static MeasureUnit *createGrain(UErrorCode &status);
2547
2553 static MeasureUnit getGrain();
2554
2562 static MeasureUnit *createGram(UErrorCode &status);
2563
2569 static MeasureUnit getGram();
2570
2578 static MeasureUnit *createKilogram(UErrorCode &status);
2579
2585 static MeasureUnit getKilogram();
2586
2598 static MeasureUnit *createMetricTon(UErrorCode &status);
2599
2609 static MeasureUnit getMetricTon();
2610
2618 static MeasureUnit *createMicrogram(UErrorCode &status);
2619
2625 static MeasureUnit getMicrogram();
2626
2634 static MeasureUnit *createMilligram(UErrorCode &status);
2635
2641 static MeasureUnit getMilligram();
2642
2650 static MeasureUnit *createOunce(UErrorCode &status);
2651
2657 static MeasureUnit getOunce();
2658
2666 static MeasureUnit *createOunceTroy(UErrorCode &status);
2667
2673 static MeasureUnit getOunceTroy();
2674
2682 static MeasureUnit *createPound(UErrorCode &status);
2683
2689 static MeasureUnit getPound();
2690
2698 static MeasureUnit *createSolarMass(UErrorCode &status);
2699
2705 static MeasureUnit getSolarMass();
2706
2714 static MeasureUnit *createStone(UErrorCode &status);
2715
2721 static MeasureUnit getStone();
2722
2730 static MeasureUnit *createTon(UErrorCode &status);
2731
2737 static MeasureUnit getTon();
2738
2746 static MeasureUnit *createTonne(UErrorCode &status);
2747
2753 static MeasureUnit getTonne();
2754
2762 static MeasureUnit *createGigawatt(UErrorCode &status);
2763
2769 static MeasureUnit getGigawatt();
2770
2778 static MeasureUnit *createHorsepower(UErrorCode &status);
2779
2785 static MeasureUnit getHorsepower();
2786
2794 static MeasureUnit *createKilowatt(UErrorCode &status);
2795
2801 static MeasureUnit getKilowatt();
2802
2810 static MeasureUnit *createMegawatt(UErrorCode &status);
2811
2817 static MeasureUnit getMegawatt();
2818
2826 static MeasureUnit *createMilliwatt(UErrorCode &status);
2827
2833 static MeasureUnit getMilliwatt();
2834
2842 static MeasureUnit *createWatt(UErrorCode &status);
2843
2849 static MeasureUnit getWatt();
2850
2858 static MeasureUnit *createAtmosphere(UErrorCode &status);
2859
2865 static MeasureUnit getAtmosphere();
2866
2874 static MeasureUnit *createBar(UErrorCode &status);
2875
2881 static MeasureUnit getBar();
2882
2883#ifndef U_HIDE_DRAFT_API
2891 static MeasureUnit *createGasolineEnergyDensity(UErrorCode &status);
2892
2898 static MeasureUnit getGasolineEnergyDensity();
2899#endif /* U_HIDE_DRAFT_API */
2900
2908 static MeasureUnit *createHectopascal(UErrorCode &status);
2909
2915 static MeasureUnit getHectopascal();
2916
2924 static MeasureUnit *createInchHg(UErrorCode &status);
2925
2931 static MeasureUnit getInchHg();
2932
2940 static MeasureUnit *createKilopascal(UErrorCode &status);
2941
2947 static MeasureUnit getKilopascal();
2948
2956 static MeasureUnit *createMegapascal(UErrorCode &status);
2957
2963 static MeasureUnit getMegapascal();
2964
2972 static MeasureUnit *createMillibar(UErrorCode &status);
2973
2979 static MeasureUnit getMillibar();
2980
2988 static MeasureUnit *createMillimeterOfMercury(UErrorCode &status);
2989
2995 static MeasureUnit getMillimeterOfMercury();
2996
3004 static MeasureUnit *createPascal(UErrorCode &status);
3005
3011 static MeasureUnit getPascal();
3012
3020 static MeasureUnit *createPoundPerSquareInch(UErrorCode &status);
3021
3027 static MeasureUnit getPoundPerSquareInch();
3028
3029#ifndef U_HIDE_DRAFT_API
3037 static MeasureUnit *createBeaufort(UErrorCode &status);
3038
3044 static MeasureUnit getBeaufort();
3045#endif /* U_HIDE_DRAFT_API */
3046
3054 static MeasureUnit *createKilometerPerHour(UErrorCode &status);
3055
3061 static MeasureUnit getKilometerPerHour();
3062
3070 static MeasureUnit *createKnot(UErrorCode &status);
3071
3077 static MeasureUnit getKnot();
3078
3086 static MeasureUnit *createMeterPerSecond(UErrorCode &status);
3087
3093 static MeasureUnit getMeterPerSecond();
3094
3102 static MeasureUnit *createMilePerHour(UErrorCode &status);
3103
3109 static MeasureUnit getMilePerHour();
3110
3118 static MeasureUnit *createCelsius(UErrorCode &status);
3119
3125 static MeasureUnit getCelsius();
3126
3134 static MeasureUnit *createFahrenheit(UErrorCode &status);
3135
3141 static MeasureUnit getFahrenheit();
3142
3150 static MeasureUnit *createGenericTemperature(UErrorCode &status);
3151
3157 static MeasureUnit getGenericTemperature();
3158
3166 static MeasureUnit *createKelvin(UErrorCode &status);
3167
3173 static MeasureUnit getKelvin();
3174
3182 static MeasureUnit *createNewtonMeter(UErrorCode &status);
3183
3189 static MeasureUnit getNewtonMeter();
3190
3198 static MeasureUnit *createPoundFoot(UErrorCode &status);
3199
3205 static MeasureUnit getPoundFoot();
3206
3214 static MeasureUnit *createAcreFoot(UErrorCode &status);
3215
3221 static MeasureUnit getAcreFoot();
3222
3230 static MeasureUnit *createBarrel(UErrorCode &status);
3231
3237 static MeasureUnit getBarrel();
3238
3246 static MeasureUnit *createBushel(UErrorCode &status);
3247
3253 static MeasureUnit getBushel();
3254
3262 static MeasureUnit *createCentiliter(UErrorCode &status);
3263
3269 static MeasureUnit getCentiliter();
3270
3278 static MeasureUnit *createCubicCentimeter(UErrorCode &status);
3279
3285 static MeasureUnit getCubicCentimeter();
3286
3294 static MeasureUnit *createCubicFoot(UErrorCode &status);
3295
3301 static MeasureUnit getCubicFoot();
3302
3310 static MeasureUnit *createCubicInch(UErrorCode &status);
3311
3317 static MeasureUnit getCubicInch();
3318
3326 static MeasureUnit *createCubicKilometer(UErrorCode &status);
3327
3333 static MeasureUnit getCubicKilometer();
3334
3342 static MeasureUnit *createCubicMeter(UErrorCode &status);
3343
3349 static MeasureUnit getCubicMeter();
3350
3358 static MeasureUnit *createCubicMile(UErrorCode &status);
3359
3365 static MeasureUnit getCubicMile();
3366
3374 static MeasureUnit *createCubicYard(UErrorCode &status);
3375
3381 static MeasureUnit getCubicYard();
3382
3390 static MeasureUnit *createCup(UErrorCode &status);
3391
3397 static MeasureUnit getCup();
3398
3406 static MeasureUnit *createCupMetric(UErrorCode &status);
3407
3413 static MeasureUnit getCupMetric();
3414
3422 static MeasureUnit *createDeciliter(UErrorCode &status);
3423
3429 static MeasureUnit getDeciliter();
3430
3438 static MeasureUnit *createDessertSpoon(UErrorCode &status);
3439
3445 static MeasureUnit getDessertSpoon();
3446
3454 static MeasureUnit *createDessertSpoonImperial(UErrorCode &status);
3455
3461 static MeasureUnit getDessertSpoonImperial();
3462
3470 static MeasureUnit *createDram(UErrorCode &status);
3471
3477 static MeasureUnit getDram();
3478
3486 static MeasureUnit *createDrop(UErrorCode &status);
3487
3493 static MeasureUnit getDrop();
3494
3502 static MeasureUnit *createFluidOunce(UErrorCode &status);
3503
3509 static MeasureUnit getFluidOunce();
3510
3518 static MeasureUnit *createFluidOunceImperial(UErrorCode &status);
3519
3525 static MeasureUnit getFluidOunceImperial();
3526
3534 static MeasureUnit *createGallon(UErrorCode &status);
3535
3541 static MeasureUnit getGallon();
3542
3550 static MeasureUnit *createGallonImperial(UErrorCode &status);
3551
3557 static MeasureUnit getGallonImperial();
3558
3566 static MeasureUnit *createHectoliter(UErrorCode &status);
3567
3573 static MeasureUnit getHectoliter();
3574
3582 static MeasureUnit *createJigger(UErrorCode &status);
3583
3589 static MeasureUnit getJigger();
3590
3598 static MeasureUnit *createLiter(UErrorCode &status);
3599
3605 static MeasureUnit getLiter();
3606
3614 static MeasureUnit *createMegaliter(UErrorCode &status);
3615
3621 static MeasureUnit getMegaliter();
3622
3630 static MeasureUnit *createMilliliter(UErrorCode &status);
3631
3637 static MeasureUnit getMilliliter();
3638
3646 static MeasureUnit *createPinch(UErrorCode &status);
3647
3653 static MeasureUnit getPinch();
3654
3662 static MeasureUnit *createPint(UErrorCode &status);
3663
3669 static MeasureUnit getPint();
3670
3678 static MeasureUnit *createPintMetric(UErrorCode &status);
3679
3685 static MeasureUnit getPintMetric();
3686
3694 static MeasureUnit *createQuart(UErrorCode &status);
3695
3701 static MeasureUnit getQuart();
3702
3710 static MeasureUnit *createQuartImperial(UErrorCode &status);
3711
3717 static MeasureUnit getQuartImperial();
3718
3726 static MeasureUnit *createTablespoon(UErrorCode &status);
3727
3733 static MeasureUnit getTablespoon();
3734
3742 static MeasureUnit *createTeaspoon(UErrorCode &status);
3743
3749 static MeasureUnit getTeaspoon();
3750
3751// End generated createXXX methods
3752
3753 protected:
3754
3755#ifndef U_HIDE_INTERNAL_API
3760 void initTime(const char *timeId);
3761
3766 void initCurrency(StringPiece isoCurrency);
3767
3768#endif /* U_HIDE_INTERNAL_API */
3769
3770 private:
3771
3772 // Used by new draft APIs in ICU 67. If non-null, fImpl is owned by the
3773 // MeasureUnit.
3774 MeasureUnitImpl* fImpl;
3775
3776 // An index into a static string list in measunit.cpp. If set to -1, fImpl
3777 // is in use instead of fTypeId and fSubTypeId.
3778 int16_t fSubTypeId;
3779 // An index into a static string list in measunit.cpp. If set to -1, fImpl
3780 // is in use instead of fTypeId and fSubTypeId.
3781 int8_t fTypeId;
3782
3783 MeasureUnit(int32_t typeId, int32_t subTypeId);
3784 MeasureUnit(MeasureUnitImpl&& impl);
3785 void setTo(int32_t typeId, int32_t subTypeId);
3786 static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status);
3787
3795 static bool findBySubType(StringPiece subType, MeasureUnit* output);
3796
3798 LocalArray<MeasureUnit> splitToSingleUnitsImpl(int32_t& outCount, UErrorCode& status) const;
3799
3800 friend class MeasureUnitImpl;
3801
3802 // For access to findBySubType
3803 friend class number::impl::LongNameHandler;
3804};
3805
3806// inline impl of @stable ICU 68 method
3807 inline std::pair<LocalArray<MeasureUnit>, int32_t>
3808MeasureUnit::splitToSingleUnits(UErrorCode& status) const {
3809 int32_t length;
3810 auto array = splitToSingleUnitsImpl(length, status);
3811 return std::make_pair(std::move(array), length);
3812}
3813
3814U_NAMESPACE_END
3815
3816#endif // !UNCONFIG_NO_FORMATTING
3817
3818#endif /* U_SHOW_CPLUSPLUS_API */
3819
3820#endif // __MEASUREUNIT_H__
icu::LocalArray
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
Definition localpointer.h:366
icu::MeasureUnit
A unit such as length, mass, volume, currency, etc.
Definition measunit.h:369
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::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::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::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::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::getStone
static MeasureUnit getStone()
Returns by value, unit of mass: stone.
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::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::getMegabyte
static MeasureUnit getMegabyte()
Returns by value, unit of digital: megabyte.
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::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::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::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::getStaticClassID
static UClassID getStaticClassID(void)
Return the class ID for this class.
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::getPixelPerInch
static MeasureUnit getPixelPerInch()
Returns by value, unit of graphics: pixel-per-inch.
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::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::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::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::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::getDynamicClassID
virtual UClassID getDynamicClassID(void) const override
Returns a unique class ID POLYMORPHICALLY.
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::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::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::getOunce
static MeasureUnit getOunce()
Returns by value, unit of mass: ounce.
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::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::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::createWeek
static MeasureUnit * createWeek(UErrorCode &status)
Returns by pointer, unit of duration: week.
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: permillion.
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::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::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::getFurlong
static MeasureUnit getFurlong()
Returns by value, unit of length: furlong.
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::getJoule
static MeasureUnit getJoule()
Returns by value, unit of energy: joule.
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::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::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::getKilowatt
static MeasureUnit getKilowatt()
Returns by value, unit of power: kilowatt.
icu::MeasureUnit::createHectare
static MeasureUnit * createHectare(UErrorCode &status)
Returns by pointer, unit of area: hectare.
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::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::createYard
static MeasureUnit * createYard(UErrorCode &status)
Returns by pointer, unit of length: yard.
icu::MeasureUnit::getCandela
static MeasureUnit getCandela()
Returns by value, unit of light: candela.
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::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::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::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::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::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::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)
Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS.
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::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::createMonthPerson
static MeasureUnit * createMonthPerson(UErrorCode &status)
Returns by pointer, unit of duration: month-person.
icu::MeasureUnit::getSquareInch
static MeasureUnit getSquareInch()
Returns by value, unit of area: square-inch.
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::createCelsius
static MeasureUnit * createCelsius(UErrorCode &status)
Returns by pointer, unit of temperature: celsius.
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::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::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::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::~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::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::getOffset
int32_t getOffset() const
ICU use only.
icu::MeasureUnit::getPound
static MeasureUnit getPound()
Returns by value, unit of mass: pound.
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:444
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::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::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: permillion.
icu::MeasureUnit::createKilowatt
static MeasureUnit * createKilowatt(UErrorCode &status)
Returns by pointer, unit of power: kilowatt.
icu::MeasureUnit::getYear
static MeasureUnit getYear()
Returns by value, unit of duration: year.
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::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::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::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::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::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::createCubicInch
static MeasureUnit * createCubicInch(UErrorCode &status)
Returns by pointer, unit of volume: cubic-inch.
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::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::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::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::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::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::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::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::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::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:60
icu::UObject
UObject is the common ICU "boilerplate" class.
Definition uobject.h:223
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:91
icu::UMEASURE_PREFIX_YOBI
@ UMEASURE_PREFIX_YOBI
Binary prefix: yobi, 1024^8.
Definition measunit.h:333
icu::UMEASURE_PREFIX_GIGA
@ UMEASURE_PREFIX_GIGA
SI prefix: giga, 10^9.
Definition measunit.h:152
icu::UMEASURE_PREFIX_GIBI
@ UMEASURE_PREFIX_GIBI
Binary prefix: gibi, 1024^3.
Definition measunit.h:298
icu::UMEASURE_PREFIX_TEBI
@ UMEASURE_PREFIX_TEBI
Binary prefix: tebi, 1024^4.
Definition measunit.h:305
icu::UMEASURE_PREFIX_PICO
@ UMEASURE_PREFIX_PICO
SI prefix: pico, 10^-12.
Definition measunit.h:222
icu::UMEASURE_PREFIX_NANO
@ UMEASURE_PREFIX_NANO
SI prefix: nano, 10^-9.
Definition measunit.h:215
icu::UMEASURE_PREFIX_INTERNAL_MIN_SI
@ UMEASURE_PREFIX_INTERNAL_MIN_SI
ICU use only.
Definition measunit.h:258
icu::UMEASURE_PREFIX_INTERNAL_MIN_BIN
@ UMEASURE_PREFIX_INTERNAL_MIN_BIN
ICU use only.
Definition measunit.h:283
icu::UMEASURE_PREFIX_HECTO
@ UMEASURE_PREFIX_HECTO
SI prefix: hecto, 10^2.
Definition measunit.h:173
icu::UMEASURE_PREFIX_KIBI
@ UMEASURE_PREFIX_KIBI
Binary prefix: kibi, 1024^1.
Definition measunit.h:275
icu::UMEASURE_PREFIX_INTERNAL_ONE_BIN
@ UMEASURE_PREFIX_INTERNAL_ONE_BIN
ICU use only.
Definition measunit.h:268
icu::UMEASURE_PREFIX_EXA
@ UMEASURE_PREFIX_EXA
SI prefix: exa, 10^18.
Definition measunit.h:131
icu::UMEASURE_PREFIX_FEMTO
@ UMEASURE_PREFIX_FEMTO
SI prefix: femto, 10^-15.
Definition measunit.h:229
icu::UMEASURE_PREFIX_MEBI
@ UMEASURE_PREFIX_MEBI
Binary prefix: mebi, 1024^2.
Definition measunit.h:291
icu::UMEASURE_PREFIX_MEGA
@ UMEASURE_PREFIX_MEGA
SI prefix: mega, 10^6.
Definition measunit.h:159
icu::UMEASURE_PREFIX_PEBI
@ UMEASURE_PREFIX_PEBI
Binary prefix: pebi, 1024^5.
Definition measunit.h:312
icu::UMEASURE_PREFIX_DECI
@ UMEASURE_PREFIX_DECI
SI prefix: deci, 10^-1.
Definition measunit.h:187
icu::UMEASURE_PREFIX_ZEPTO
@ UMEASURE_PREFIX_ZEPTO
SI prefix: zepto, 10^-21.
Definition measunit.h:243
icu::UMEASURE_PREFIX_CENTI
@ UMEASURE_PREFIX_CENTI
SI prefix: centi, 10^-2.
Definition measunit.h:194
icu::UMEASURE_PREFIX_ZEBI
@ UMEASURE_PREFIX_ZEBI
Binary prefix: zebi, 1024^7.
Definition measunit.h:326
icu::UMEASURE_PREFIX_KILO
@ UMEASURE_PREFIX_KILO
SI prefix: kilo, 10^3.
Definition measunit.h:166
icu::UMEASURE_PREFIX_DEKA
@ UMEASURE_PREFIX_DEKA
SI prefix: deka, 10^1.
Definition measunit.h:180
icu::UMEASURE_PREFIX_ONE
@ UMEASURE_PREFIX_ONE
The absence of an SI or binary prefix.
Definition measunit.h:101
icu::UMEASURE_PREFIX_YOTTA
@ UMEASURE_PREFIX_YOTTA
SI prefix: yotta, 10^24.
Definition measunit.h:108
icu::UMEASURE_PREFIX_INTERNAL_MAX_BIN
@ UMEASURE_PREFIX_INTERNAL_MAX_BIN
ICU use only.
Definition measunit.h:341
icu::UMEASURE_PREFIX_ATTO
@ UMEASURE_PREFIX_ATTO
SI prefix: atto, 10^-18.
Definition measunit.h:236
icu::UMEASURE_PREFIX_YOCTO
@ UMEASURE_PREFIX_YOCTO
SI prefix: yocto, 10^-24.
Definition measunit.h:250
icu::UMEASURE_PREFIX_ZETTA
@ UMEASURE_PREFIX_ZETTA
SI prefix: zetta, 10^21.
Definition measunit.h:124
icu::UMEASURE_PREFIX_EXBI
@ UMEASURE_PREFIX_EXBI
Binary prefix: exbi, 1024^6.
Definition measunit.h:319
icu::UMEASURE_PREFIX_TERA
@ UMEASURE_PREFIX_TERA
SI prefix: tera, 10^12.
Definition measunit.h:145
icu::UMEASURE_PREFIX_INTERNAL_MAX_SI
@ UMEASURE_PREFIX_INTERNAL_MAX_SI
ICU use only.
Definition measunit.h:116
icu::UMEASURE_PREFIX_MILLI
@ UMEASURE_PREFIX_MILLI
SI prefix: milli, 10^-3.
Definition measunit.h:201
icu::UMEASURE_PREFIX_MICRO
@ UMEASURE_PREFIX_MICRO
SI prefix: micro, 10^-6.
Definition measunit.h:208
icu::UMEASURE_PREFIX_PETA
@ UMEASURE_PREFIX_PETA
SI prefix: peta, 10^15.
Definition measunit.h:138
icu::UMeasureUnitComplexity
UMeasureUnitComplexity
Enumeration for unit complexity.
Definition measunit.h:57
icu::UMEASURE_UNIT_MIXED
@ UMEASURE_UNIT_MIXED
A mixed unit, like hour+minute.
Definition measunit.h:77
icu::UMEASURE_UNIT_COMPOUND
@ UMEASURE_UNIT_COMPOUND
A compound unit, like meter-per-second.
Definition measunit.h:70
icu::UMEASURE_UNIT_SINGLE
@ UMEASURE_UNIT_SINGLE
A single unit, like kilojoule.
Definition measunit.h:63
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:415
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:301