ICU 78.3 78.3

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
31 U_NAMESPACE_BEGIN
32
33 class StringEnumeration;
34 class MeasureUnitImpl;
35
36 namespace number::impl {
37 class LongNameHandler;
38 } // namespace number::impl
39
55 enum UMeasureUnitComplexity {
61 UMEASURE_UNIT_SINGLE,
62
68 UMEASURE_UNIT_COMPOUND,
69
75 UMEASURE_UNIT_MIXED
76 };
77
78
89 typedef enum UMeasurePrefix {
99 UMEASURE_PREFIX_ONE = 30 + 0,
100
106 UMEASURE_PREFIX_YOTTA = UMEASURE_PREFIX_ONE + 24,
107
113 UMEASURE_PREFIX_RONNA = UMEASURE_PREFIX_ONE + 27,
114
120 UMEASURE_PREFIX_QUETTA = UMEASURE_PREFIX_ONE + 30,
121
122 #ifndef U_HIDE_INTERNAL_API
128 #ifndef U_HIDE_DRAFT_API
129 UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_QUETTA,
130 #else /* U_HIDE_DRAFT_API */
131 UMEASURE_PREFIX_INTERNAL_MAX_SI = UMEASURE_PREFIX_YOTTA,
132 #endif /* U_HIDE_DRAFT_API */
133
134 #endif /* U_HIDE_INTERNAL_API */
135
141 UMEASURE_PREFIX_ZETTA = UMEASURE_PREFIX_ONE + 21,
142
148 UMEASURE_PREFIX_EXA = UMEASURE_PREFIX_ONE + 18,
149
155 UMEASURE_PREFIX_PETA = UMEASURE_PREFIX_ONE + 15,
156
162 UMEASURE_PREFIX_TERA = UMEASURE_PREFIX_ONE + 12,
163
169 UMEASURE_PREFIX_GIGA = UMEASURE_PREFIX_ONE + 9,
170
176 UMEASURE_PREFIX_MEGA = UMEASURE_PREFIX_ONE + 6,
177
183 UMEASURE_PREFIX_KILO = UMEASURE_PREFIX_ONE + 3,
184
190 UMEASURE_PREFIX_HECTO = UMEASURE_PREFIX_ONE + 2,
191
197 UMEASURE_PREFIX_DEKA = UMEASURE_PREFIX_ONE + 1,
198
204 UMEASURE_PREFIX_DECI = UMEASURE_PREFIX_ONE + -1,
205
211 UMEASURE_PREFIX_CENTI = UMEASURE_PREFIX_ONE + -2,
212
218 UMEASURE_PREFIX_MILLI = UMEASURE_PREFIX_ONE + -3,
219
225 UMEASURE_PREFIX_MICRO = UMEASURE_PREFIX_ONE + -6,
226
232 UMEASURE_PREFIX_NANO = UMEASURE_PREFIX_ONE + -9,
233
239 UMEASURE_PREFIX_PICO = UMEASURE_PREFIX_ONE + -12,
240
246 UMEASURE_PREFIX_FEMTO = UMEASURE_PREFIX_ONE + -15,
247
253 UMEASURE_PREFIX_ATTO = UMEASURE_PREFIX_ONE + -18,
254
260 UMEASURE_PREFIX_ZEPTO = UMEASURE_PREFIX_ONE + -21,
261
267 UMEASURE_PREFIX_YOCTO = UMEASURE_PREFIX_ONE + -24,
268
274 UMEASURE_PREFIX_RONTO = UMEASURE_PREFIX_ONE + -27,
275
281 UMEASURE_PREFIX_QUECTO = UMEASURE_PREFIX_ONE + -30,
282
283 #ifndef U_HIDE_INTERNAL_API
289 #ifndef U_HIDE_DRAFT_API
290 UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_QUECTO,
291 #else /* U_HIDE_DRAFT_API */
292 UMEASURE_PREFIX_INTERNAL_MIN_SI = UMEASURE_PREFIX_YOCTO,
293 #endif /* U_HIDE_DRAFT_API */
294
295 #endif // U_HIDE_INTERNAL_API
296
297 // Cannot conditionalize the following with #ifndef U_HIDE_INTERNAL_API,
298 // used in definitions of non-internal enum values
304 UMEASURE_PREFIX_INTERNAL_ONE_BIN = -60,
305
311 UMEASURE_PREFIX_KIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 1,
312
313 #ifndef U_HIDE_INTERNAL_API
319 UMEASURE_PREFIX_INTERNAL_MIN_BIN = UMEASURE_PREFIX_KIBI,
320 #endif // U_HIDE_INTERNAL_API
321
327 UMEASURE_PREFIX_MEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 2,
328
334 UMEASURE_PREFIX_GIBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 3,
335
341 UMEASURE_PREFIX_TEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 4,
342
348 UMEASURE_PREFIX_PEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 5,
349
355 UMEASURE_PREFIX_EXBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 6,
356
362 UMEASURE_PREFIX_ZEBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 7,
363
369 UMEASURE_PREFIX_YOBI = UMEASURE_PREFIX_INTERNAL_ONE_BIN + 8,
370
371 #ifndef U_HIDE_INTERNAL_API
377 UMEASURE_PREFIX_INTERNAL_MAX_BIN = UMEASURE_PREFIX_YOBI,
378 #endif // U_HIDE_INTERNAL_API
379 } UMeasurePrefix;
380
388 U_CAPI int32_t U_EXPORT2 umeas_getPrefixBase(UMeasurePrefix unitPrefix);
389
396 U_CAPI int32_t U_EXPORT2 umeas_getPrefixPower(UMeasurePrefix unitPrefix);
397
405 class U_I18N_API MeasureUnit: public UObject {
406 public:
407
414 MeasureUnit();
415
420 MeasureUnit(const MeasureUnit &other);
421
426 MeasureUnit(MeasureUnit &&other) noexcept;
427
444 static MeasureUnit forIdentifier(StringPiece identifier, UErrorCode& status);
445
450 MeasureUnit &operator=(const MeasureUnit &other);
451
456 MeasureUnit &operator=(MeasureUnit &&other) noexcept;
457
463 virtual MeasureUnit* clone() const;
464
469 virtual ~MeasureUnit();
470
476 virtual bool operator==(const UObject& other) const;
477
483 bool operator!=(const UObject& other) const {
484 return !(*this == other);
485 }
486
494 const char *getType() const;
495
503 const char *getSubtype() const;
504
511 const char* getIdentifier() const;
512
520 UMeasureUnitComplexity getComplexity(UErrorCode& status) const;
521
536 MeasureUnit withPrefix(UMeasurePrefix prefix, UErrorCode& status) const;
537
552 UMeasurePrefix getPrefix(UErrorCode& status) const;
553
554 #ifndef U_HIDE_DRAFT_API
555
570 MeasureUnit withConstantDenominator(uint64_t denominator, UErrorCode &status) const;
571
588 uint64_t getConstantDenominator(UErrorCode &status) const;
589
590 #endif /* U_HIDE_DRAFT_API */
591
606 MeasureUnit withDimensionality(int32_t dimensionality, UErrorCode& status) const;
607
621 int32_t getDimensionality(UErrorCode& status) const;
622
637 MeasureUnit reciprocal(UErrorCode& status) const;
638
656 MeasureUnit product(const MeasureUnit& other, UErrorCode& status) const;
657
677 inline std::pair<LocalArray<MeasureUnit>, int32_t> splitToSingleUnits(UErrorCode& status) const;
678
690 static int32_t getAvailable(
691 MeasureUnit *destArray,
692 int32_t destCapacity,
693 UErrorCode &errorCode);
694
707 static int32_t getAvailable(
708 const char *type,
709 MeasureUnit *destArray,
710 int32_t destCapacity,
711 UErrorCode &errorCode);
712
721 static StringEnumeration* getAvailableTypes(UErrorCode &errorCode);
722
734 static UClassID U_EXPORT2 getStaticClassID();
735
747 virtual UClassID getDynamicClassID() const override;
748
749 #ifndef U_HIDE_INTERNAL_API
755 int32_t getOffset() const;
756 #endif /* U_HIDE_INTERNAL_API */
757
758 // All code between the "Start generated createXXX methods" comment and
759 // the "End generated createXXX methods" comment is auto generated code
760 // and must not be edited manually. For instructions on how to correctly
761 // update this code, refer to:
762 // docs/processes/release/tasks/updating-measure-unit.md
763 //
764 // Start generated createXXX methods
765
773 static MeasureUnit *createGForce(UErrorCode &status);
774
780 static MeasureUnit getGForce();
781
789 static MeasureUnit *createMeterPerSecondSquared(UErrorCode &status);
790
796 static MeasureUnit getMeterPerSecondSquared();
797
805 static MeasureUnit *createArcMinute(UErrorCode &status);
806
812 static MeasureUnit getArcMinute();
813
821 static MeasureUnit *createArcSecond(UErrorCode &status);
822
828 static MeasureUnit getArcSecond();
829
837 static MeasureUnit *createDegree(UErrorCode &status);
838
844 static MeasureUnit getDegree();
845
853 static MeasureUnit *createRadian(UErrorCode &status);
854
860 static MeasureUnit getRadian();
861
869 static MeasureUnit *createRevolutionAngle(UErrorCode &status);
870
876 static MeasureUnit getRevolutionAngle();
877
878 #ifndef U_HIDE_DRAFT_API
886 static MeasureUnit *createSteradian(UErrorCode &status);
887
893 static MeasureUnit getSteradian();
894 #endif /* U_HIDE_DRAFT_API */
895
903 static MeasureUnit *createAcre(UErrorCode &status);
904
910 static MeasureUnit getAcre();
911
912 #ifndef U_HIDE_DRAFT_API
920 static MeasureUnit *createBuJp(UErrorCode &status);
921
927 static MeasureUnit getBuJp();
928 #endif /* U_HIDE_DRAFT_API */
929
930 #ifndef U_HIDE_DRAFT_API
938 static MeasureUnit *createCho(UErrorCode &status);
939
945 static MeasureUnit getCho();
946 #endif /* U_HIDE_DRAFT_API */
947
955 static MeasureUnit *createDunam(UErrorCode &status);
956
962 static MeasureUnit getDunam();
963
971 static MeasureUnit *createHectare(UErrorCode &status);
972
978 static MeasureUnit getHectare();
979
980 #ifndef U_HIDE_DRAFT_API
988 static MeasureUnit *createSeJp(UErrorCode &status);
989
995 static MeasureUnit getSeJp();
996 #endif /* U_HIDE_DRAFT_API */
997
1005 static MeasureUnit *createSquareCentimeter(UErrorCode &status);
1006
1012 static MeasureUnit getSquareCentimeter();
1013
1021 static MeasureUnit *createSquareFoot(UErrorCode &status);
1022
1028 static MeasureUnit getSquareFoot();
1029
1037 static MeasureUnit *createSquareInch(UErrorCode &status);
1038
1044 static MeasureUnit getSquareInch();
1045
1053 static MeasureUnit *createSquareKilometer(UErrorCode &status);
1054
1060 static MeasureUnit getSquareKilometer();
1061
1069 static MeasureUnit *createSquareMeter(UErrorCode &status);
1070
1076 static MeasureUnit getSquareMeter();
1077
1085 static MeasureUnit *createSquareMile(UErrorCode &status);
1086
1092 static MeasureUnit getSquareMile();
1093
1101 static MeasureUnit *createSquareYard(UErrorCode &status);
1102
1108 static MeasureUnit getSquareYard();
1109
1117 static MeasureUnit *createItem(UErrorCode &status);
1118
1124 static MeasureUnit getItem();
1125
1133 static MeasureUnit *createKarat(UErrorCode &status);
1134
1140 static MeasureUnit getKarat();
1141
1142 #ifndef U_HIDE_DRAFT_API
1150 static MeasureUnit *createKatal(UErrorCode &status);
1151
1157 static MeasureUnit getKatal();
1158 #endif /* U_HIDE_DRAFT_API */
1159
1167 static MeasureUnit *createMilligramOfglucosePerDeciliter(UErrorCode &status);
1168
1174 static MeasureUnit getMilligramOfglucosePerDeciliter();
1175
1176 #ifndef U_HIDE_DEPRECATED_API
1186 static MeasureUnit *createMilligramPerDeciliter(UErrorCode &status);
1187
1195 static MeasureUnit getMilligramPerDeciliter();
1196 #endif /* U_HIDE_DEPRECATED_API */
1197
1205 static MeasureUnit *createMillimolePerLiter(UErrorCode &status);
1206
1212 static MeasureUnit getMillimolePerLiter();
1213
1221 static MeasureUnit *createMole(UErrorCode &status);
1222
1228 static MeasureUnit getMole();
1229
1230 #ifndef U_HIDE_DRAFT_API
1238 static MeasureUnit *createOfglucose(UErrorCode &status);
1239
1245 static MeasureUnit getOfglucose();
1246 #endif /* U_HIDE_DRAFT_API */
1247
1248 #ifndef U_HIDE_DRAFT_API
1256 static MeasureUnit *createPart(UErrorCode &status);
1257
1263 static MeasureUnit getPart();
1264 #endif /* U_HIDE_DRAFT_API */
1265
1266 #ifndef U_HIDE_DRAFT_API
1274 static MeasureUnit *createPartPer1E6(UErrorCode &status);
1275
1281 static MeasureUnit getPartPer1E6();
1282 #endif /* U_HIDE_DRAFT_API */
1283
1293 static MeasureUnit *createPartPerMillion(UErrorCode &status);
1294
1302 static MeasureUnit getPartPerMillion();
1303
1304 #ifndef U_HIDE_DRAFT_API
1312 static MeasureUnit *createPartPer1E9(UErrorCode &status);
1313
1319 static MeasureUnit getPartPer1E9();
1320 #endif /* U_HIDE_DRAFT_API */
1321
1329 static MeasureUnit *createPercent(UErrorCode &status);
1330
1336 static MeasureUnit getPercent();
1337
1345 static MeasureUnit *createPermille(UErrorCode &status);
1346
1352 static MeasureUnit getPermille();
1353
1361 static MeasureUnit *createPermyriad(UErrorCode &status);
1362
1368 static MeasureUnit getPermyriad();
1369
1377 static MeasureUnit *createLiterPer100Kilometers(UErrorCode &status);
1378
1384 static MeasureUnit getLiterPer100Kilometers();
1385
1393 static MeasureUnit *createLiterPerKilometer(UErrorCode &status);
1394
1400 static MeasureUnit getLiterPerKilometer();
1401
1409 static MeasureUnit *createMilePerGallon(UErrorCode &status);
1410
1416 static MeasureUnit getMilePerGallon();
1417
1425 static MeasureUnit *createMilePerGallonImperial(UErrorCode &status);
1426
1432 static MeasureUnit getMilePerGallonImperial();
1433
1441 static MeasureUnit *createBit(UErrorCode &status);
1442
1448 static MeasureUnit getBit();
1449
1457 static MeasureUnit *createByte(UErrorCode &status);
1458
1464 static MeasureUnit getByte();
1465
1473 static MeasureUnit *createGigabit(UErrorCode &status);
1474
1480 static MeasureUnit getGigabit();
1481
1489 static MeasureUnit *createGigabyte(UErrorCode &status);
1490
1496 static MeasureUnit getGigabyte();
1497
1505 static MeasureUnit *createKilobit(UErrorCode &status);
1506
1512 static MeasureUnit getKilobit();
1513
1521 static MeasureUnit *createKilobyte(UErrorCode &status);
1522
1528 static MeasureUnit getKilobyte();
1529
1537 static MeasureUnit *createMegabit(UErrorCode &status);
1538
1544 static MeasureUnit getMegabit();
1545
1553 static MeasureUnit *createMegabyte(UErrorCode &status);
1554
1560 static MeasureUnit getMegabyte();
1561
1569 static MeasureUnit *createPetabyte(UErrorCode &status);
1570
1576 static MeasureUnit getPetabyte();
1577
1585 static MeasureUnit *createTerabit(UErrorCode &status);
1586
1592 static MeasureUnit getTerabit();
1593
1601 static MeasureUnit *createTerabyte(UErrorCode &status);
1602
1608 static MeasureUnit getTerabyte();
1609
1617 static MeasureUnit *createCentury(UErrorCode &status);
1618
1624 static MeasureUnit getCentury();
1625
1633 static MeasureUnit *createDay(UErrorCode &status);
1634
1640 static MeasureUnit getDay();
1641
1649 static MeasureUnit *createDayPerson(UErrorCode &status);
1650
1656 static MeasureUnit getDayPerson();
1657
1665 static MeasureUnit *createDecade(UErrorCode &status);
1666
1672 static MeasureUnit getDecade();
1673
1674 #ifndef U_HIDE_DRAFT_API
1682 static MeasureUnit *createFortnight(UErrorCode &status);
1683
1689 static MeasureUnit getFortnight();
1690 #endif /* U_HIDE_DRAFT_API */
1691
1699 static MeasureUnit *createHour(UErrorCode &status);
1700
1706 static MeasureUnit getHour();
1707
1715 static MeasureUnit *createMicrosecond(UErrorCode &status);
1716
1722 static MeasureUnit getMicrosecond();
1723
1731 static MeasureUnit *createMillisecond(UErrorCode &status);
1732
1738 static MeasureUnit getMillisecond();
1739
1747 static MeasureUnit *createMinute(UErrorCode &status);
1748
1754 static MeasureUnit getMinute();
1755
1763 static MeasureUnit *createMonth(UErrorCode &status);
1764
1770 static MeasureUnit getMonth();
1771
1779 static MeasureUnit *createMonthPerson(UErrorCode &status);
1780
1786 static MeasureUnit getMonthPerson();
1787
1795 static MeasureUnit *createNanosecond(UErrorCode &status);
1796
1802 static MeasureUnit getNanosecond();
1803
1811 static MeasureUnit *createNight(UErrorCode &status);
1812
1818 static MeasureUnit getNight();
1819
1827 static MeasureUnit *createQuarter(UErrorCode &status);
1828
1834 static MeasureUnit getQuarter();
1835
1843 static MeasureUnit *createSecond(UErrorCode &status);
1844
1850 static MeasureUnit getSecond();
1851
1859 static MeasureUnit *createWeek(UErrorCode &status);
1860
1866 static MeasureUnit getWeek();
1867
1875 static MeasureUnit *createWeekPerson(UErrorCode &status);
1876
1882 static MeasureUnit getWeekPerson();
1883
1891 static MeasureUnit *createYear(UErrorCode &status);
1892
1898 static MeasureUnit getYear();
1899
1907 static MeasureUnit *createYearPerson(UErrorCode &status);
1908
1914 static MeasureUnit getYearPerson();
1915
1923 static MeasureUnit *createAmpere(UErrorCode &status);
1924
1930 static MeasureUnit getAmpere();
1931
1932 #ifndef U_HIDE_DRAFT_API
1940 static MeasureUnit *createCoulomb(UErrorCode &status);
1941
1947 static MeasureUnit getCoulomb();
1948 #endif /* U_HIDE_DRAFT_API */
1949
1950 #ifndef U_HIDE_DRAFT_API
1958 static MeasureUnit *createFarad(UErrorCode &status);
1959
1965 static MeasureUnit getFarad();
1966 #endif /* U_HIDE_DRAFT_API */
1967
1968 #ifndef U_HIDE_DRAFT_API
1976 static MeasureUnit *createHenry(UErrorCode &status);
1977
1983 static MeasureUnit getHenry();
1984 #endif /* U_HIDE_DRAFT_API */
1985
1993 static MeasureUnit *createMilliampere(UErrorCode &status);
1994
2000 static MeasureUnit getMilliampere();
2001
2009 static MeasureUnit *createOhm(UErrorCode &status);
2010
2016 static MeasureUnit getOhm();
2017
2018 #ifndef U_HIDE_DRAFT_API
2026 static MeasureUnit *createSiemens(UErrorCode &status);
2027
2033 static MeasureUnit getSiemens();
2034 #endif /* U_HIDE_DRAFT_API */
2035
2043 static MeasureUnit *createVolt(UErrorCode &status);
2044
2050 static MeasureUnit getVolt();
2051
2052 #ifndef U_HIDE_DRAFT_API
2060 static MeasureUnit *createBecquerel(UErrorCode &status);
2061
2067 static MeasureUnit getBecquerel();
2068 #endif /* U_HIDE_DRAFT_API */
2069
2077 static MeasureUnit *createBritishThermalUnit(UErrorCode &status);
2078
2084 static MeasureUnit getBritishThermalUnit();
2085
2086 #ifndef U_HIDE_DRAFT_API
2094 static MeasureUnit *createBritishThermalUnitIt(UErrorCode &status);
2095
2101 static MeasureUnit getBritishThermalUnitIt();
2102 #endif /* U_HIDE_DRAFT_API */
2103
2111 static MeasureUnit *createCalorie(UErrorCode &status);
2112
2118 static MeasureUnit getCalorie();
2119
2120 #ifndef U_HIDE_DRAFT_API
2128 static MeasureUnit *createCalorieIt(UErrorCode &status);
2129
2135 static MeasureUnit getCalorieIt();
2136 #endif /* U_HIDE_DRAFT_API */
2137
2145 static MeasureUnit *createElectronvolt(UErrorCode &status);
2146
2152 static MeasureUnit getElectronvolt();
2153
2161 static MeasureUnit *createFoodcalorie(UErrorCode &status);
2162
2168 static MeasureUnit getFoodcalorie();
2169
2170 #ifndef U_HIDE_DRAFT_API
2178 static MeasureUnit *createGray(UErrorCode &status);
2179
2185 static MeasureUnit getGray();
2186 #endif /* U_HIDE_DRAFT_API */
2187
2195 static MeasureUnit *createJoule(UErrorCode &status);
2196
2202 static MeasureUnit getJoule();
2203
2211 static MeasureUnit *createKilocalorie(UErrorCode &status);
2212
2218 static MeasureUnit getKilocalorie();
2219
2227 static MeasureUnit *createKilojoule(UErrorCode &status);
2228
2234 static MeasureUnit getKilojoule();
2235
2243 static MeasureUnit *createKilowattHour(UErrorCode &status);
2244
2250 static MeasureUnit getKilowattHour();
2251
2252 #ifndef U_HIDE_DRAFT_API
2260 static MeasureUnit *createSievert(UErrorCode &status);
2261
2267 static MeasureUnit getSievert();
2268 #endif /* U_HIDE_DRAFT_API */
2269
2277 static MeasureUnit *createThermUs(UErrorCode &status);
2278
2284 static MeasureUnit getThermUs();
2285
2286 #ifndef U_HIDE_DRAFT_API
2294 static MeasureUnit *createKilogramForce(UErrorCode &status);
2295
2301 static MeasureUnit getKilogramForce();
2302 #endif /* U_HIDE_DRAFT_API */
2303
2311 static MeasureUnit *createKilowattHourPer100Kilometer(UErrorCode &status);
2312
2318 static MeasureUnit getKilowattHourPer100Kilometer();
2319
2327 static MeasureUnit *createNewton(UErrorCode &status);
2328
2334 static MeasureUnit getNewton();
2335
2343 static MeasureUnit *createPoundForce(UErrorCode &status);
2344
2350 static MeasureUnit getPoundForce();
2351
2359 static MeasureUnit *createGigahertz(UErrorCode &status);
2360
2366 static MeasureUnit getGigahertz();
2367
2375 static MeasureUnit *createHertz(UErrorCode &status);
2376
2382 static MeasureUnit getHertz();
2383
2391 static MeasureUnit *createKilohertz(UErrorCode &status);
2392
2398 static MeasureUnit getKilohertz();
2399
2407 static MeasureUnit *createMegahertz(UErrorCode &status);
2408
2414 static MeasureUnit getMegahertz();
2415
2423 static MeasureUnit *createDot(UErrorCode &status);
2424
2430 static MeasureUnit getDot();
2431
2439 static MeasureUnit *createDotPerCentimeter(UErrorCode &status);
2440
2446 static MeasureUnit getDotPerCentimeter();
2447
2455 static MeasureUnit *createDotPerInch(UErrorCode &status);
2456
2462 static MeasureUnit getDotPerInch();
2463
2471 static MeasureUnit *createEm(UErrorCode &status);
2472
2478 static MeasureUnit getEm();
2479
2487 static MeasureUnit *createMegapixel(UErrorCode &status);
2488
2494 static MeasureUnit getMegapixel();
2495
2503 static MeasureUnit *createPixel(UErrorCode &status);
2504
2510 static MeasureUnit getPixel();
2511
2519 static MeasureUnit *createPixelPerCentimeter(UErrorCode &status);
2520
2526 static MeasureUnit getPixelPerCentimeter();
2527
2535 static MeasureUnit *createPixelPerInch(UErrorCode &status);
2536
2542 static MeasureUnit getPixelPerInch();
2543
2551 static MeasureUnit *createAstronomicalUnit(UErrorCode &status);
2552
2558 static MeasureUnit getAstronomicalUnit();
2559
2567 static MeasureUnit *createCentimeter(UErrorCode &status);
2568
2574 static MeasureUnit getCentimeter();
2575
2576 #ifndef U_HIDE_DRAFT_API
2584 static MeasureUnit *createChain(UErrorCode &status);
2585
2591 static MeasureUnit getChain();
2592 #endif /* U_HIDE_DRAFT_API */
2593
2601 static MeasureUnit *createDecimeter(UErrorCode &status);
2602
2608 static MeasureUnit getDecimeter();
2609
2617 static MeasureUnit *createEarthRadius(UErrorCode &status);
2618
2624 static MeasureUnit getEarthRadius();
2625
2633 static MeasureUnit *createFathom(UErrorCode &status);
2634
2640 static MeasureUnit getFathom();
2641
2649 static MeasureUnit *createFoot(UErrorCode &status);
2650
2656 static MeasureUnit getFoot();
2657
2665 static MeasureUnit *createFurlong(UErrorCode &status);
2666
2672 static MeasureUnit getFurlong();
2673
2681 static MeasureUnit *createInch(UErrorCode &status);
2682
2688 static MeasureUnit getInch();
2689
2690 #ifndef U_HIDE_DRAFT_API
2698 static MeasureUnit *createJoJp(UErrorCode &status);
2699
2705 static MeasureUnit getJoJp();
2706 #endif /* U_HIDE_DRAFT_API */
2707
2708 #ifndef U_HIDE_DRAFT_API
2716 static MeasureUnit *createKen(UErrorCode &status);
2717
2723 static MeasureUnit getKen();
2724 #endif /* U_HIDE_DRAFT_API */
2725
2733 static MeasureUnit *createKilometer(UErrorCode &status);
2734
2740 static MeasureUnit getKilometer();
2741
2749 static MeasureUnit *createLightYear(UErrorCode &status);
2750
2756 static MeasureUnit getLightYear();
2757
2765 static MeasureUnit *createMeter(UErrorCode &status);
2766
2772 static MeasureUnit getMeter();
2773
2781 static MeasureUnit *createMicrometer(UErrorCode &status);
2782
2788 static MeasureUnit getMicrometer();
2789
2797 static MeasureUnit *createMile(UErrorCode &status);
2798
2804 static MeasureUnit getMile();
2805
2813 static MeasureUnit *createMileScandinavian(UErrorCode &status);
2814
2820 static MeasureUnit getMileScandinavian();
2821
2829 static MeasureUnit *createMillimeter(UErrorCode &status);
2830
2836 static MeasureUnit getMillimeter();
2837
2845 static MeasureUnit *createNanometer(UErrorCode &status);
2846
2852 static MeasureUnit getNanometer();
2853
2861 static MeasureUnit *createNauticalMile(UErrorCode &status);
2862
2868 static MeasureUnit getNauticalMile();
2869
2877 static MeasureUnit *createParsec(UErrorCode &status);
2878
2884 static MeasureUnit getParsec();
2885
2893 static MeasureUnit *createPicometer(UErrorCode &status);
2894
2900 static MeasureUnit getPicometer();
2901
2909 static MeasureUnit *createPoint(UErrorCode &status);
2910
2916 static MeasureUnit getPoint();
2917
2918 #ifndef U_HIDE_DRAFT_API
2926 static MeasureUnit *createRiJp(UErrorCode &status);
2927
2933 static MeasureUnit getRiJp();
2934 #endif /* U_HIDE_DRAFT_API */
2935
2936 #ifndef U_HIDE_DRAFT_API
2944 static MeasureUnit *createRin(UErrorCode &status);
2945
2951 static MeasureUnit getRin();
2952 #endif /* U_HIDE_DRAFT_API */
2953
2954 #ifndef U_HIDE_DRAFT_API
2962 static MeasureUnit *createRod(UErrorCode &status);
2963
2969 static MeasureUnit getRod();
2970 #endif /* U_HIDE_DRAFT_API */
2971
2972 #ifndef U_HIDE_DRAFT_API
2980 static MeasureUnit *createShakuCloth(UErrorCode &status);
2981
2987 static MeasureUnit getShakuCloth();
2988 #endif /* U_HIDE_DRAFT_API */
2989
2990 #ifndef U_HIDE_DRAFT_API
2998 static MeasureUnit *createShakuLength(UErrorCode &status);
2999
3005 static MeasureUnit getShakuLength();
3006 #endif /* U_HIDE_DRAFT_API */
3007
3015 static MeasureUnit *createSolarRadius(UErrorCode &status);
3016
3022 static MeasureUnit getSolarRadius();
3023
3024 #ifndef U_HIDE_DRAFT_API
3032 static MeasureUnit *createSun(UErrorCode &status);
3033
3039 static MeasureUnit getSun();
3040 #endif /* U_HIDE_DRAFT_API */
3041
3049 static MeasureUnit *createYard(UErrorCode &status);
3050
3056 static MeasureUnit getYard();
3057
3065 static MeasureUnit *createCandela(UErrorCode &status);
3066
3072 static MeasureUnit getCandela();
3073
3081 static MeasureUnit *createLumen(UErrorCode &status);
3082
3088 static MeasureUnit getLumen();
3089
3097 static MeasureUnit *createLux(UErrorCode &status);
3098
3104 static MeasureUnit getLux();
3105
3113 static MeasureUnit *createSolarLuminosity(UErrorCode &status);
3114
3120 static MeasureUnit getSolarLuminosity();
3121
3122 #ifndef U_HIDE_DRAFT_API
3130 static MeasureUnit *createTesla(UErrorCode &status);
3131
3137 static MeasureUnit getTesla();
3138 #endif /* U_HIDE_DRAFT_API */
3139
3140 #ifndef U_HIDE_DRAFT_API
3148 static MeasureUnit *createWeber(UErrorCode &status);
3149
3155 static MeasureUnit getWeber();
3156 #endif /* U_HIDE_DRAFT_API */
3157
3165 static MeasureUnit *createCarat(UErrorCode &status);
3166
3172 static MeasureUnit getCarat();
3173
3181 static MeasureUnit *createDalton(UErrorCode &status);
3182
3188 static MeasureUnit getDalton();
3189
3197 static MeasureUnit *createEarthMass(UErrorCode &status);
3198
3204 static MeasureUnit getEarthMass();
3205
3206 #ifndef U_HIDE_DRAFT_API
3214 static MeasureUnit *createFun(UErrorCode &status);
3215
3221 static MeasureUnit getFun();
3222 #endif /* U_HIDE_DRAFT_API */
3223
3231 static MeasureUnit *createGrain(UErrorCode &status);
3232
3238 static MeasureUnit getGrain();
3239
3247 static MeasureUnit *createGram(UErrorCode &status);
3248
3254 static MeasureUnit getGram();
3255
3263 static MeasureUnit *createKilogram(UErrorCode &status);
3264
3270 static MeasureUnit getKilogram();
3271
3279 static MeasureUnit *createMicrogram(UErrorCode &status);
3280
3286 static MeasureUnit getMicrogram();
3287
3295 static MeasureUnit *createMilligram(UErrorCode &status);
3296
3302 static MeasureUnit getMilligram();
3303
3311 static MeasureUnit *createOunce(UErrorCode &status);
3312
3318 static MeasureUnit getOunce();
3319
3327 static MeasureUnit *createOunceTroy(UErrorCode &status);
3328
3334 static MeasureUnit getOunceTroy();
3335
3343 static MeasureUnit *createPound(UErrorCode &status);
3344
3350 static MeasureUnit getPound();
3351
3352 #ifndef U_HIDE_DRAFT_API
3360 static MeasureUnit *createSlug(UErrorCode &status);
3361
3367 static MeasureUnit getSlug();
3368 #endif /* U_HIDE_DRAFT_API */
3369
3377 static MeasureUnit *createSolarMass(UErrorCode &status);
3378
3384 static MeasureUnit getSolarMass();
3385
3393 static MeasureUnit *createStone(UErrorCode &status);
3394
3400 static MeasureUnit getStone();
3401
3409 static MeasureUnit *createTon(UErrorCode &status);
3410
3416 static MeasureUnit getTon();
3417
3425 static MeasureUnit *createTonne(UErrorCode &status);
3426
3432 static MeasureUnit getTonne();
3433
3434 #ifndef U_HIDE_DEPRECATED_API
3443 static MeasureUnit *createMetricTon(UErrorCode &status);
3444
3451 static MeasureUnit getMetricTon();
3452 #endif /* U_HIDE_DEPRECATED_API */
3453
3461 static MeasureUnit *createGigawatt(UErrorCode &status);
3462
3468 static MeasureUnit getGigawatt();
3469
3477 static MeasureUnit *createHorsepower(UErrorCode &status);
3478
3484 static MeasureUnit getHorsepower();
3485
3493 static MeasureUnit *createKilowatt(UErrorCode &status);
3494
3500 static MeasureUnit getKilowatt();
3501
3509 static MeasureUnit *createMegawatt(UErrorCode &status);
3510
3516 static MeasureUnit getMegawatt();
3517
3525 static MeasureUnit *createMilliwatt(UErrorCode &status);
3526
3532 static MeasureUnit getMilliwatt();
3533
3541 static MeasureUnit *createWatt(UErrorCode &status);
3542
3548 static MeasureUnit getWatt();
3549
3557 static MeasureUnit *createAtmosphere(UErrorCode &status);
3558
3564 static MeasureUnit getAtmosphere();
3565
3573 static MeasureUnit *createBar(UErrorCode &status);
3574
3580 static MeasureUnit getBar();
3581
3589 static MeasureUnit *createGasolineEnergyDensity(UErrorCode &status);
3590
3596 static MeasureUnit getGasolineEnergyDensity();
3597
3605 static MeasureUnit *createHectopascal(UErrorCode &status);
3606
3612 static MeasureUnit getHectopascal();
3613
3621 static MeasureUnit *createInchHg(UErrorCode &status);
3622
3628 static MeasureUnit getInchHg();
3629
3637 static MeasureUnit *createKilopascal(UErrorCode &status);
3638
3644 static MeasureUnit getKilopascal();
3645
3653 static MeasureUnit *createMegapascal(UErrorCode &status);
3654
3660 static MeasureUnit getMegapascal();
3661
3669 static MeasureUnit *createMillibar(UErrorCode &status);
3670
3676 static MeasureUnit getMillibar();
3677
3685 static MeasureUnit *createMillimeterOfMercury(UErrorCode &status);
3686
3692 static MeasureUnit getMillimeterOfMercury();
3693
3694 #ifndef U_HIDE_DRAFT_API
3702 static MeasureUnit *createOfhg(UErrorCode &status);
3703
3709 static MeasureUnit getOfhg();
3710 #endif /* U_HIDE_DRAFT_API */
3711
3719 static MeasureUnit *createPascal(UErrorCode &status);
3720
3726 static MeasureUnit getPascal();
3727
3735 static MeasureUnit *createPoundPerSquareInch(UErrorCode &status);
3736
3742 static MeasureUnit getPoundPerSquareInch();
3743
3751 static MeasureUnit *createBeaufort(UErrorCode &status);
3752
3758 static MeasureUnit getBeaufort();
3759
3767 static MeasureUnit *createKilometerPerHour(UErrorCode &status);
3768
3774 static MeasureUnit getKilometerPerHour();
3775
3783 static MeasureUnit *createKnot(UErrorCode &status);
3784
3790 static MeasureUnit getKnot();
3791
3799 static MeasureUnit *createLightSpeed(UErrorCode &status);
3800
3806 static MeasureUnit getLightSpeed();
3807
3815 static MeasureUnit *createMeterPerSecond(UErrorCode &status);
3816
3822 static MeasureUnit getMeterPerSecond();
3823
3831 static MeasureUnit *createMilePerHour(UErrorCode &status);
3832
3838 static MeasureUnit getMilePerHour();
3839
3847 static MeasureUnit *createCelsius(UErrorCode &status);
3848
3854 static MeasureUnit getCelsius();
3855
3863 static MeasureUnit *createFahrenheit(UErrorCode &status);
3864
3870 static MeasureUnit getFahrenheit();
3871
3879 static MeasureUnit *createGenericTemperature(UErrorCode &status);
3880
3886 static MeasureUnit getGenericTemperature();
3887
3895 static MeasureUnit *createKelvin(UErrorCode &status);
3896
3902 static MeasureUnit getKelvin();
3903
3904 #ifndef U_HIDE_DRAFT_API
3912 static MeasureUnit *createRankine(UErrorCode &status);
3913
3919 static MeasureUnit getRankine();
3920 #endif /* U_HIDE_DRAFT_API */
3921
3929 static MeasureUnit *createNewtonMeter(UErrorCode &status);
3930
3936 static MeasureUnit getNewtonMeter();
3937
3945 static MeasureUnit *createPoundFoot(UErrorCode &status);
3946
3952 static MeasureUnit getPoundFoot();
3953
3961 static MeasureUnit *createAcreFoot(UErrorCode &status);
3962
3968 static MeasureUnit getAcreFoot();
3969
3977 static MeasureUnit *createBarrel(UErrorCode &status);
3978
3984 static MeasureUnit getBarrel();
3985
3993 static MeasureUnit *createBushel(UErrorCode &status);
3994
4000 static MeasureUnit getBushel();
4001
4009 static MeasureUnit *createCentiliter(UErrorCode &status);
4010
4016 static MeasureUnit getCentiliter();
4017
4025 static MeasureUnit *createCubicCentimeter(UErrorCode &status);
4026
4032 static MeasureUnit getCubicCentimeter();
4033
4041 static MeasureUnit *createCubicFoot(UErrorCode &status);
4042
4048 static MeasureUnit getCubicFoot();
4049
4057 static MeasureUnit *createCubicInch(UErrorCode &status);
4058
4064 static MeasureUnit getCubicInch();
4065
4073 static MeasureUnit *createCubicKilometer(UErrorCode &status);
4074
4080 static MeasureUnit getCubicKilometer();
4081
4089 static MeasureUnit *createCubicMeter(UErrorCode &status);
4090
4096 static MeasureUnit getCubicMeter();
4097
4105 static MeasureUnit *createCubicMile(UErrorCode &status);
4106
4112 static MeasureUnit getCubicMile();
4113
4121 static MeasureUnit *createCubicYard(UErrorCode &status);
4122
4128 static MeasureUnit getCubicYard();
4129
4137 static MeasureUnit *createCup(UErrorCode &status);
4138
4144 static MeasureUnit getCup();
4145
4146 #ifndef U_HIDE_DRAFT_API
4154 static MeasureUnit *createCupImperial(UErrorCode &status);
4155
4161 static MeasureUnit getCupImperial();
4162 #endif /* U_HIDE_DRAFT_API */
4163
4164 #ifndef U_HIDE_DRAFT_API
4172 static MeasureUnit *createCupJp(UErrorCode &status);
4173
4179 static MeasureUnit getCupJp();
4180 #endif /* U_HIDE_DRAFT_API */
4181
4189 static MeasureUnit *createCupMetric(UErrorCode &status);
4190
4196 static MeasureUnit getCupMetric();
4197
4205 static MeasureUnit *createDeciliter(UErrorCode &status);
4206
4212 static MeasureUnit getDeciliter();
4213
4221 static MeasureUnit *createDessertSpoon(UErrorCode &status);
4222
4228 static MeasureUnit getDessertSpoon();
4229
4237 static MeasureUnit *createDessertSpoonImperial(UErrorCode &status);
4238
4244 static MeasureUnit getDessertSpoonImperial();
4245
4253 static MeasureUnit *createDram(UErrorCode &status);
4254
4260 static MeasureUnit getDram();
4261
4269 static MeasureUnit *createDrop(UErrorCode &status);
4270
4276 static MeasureUnit getDrop();
4277
4285 static MeasureUnit *createFluidOunce(UErrorCode &status);
4286
4292 static MeasureUnit getFluidOunce();
4293
4301 static MeasureUnit *createFluidOunceImperial(UErrorCode &status);
4302
4308 static MeasureUnit getFluidOunceImperial();
4309
4310 #ifndef U_HIDE_DRAFT_API
4318 static MeasureUnit *createFluidOunceMetric(UErrorCode &status);
4319
4325 static MeasureUnit getFluidOunceMetric();
4326 #endif /* U_HIDE_DRAFT_API */
4327
4335 static MeasureUnit *createGallon(UErrorCode &status);
4336
4342 static MeasureUnit getGallon();
4343
4351 static MeasureUnit *createGallonImperial(UErrorCode &status);
4352
4358 static MeasureUnit getGallonImperial();
4359
4367 static MeasureUnit *createHectoliter(UErrorCode &status);
4368
4374 static MeasureUnit getHectoliter();
4375
4383 static MeasureUnit *createJigger(UErrorCode &status);
4384
4390 static MeasureUnit getJigger();
4391
4392 #ifndef U_HIDE_DRAFT_API
4400 static MeasureUnit *createKoku(UErrorCode &status);
4401
4407 static MeasureUnit getKoku();
4408 #endif /* U_HIDE_DRAFT_API */
4409
4410 #ifndef U_HIDE_DRAFT_API
4418 static MeasureUnit *createKosaji(UErrorCode &status);
4419
4425 static MeasureUnit getKosaji();
4426 #endif /* U_HIDE_DRAFT_API */
4427
4435 static MeasureUnit *createLiter(UErrorCode &status);
4436
4442 static MeasureUnit getLiter();
4443
4451 static MeasureUnit *createMegaliter(UErrorCode &status);
4452
4458 static MeasureUnit getMegaliter();
4459
4467 static MeasureUnit *createMilliliter(UErrorCode &status);
4468
4474 static MeasureUnit getMilliliter();
4475
4476 #ifndef U_HIDE_DRAFT_API
4484 static MeasureUnit *createOsaji(UErrorCode &status);
4485
4491 static MeasureUnit getOsaji();
4492 #endif /* U_HIDE_DRAFT_API */
4493
4501 static MeasureUnit *createPinch(UErrorCode &status);
4502
4508 static MeasureUnit getPinch();
4509
4517 static MeasureUnit *createPint(UErrorCode &status);
4518
4524 static MeasureUnit getPint();
4525
4526 #ifndef U_HIDE_DRAFT_API
4534 static MeasureUnit *createPintImperial(UErrorCode &status);
4535
4541 static MeasureUnit getPintImperial();
4542 #endif /* U_HIDE_DRAFT_API */
4543
4551 static MeasureUnit *createPintMetric(UErrorCode &status);
4552
4558 static MeasureUnit getPintMetric();
4559
4567 static MeasureUnit *createQuart(UErrorCode &status);
4568
4574 static MeasureUnit getQuart();
4575
4583 static MeasureUnit *createQuartImperial(UErrorCode &status);
4584
4590 static MeasureUnit getQuartImperial();
4591
4592 #ifndef U_HIDE_DRAFT_API
4600 static MeasureUnit *createSai(UErrorCode &status);
4601
4607 static MeasureUnit getSai();
4608 #endif /* U_HIDE_DRAFT_API */
4609
4610 #ifndef U_HIDE_DRAFT_API
4618 static MeasureUnit *createShaku(UErrorCode &status);
4619
4625 static MeasureUnit getShaku();
4626 #endif /* U_HIDE_DRAFT_API */
4627
4635 static MeasureUnit *createTablespoon(UErrorCode &status);
4636
4642 static MeasureUnit getTablespoon();
4643
4651 static MeasureUnit *createTeaspoon(UErrorCode &status);
4652
4658 static MeasureUnit getTeaspoon();
4659
4660 #ifndef U_HIDE_DRAFT_API
4668 static MeasureUnit *createToJp(UErrorCode &status);
4669
4675 static MeasureUnit getToJp();
4676 #endif /* U_HIDE_DRAFT_API */
4677
4678 // End generated createXXX methods
4679
4680 protected:
4681
4682 #ifndef U_HIDE_INTERNAL_API
4687 void initTime(const char *timeId);
4688
4693 void initCurrency(StringPiece isoCurrency);
4694
4695 #endif /* U_HIDE_INTERNAL_API */
4696
4697 private:
4698
4699 // Used by new draft APIs in ICU 67. If non-null, fImpl is owned by the
4700 // MeasureUnit.
4701 MeasureUnitImpl* fImpl;
4702
4703 // An index into a static string list in measunit.cpp. If set to -1, fImpl
4704 // is in use instead of fTypeId and fSubTypeId.
4705 int16_t fSubTypeId;
4706 // An index into a static string list in measunit.cpp. If set to -1, fImpl
4707 // is in use instead of fTypeId and fSubTypeId.
4708 int8_t fTypeId;
4709
4710 MeasureUnit(int32_t typeId, int32_t subTypeId);
4711 MeasureUnit(MeasureUnitImpl&& impl);
4712 void setTo(int32_t typeId, int32_t subTypeId);
4713 static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status);
4714
4722 static bool findBySubType(StringPiece subType, MeasureUnit* output);
4723
4725 LocalArray<MeasureUnit> splitToSingleUnitsImpl(int32_t& outCount, UErrorCode& status) const;
4726
4727 friend class MeasureUnitImpl;
4728
4729 // For access to findBySubType
4730 friend class number::impl::LongNameHandler;
4731 };
4732
4733 // inline impl of @stable ICU 68 method
4734 inline std::pair<LocalArray<MeasureUnit>, int32_t>
4735 MeasureUnit::splitToSingleUnits(UErrorCode& status) const {
4736 int32_t length;
4737 auto array = splitToSingleUnitsImpl(length, status);
4738 return std::make_pair(std::move(array), length);
4739 }
4740
4741 U_NAMESPACE_END
4742
4743 #endif // !UNCONFIG_NO_FORMATTING
4744
4745 #endif /* U_SHOW_CPLUSPLUS_API */
4746
4747 #endif // __MEASUREUNIT_H__
icu::LocalArray
"Smart pointer" class, deletes objects via the C++ array delete[] operator.
Definition: localpointer.h:364
icu::MeasureUnit
A unit such as length, mass, volume, currency, etc.
Definition: measunit.h:405
icu::MeasureUnit::createGasolineEnergyDensity
static MeasureUnit * createGasolineEnergyDensity(UErrorCode &status)
Returns by pointer, unit of pressure: gasoline-energy-density.
icu::MeasureUnit::createArcSecond
static MeasureUnit * createArcSecond(UErrorCode &status)
Returns by pointer, unit of angle: arc-second.
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::createNewton
static MeasureUnit * createNewton(UErrorCode &status)
Returns by pointer, unit of force: newton.
icu::MeasureUnit::createOhm
static MeasureUnit * createOhm(UErrorCode &status)
Returns by pointer, unit of electric: ohm.
icu::MeasureUnit::getMilligramPerDeciliter
static MeasureUnit getMilligramPerDeciliter()
Returns by value, unit of concentr: milligram-per-deciliter.
icu::MeasureUnit::getSievert
static MeasureUnit getSievert()
Returns by value, unit of energy: sievert.
icu::MeasureUnit::createMegabyte
static MeasureUnit * createMegabyte(UErrorCode &status)
Returns by pointer, unit of digital: megabyte.
icu::MeasureUnit::getKilogramForce
static MeasureUnit getKilogramForce()
Returns by value, unit of force: kilogram-force.
icu::MeasureUnit::createCubicFoot
static MeasureUnit * createCubicFoot(UErrorCode &status)
Returns by pointer, unit of volume: cubic-foot.
icu::MeasureUnit::createMillimeter
static MeasureUnit * createMillimeter(UErrorCode &status)
Returns by pointer, unit of length: millimeter.
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::getFortnight
static MeasureUnit getFortnight()
Returns by value, unit of duration: fortnight.
icu::MeasureUnit::createGigabyte
static MeasureUnit * createGigabyte(UErrorCode &status)
Returns by pointer, unit of digital: gigabyte.
icu::MeasureUnit::getNight
static MeasureUnit getNight()
Returns by value, unit of duration: night.
icu::MeasureUnit::getMillimolePerLiter
static MeasureUnit getMillimolePerLiter()
Returns by value, unit of concentr: millimole-per-liter.
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::createKosaji
static MeasureUnit * createKosaji(UErrorCode &status)
Returns by pointer, unit of volume: kosaji.
icu::MeasureUnit::getKilohertz
static MeasureUnit getKilohertz()
Returns by value, unit of frequency: kilohertz.
icu::MeasureUnit::createAcreFoot
static MeasureUnit * createAcreFoot(UErrorCode &status)
Returns by pointer, unit of volume: acre-foot.
icu::MeasureUnit::getKatal
static MeasureUnit getKatal()
Returns by value, unit of concentr: katal.
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::createCubicMile
static MeasureUnit * createCubicMile(UErrorCode &status)
Returns by pointer, unit of volume: cubic-mile.
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::createLiterPerKilometer
static MeasureUnit * createLiterPerKilometer(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-kilometer.
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::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::createAstronomicalUnit
static MeasureUnit * createAstronomicalUnit(UErrorCode &status)
Returns by pointer, unit of length: astronomical-unit.
icu::MeasureUnit::createJigger
static MeasureUnit * createJigger(UErrorCode &status)
Returns by pointer, unit of volume: jigger.
icu::MeasureUnit::getPixelPerCentimeter
static MeasureUnit getPixelPerCentimeter()
Returns by value, unit of graphics: pixel-per-centimeter.
icu::MeasureUnit::createCubicMeter
static MeasureUnit * createCubicMeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-meter.
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::createAtmosphere
static MeasureUnit * createAtmosphere(UErrorCode &status)
Returns by pointer, unit of pressure: atmosphere.
icu::MeasureUnit::createCup
static MeasureUnit * createCup(UErrorCode &status)
Returns by pointer, unit of volume: cup.
icu::MeasureUnit::createWeber
static MeasureUnit * createWeber(UErrorCode &status)
Returns by pointer, unit of magnetic: weber.
icu::MeasureUnit::getKen
static MeasureUnit getKen()
Returns by value, unit of length: ken.
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::createPint
static MeasureUnit * createPint(UErrorCode &status)
Returns by pointer, unit of volume: pint.
icu::MeasureUnit::createKilocalorie
static MeasureUnit * createKilocalorie(UErrorCode &status)
Returns by pointer, unit of energy: kilocalorie.
icu::MeasureUnit::createMegabit
static MeasureUnit * createMegabit(UErrorCode &status)
Returns by pointer, unit of digital: megabit.
icu::MeasureUnit::createMeter
static MeasureUnit * createMeter(UErrorCode &status)
Returns by pointer, unit of length: meter.
icu::MeasureUnit::getAstronomicalUnit
static MeasureUnit getAstronomicalUnit()
Returns by value, unit of length: astronomical-unit.
icu::MeasureUnit::createCupJp
static MeasureUnit * createCupJp(UErrorCode &status)
Returns by pointer, unit of volume: cup-jp.
icu::MeasureUnit::getBarrel
static MeasureUnit getBarrel()
Returns by value, unit of volume: barrel.
icu::MeasureUnit::createCentury
static MeasureUnit * createCentury(UErrorCode &status)
Returns by pointer, unit of duration: century.
icu::MeasureUnit::getSiemens
static MeasureUnit getSiemens()
Returns by value, unit of electric: siemens.
icu::MeasureUnit::getDalton
static MeasureUnit getDalton()
Returns by value, unit of mass: dalton.
icu::MeasureUnit::createPicometer
static MeasureUnit * createPicometer(UErrorCode &status)
Returns by pointer, unit of length: picometer.
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::getDotPerCentimeter
static MeasureUnit getDotPerCentimeter()
Returns by value, unit of graphics: dot-per-centimeter.
icu::MeasureUnit::createSquareInch
static MeasureUnit * createSquareInch(UErrorCode &status)
Returns by pointer, unit of area: square-inch.
icu::MeasureUnit::createLiter
static MeasureUnit * createLiter(UErrorCode &status)
Returns by pointer, unit of volume: liter.
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::createMinute
static MeasureUnit * createMinute(UErrorCode &status)
Returns by pointer, unit of duration: minute.
icu::MeasureUnit::createSievert
static MeasureUnit * createSievert(UErrorCode &status)
Returns by pointer, unit of energy: sievert.
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::createBit
static MeasureUnit * createBit(UErrorCode &status)
Returns by pointer, unit of digital: bit.
icu::MeasureUnit::createDeciliter
static MeasureUnit * createDeciliter(UErrorCode &status)
Returns by pointer, unit of volume: deciliter.
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::createBar
static MeasureUnit * createBar(UErrorCode &status)
Returns by pointer, unit of pressure: bar.
icu::MeasureUnit::getFoodcalorie
static MeasureUnit getFoodcalorie()
Returns by value, unit of energy: foodcalorie.
icu::MeasureUnit::getKosaji
static MeasureUnit getKosaji()
Returns by value, unit of volume: kosaji.
icu::MeasureUnit::createCandela
static MeasureUnit * createCandela(UErrorCode &status)
Returns by pointer, unit of light: candela.
icu::MeasureUnit::createSteradian
static MeasureUnit * createSteradian(UErrorCode &status)
Returns by pointer, unit of angle: steradian.
icu::MeasureUnit::createCoulomb
static MeasureUnit * createCoulomb(UErrorCode &status)
Returns by pointer, unit of electric: coulomb.
icu::MeasureUnit::createCalorieIt
static MeasureUnit * createCalorieIt(UErrorCode &status)
Returns by pointer, unit of energy: calorie-it.
icu::MeasureUnit::createMicrometer
static MeasureUnit * createMicrometer(UErrorCode &status)
Returns by pointer, unit of length: micrometer.
icu::MeasureUnit::getMicrogram
static MeasureUnit getMicrogram()
Returns by value, unit of mass: microgram.
icu::MeasureUnit::createKelvin
static MeasureUnit * createKelvin(UErrorCode &status)
Returns by pointer, unit of temperature: kelvin.
icu::MeasureUnit::createRod
static MeasureUnit * createRod(UErrorCode &status)
Returns by pointer, unit of length: rod.
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::createMilligramOfglucosePerDeciliter
static MeasureUnit * createMilligramOfglucosePerDeciliter(UErrorCode &status)
Returns by pointer, unit of concentr: milligram-ofglucose-per-deciliter.
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::createFluidOunce
static MeasureUnit * createFluidOunce(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce.
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::createCelsius
static MeasureUnit * createCelsius(UErrorCode &status)
Returns by pointer, unit of temperature: celsius.
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::createGram
static MeasureUnit * createGram(UErrorCode &status)
Returns by pointer, unit of mass: gram.
icu::MeasureUnit::createKilogramForce
static MeasureUnit * createKilogramForce(UErrorCode &status)
Returns by pointer, unit of force: kilogram-force.
icu::MeasureUnit::createMonth
static MeasureUnit * createMonth(UErrorCode &status)
Returns by pointer, unit of duration: month.
icu::MeasureUnit::product
MeasureUnit product(const MeasureUnit &other, UErrorCode &status) const
Gets the product of this unit with another unit.
icu::MeasureUnit::createPercent
static MeasureUnit * createPercent(UErrorCode &status)
Returns by pointer, unit of concentr: percent.
icu::MeasureUnit::getFarad
static MeasureUnit getFarad()
Returns by value, unit of electric: farad.
icu::MeasureUnit::getKilocalorie
static MeasureUnit getKilocalorie()
Returns by value, unit of energy: kilocalorie.
icu::MeasureUnit::createThermUs
static MeasureUnit * createThermUs(UErrorCode &status)
Returns by pointer, unit of energy: therm-us.
icu::MeasureUnit::getMicrosecond
static MeasureUnit getMicrosecond()
Returns by value, unit of duration: microsecond.
icu::MeasureUnit::createTablespoon
static MeasureUnit * createTablespoon(UErrorCode &status)
Returns by pointer, unit of volume: tablespoon.
icu::MeasureUnit::getBushel
static MeasureUnit getBushel()
Returns by value, unit of volume: bushel.
icu::MeasureUnit::createMegawatt
static MeasureUnit * createMegawatt(UErrorCode &status)
Returns by pointer, unit of power: megawatt.
icu::MeasureUnit::createFoot
static MeasureUnit * createFoot(UErrorCode &status)
Returns by pointer, unit of length: foot.
icu::MeasureUnit::createHectopascal
static MeasureUnit * createHectopascal(UErrorCode &status)
Returns by pointer, unit of pressure: hectopascal.
icu::MeasureUnit::createBushel
static MeasureUnit * createBushel(UErrorCode &status)
Returns by pointer, unit of volume: bushel.
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::createFurlong
static MeasureUnit * createFurlong(UErrorCode &status)
Returns by pointer, unit of length: furlong.
icu::MeasureUnit::createDot
static MeasureUnit * createDot(UErrorCode &status)
Returns by pointer, unit of graphics: dot.
icu::MeasureUnit::getCarat
static MeasureUnit getCarat()
Returns by value, unit of mass: carat.
icu::MeasureUnit::createFahrenheit
static MeasureUnit * createFahrenheit(UErrorCode &status)
Returns by pointer, unit of temperature: fahrenheit.
icu::MeasureUnit::createCarat
static MeasureUnit * createCarat(UErrorCode &status)
Returns by pointer, unit of mass: carat.
icu::MeasureUnit::createOunceTroy
static MeasureUnit * createOunceTroy(UErrorCode &status)
Returns by pointer, unit of mass: ounce-troy.
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::getBuJp
static MeasureUnit getBuJp()
Returns by value, unit of area: bu-jp.
icu::MeasureUnit::createMillisecond
static MeasureUnit * createMillisecond(UErrorCode &status)
Returns by pointer, unit of duration: millisecond.
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::createKilobyte
static MeasureUnit * createKilobyte(UErrorCode &status)
Returns by pointer, unit of digital: kilobyte.
icu::MeasureUnit::getNanosecond
static MeasureUnit getNanosecond()
Returns by value, unit of duration: nanosecond.
icu::MeasureUnit::createHour
static MeasureUnit * createHour(UErrorCode &status)
Returns by pointer, unit of duration: hour.
icu::MeasureUnit::getEarthMass
static MeasureUnit getEarthMass()
Returns by value, unit of mass: earth-mass.
icu::MeasureUnit::getFahrenheit
static MeasureUnit getFahrenheit()
Returns by value, unit of temperature: fahrenheit.
icu::MeasureUnit::createSeJp
static MeasureUnit * createSeJp(UErrorCode &status)
Returns by pointer, unit of area: se-jp.
icu::MeasureUnit::getAvailable
static int32_t getAvailable(MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
getAvailable gets all of the available units.
icu::MeasureUnit::getMileScandinavian
static MeasureUnit getMileScandinavian()
Returns by value, unit of length: mile-scandinavian.
icu::MeasureUnit::createGallonImperial
static MeasureUnit * createGallonImperial(UErrorCode &status)
Returns by pointer, unit of volume: gallon-imperial.
icu::MeasureUnit::getMegapascal
static MeasureUnit getMegapascal()
Returns by value, unit of pressure: megapascal.
icu::MeasureUnit::createRadian
static MeasureUnit * createRadian(UErrorCode &status)
Returns by pointer, unit of angle: radian.
icu::MeasureUnit::getDeciliter
static MeasureUnit getDeciliter()
Returns by value, unit of volume: deciliter.
icu::MeasureUnit::createSquareMeter
static MeasureUnit * createSquareMeter(UErrorCode &status)
Returns by pointer, unit of area: square-meter.
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::MeasureUnit
MeasureUnit(const MeasureUnit &other)
Copy constructor.
icu::MeasureUnit::getSolarLuminosity
static MeasureUnit getSolarLuminosity()
Returns by value, unit of light: solar-luminosity.
icu::MeasureUnit::createShakuCloth
static MeasureUnit * createShakuCloth(UErrorCode &status)
Returns by pointer, unit of length: shaku-cloth.
icu::MeasureUnit::getMonthPerson
static MeasureUnit getMonthPerson()
Returns by value, unit of duration: month-person.
icu::MeasureUnit::createDecade
static MeasureUnit * createDecade(UErrorCode &status)
Returns by pointer, unit of duration: decade.
icu::MeasureUnit::createKilowatt
static MeasureUnit * createKilowatt(UErrorCode &status)
Returns by pointer, unit of power: kilowatt.
icu::MeasureUnit::getCentiliter
static MeasureUnit getCentiliter()
Returns by value, unit of volume: centiliter.
icu::MeasureUnit::createMeterPerSecondSquared
static MeasureUnit * createMeterPerSecondSquared(UErrorCode &status)
Returns by pointer, unit of acceleration: meter-per-square-second.
icu::MeasureUnit::createMole
static MeasureUnit * createMole(UErrorCode &status)
Returns by pointer, unit of concentr: mole.
icu::MeasureUnit::createDessertSpoonImperial
static MeasureUnit * createDessertSpoonImperial(UErrorCode &status)
Returns by pointer, unit of volume: dessert-spoon-imperial.
icu::MeasureUnit::getPartPerMillion
static MeasureUnit getPartPerMillion()
Returns by value, unit of concentr: part-per-million.
icu::MeasureUnit::createKatal
static MeasureUnit * createKatal(UErrorCode &status)
Returns by pointer, unit of concentr: katal.
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::createGrain
static MeasureUnit * createGrain(UErrorCode &status)
Returns by pointer, unit of mass: grain.
icu::MeasureUnit::getComplexity
UMeasureUnitComplexity getComplexity(UErrorCode &status) const
Compute the complexity of the unit.
icu::MeasureUnit::createNauticalMile
static MeasureUnit * createNauticalMile(UErrorCode &status)
Returns by pointer, unit of length: nautical-mile.
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::createHectare
static MeasureUnit * createHectare(UErrorCode &status)
Returns by pointer, unit of area: hectare.
icu::MeasureUnit::getBeaufort
static MeasureUnit getBeaufort()
Returns by value, unit of speed: beaufort.
icu::MeasureUnit::getGray
static MeasureUnit getGray()
Returns by value, unit of energy: gray.
icu::MeasureUnit::createFortnight
static MeasureUnit * createFortnight(UErrorCode &status)
Returns by pointer, unit of duration: fortnight.
icu::MeasureUnit::createMile
static MeasureUnit * createMile(UErrorCode &status)
Returns by pointer, unit of length: mile.
icu::MeasureUnit::getFurlong
static MeasureUnit getFurlong()
Returns by value, unit of length: furlong.
icu::MeasureUnit::createTesla
static MeasureUnit * createTesla(UErrorCode &status)
Returns by pointer, unit of magnetic: tesla.
icu::MeasureUnit::getBecquerel
static MeasureUnit getBecquerel()
Returns by value, unit of energy: becquerel.
icu::MeasureUnit::getLightYear
static MeasureUnit getLightYear()
Returns by value, unit of length: light-year.
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::createCubicYard
static MeasureUnit * createCubicYard(UErrorCode &status)
Returns by pointer, unit of volume: cubic-yard.
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::createBritishThermalUnitIt
static MeasureUnit * createBritishThermalUnitIt(UErrorCode &status)
Returns by pointer, unit of energy: british-thermal-unit-it.
icu::MeasureUnit::createTerabit
static MeasureUnit * createTerabit(UErrorCode &status)
Returns by pointer, unit of digital: terabit.
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::createDegree
static MeasureUnit * createDegree(UErrorCode &status)
Returns by pointer, unit of angle: degree.
icu::MeasureUnit::createLumen
static MeasureUnit * createLumen(UErrorCode &status)
Returns by pointer, unit of light: lumen.
icu::MeasureUnit::getYard
static MeasureUnit getYard()
Returns by value, unit of length: yard.
icu::MeasureUnit::createShakuLength
static MeasureUnit * createShakuLength(UErrorCode &status)
Returns by pointer, unit of length: shaku-length.
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::createPartPer1E6
static MeasureUnit * createPartPer1E6(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-1e6.
icu::MeasureUnit::createBecquerel
static MeasureUnit * createBecquerel(UErrorCode &status)
Returns by pointer, unit of energy: becquerel.
icu::MeasureUnit::createSolarMass
static MeasureUnit * createSolarMass(UErrorCode &status)
Returns by pointer, unit of mass: solar-mass.
icu::MeasureUnit::createMegahertz
static MeasureUnit * createMegahertz(UErrorCode &status)
Returns by pointer, unit of frequency: megahertz.
icu::MeasureUnit::createMicrosecond
static MeasureUnit * createMicrosecond(UErrorCode &status)
Returns by pointer, unit of duration: microsecond.
icu::MeasureUnit::getDessertSpoon
static MeasureUnit getDessertSpoon()
Returns by value, unit of volume: dessert-spoon.
icu::MeasureUnit::createNight
static MeasureUnit * createNight(UErrorCode &status)
Returns by pointer, unit of duration: night.
icu::MeasureUnit::getDrop
static MeasureUnit getDrop()
Returns by value, unit of volume: drop.
icu::MeasureUnit::createQuart
static MeasureUnit * createQuart(UErrorCode &status)
Returns by pointer, unit of volume: quart.
icu::MeasureUnit::createDayPerson
static MeasureUnit * createDayPerson(UErrorCode &status)
Returns by pointer, unit of duration: day-person.
icu::MeasureUnit::createFluidOunceMetric
static MeasureUnit * createFluidOunceMetric(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce-metric.
icu::MeasureUnit::getPrefix
UMeasurePrefix getPrefix(UErrorCode &status) const
Returns the current SI or binary prefix of this SINGLE unit.
icu::MeasureUnit::createWeek
static MeasureUnit * createWeek(UErrorCode &status)
Returns by pointer, unit of duration: week.
icu::MeasureUnit::getSubtype
const char * getSubtype() const
Get the sub type.
icu::MeasureUnit::createYearPerson
static MeasureUnit * createYearPerson(UErrorCode &status)
Returns by pointer, unit of duration: year-person.
icu::MeasureUnit::createKilometerPerHour
static MeasureUnit * createKilometerPerHour(UErrorCode &status)
Returns by pointer, unit of speed: kilometer-per-hour.
icu::MeasureUnit::createPintMetric
static MeasureUnit * createPintMetric(UErrorCode &status)
Returns by pointer, unit of volume: pint-metric.
icu::MeasureUnit::getSquareYard
static MeasureUnit getSquareYard()
Returns by value, unit of area: square-yard.
icu::MeasureUnit::createHectoliter
static MeasureUnit * createHectoliter(UErrorCode &status)
Returns by pointer, unit of volume: hectoliter.
icu::MeasureUnit::createPartPerMillion
static MeasureUnit * createPartPerMillion(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-million.
icu::MeasureUnit::createPixel
static MeasureUnit * createPixel(UErrorCode &status)
Returns by pointer, unit of graphics: pixel.
icu::MeasureUnit::getDot
static MeasureUnit getDot()
Returns by value, unit of graphics: dot.
icu::MeasureUnit::createRin
static MeasureUnit * createRin(UErrorCode &status)
Returns by pointer, unit of length: rin.
icu::MeasureUnit::createCupMetric
static MeasureUnit * createCupMetric(UErrorCode &status)
Returns by pointer, unit of volume: cup-metric.
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::createTerabyte
static MeasureUnit * createTerabyte(UErrorCode &status)
Returns by pointer, unit of digital: terabyte.
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::getSun
static MeasureUnit getSun()
Returns by value, unit of length: sun.
icu::MeasureUnit::createSai
static MeasureUnit * createSai(UErrorCode &status)
Returns by pointer, unit of volume: sai.
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::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::createFarad
static MeasureUnit * createFarad(UErrorCode &status)
Returns by pointer, unit of electric: farad.
icu::MeasureUnit::createMonthPerson
static MeasureUnit * createMonthPerson(UErrorCode &status)
Returns by pointer, unit of duration: month-person.
icu::MeasureUnit::createNanometer
static MeasureUnit * createNanometer(UErrorCode &status)
Returns by pointer, unit of length: nanometer.
icu::MeasureUnit::createMileScandinavian
static MeasureUnit * createMileScandinavian(UErrorCode &status)
Returns by pointer, unit of length: mile-scandinavian.
icu::MeasureUnit::createSquareMile
static MeasureUnit * createSquareMile(UErrorCode &status)
Returns by pointer, unit of area: square-mile.
icu::MeasureUnit::createDunam
static MeasureUnit * createDunam(UErrorCode &status)
Returns by pointer, unit of area: dunam.
icu::MeasureUnit::getMilliwatt
static MeasureUnit getMilliwatt()
Returns by value, unit of power: milliwatt.
icu::MeasureUnit::createStone
static MeasureUnit * createStone(UErrorCode &status)
Returns by pointer, unit of mass: stone.
icu::MeasureUnit::getOunceTroy
static MeasureUnit getOunceTroy()
Returns by value, unit of mass: ounce-troy.
icu::MeasureUnit::createKilowattHour
static MeasureUnit * createKilowattHour(UErrorCode &status)
Returns by pointer, unit of energy: kilowatt-hour.
icu::MeasureUnit::createDecimeter
static MeasureUnit * createDecimeter(UErrorCode &status)
Returns by pointer, unit of length: decimeter.
icu::MeasureUnit::getNewtonMeter
static MeasureUnit getNewtonMeter()
Returns by value, unit of torque: newton-meter.
icu::MeasureUnit::createDay
static MeasureUnit * createDay(UErrorCode &status)
Returns by pointer, unit of duration: day.
icu::MeasureUnit::getAcreFoot
static MeasureUnit getAcreFoot()
Returns by value, unit of volume: acre-foot.
icu::MeasureUnit::createOfglucose
static MeasureUnit * createOfglucose(UErrorCode &status)
Returns by pointer, unit of concentr: ofglucose.
icu::MeasureUnit::createMillimolePerLiter
static MeasureUnit * createMillimolePerLiter(UErrorCode &status)
Returns by pointer, unit of concentr: millimole-per-liter.
icu::MeasureUnit::createRevolutionAngle
static MeasureUnit * createRevolutionAngle(UErrorCode &status)
Returns by pointer, unit of angle: revolution.
icu::MeasureUnit::createInch
static MeasureUnit * createInch(UErrorCode &status)
Returns by pointer, unit of length: inch.
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::getNauticalMile
static MeasureUnit getNauticalMile()
Returns by value, unit of length: nautical-mile.
icu::MeasureUnit::createPixelPerInch
static MeasureUnit * createPixelPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-inch.
icu::MeasureUnit::getDynamicClassID
virtual UClassID getDynamicClassID() const override
Returns a unique class ID POLYMORPHICALLY.
icu::MeasureUnit::createKilopascal
static MeasureUnit * createKilopascal(UErrorCode &status)
Returns by pointer, unit of pressure: kilopascal.
icu::MeasureUnit::getMegaliter
static MeasureUnit getMegaliter()
Returns by value, unit of volume: megaliter.
icu::MeasureUnit::createSecond
static MeasureUnit * createSecond(UErrorCode &status)
Returns by pointer, unit of duration: second.
icu::MeasureUnit::createCentiliter
static MeasureUnit * createCentiliter(UErrorCode &status)
Returns by pointer, unit of volume: centiliter.
icu::MeasureUnit::getWatt
static MeasureUnit getWatt()
Returns by value, unit of power: watt.
icu::MeasureUnit::createCentimeter
static MeasureUnit * createCentimeter(UErrorCode &status)
Returns by pointer, unit of length: 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::createSolarLuminosity
static MeasureUnit * createSolarLuminosity(UErrorCode &status)
Returns by pointer, unit of light: solar-luminosity.
icu::MeasureUnit::createElectronvolt
static MeasureUnit * createElectronvolt(UErrorCode &status)
Returns by pointer, unit of energy: electronvolt.
icu::MeasureUnit::createCubicCentimeter
static MeasureUnit * createCubicCentimeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-centimeter.
icu::MeasureUnit::createMegapascal
static MeasureUnit * createMegapascal(UErrorCode &status)
Returns by pointer, unit of pressure: megapascal.
icu::MeasureUnit::getCoulomb
static MeasureUnit getCoulomb()
Returns by value, unit of electric: coulomb.
icu::MeasureUnit::createKilogram
static MeasureUnit * createKilogram(UErrorCode &status)
Returns by pointer, unit of mass: kilogram.
icu::MeasureUnit::getMilliampere
static MeasureUnit getMilliampere()
Returns by value, unit of electric: milliampere.
icu::MeasureUnit::getDram
static MeasureUnit getDram()
Returns by value, unit of volume: dram.
icu::MeasureUnit::createGigahertz
static MeasureUnit * createGigahertz(UErrorCode &status)
Returns by pointer, unit of frequency: gigahertz.
icu::MeasureUnit::createSquareYard
static MeasureUnit * createSquareYard(UErrorCode &status)
Returns by pointer, unit of area: square-yard.
icu::MeasureUnit::getHectopascal
static MeasureUnit getHectopascal()
Returns by value, unit of pressure: hectopascal.
icu::MeasureUnit::createDotPerCentimeter
static MeasureUnit * createDotPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-centimeter.
icu::MeasureUnit::createDessertSpoon
static MeasureUnit * createDessertSpoon(UErrorCode &status)
Returns by pointer, unit of volume: dessert-spoon.
icu::MeasureUnit::getSquareMeter
static MeasureUnit getSquareMeter()
Returns by value, unit of area: square-meter.
icu::MeasureUnit::getKilowattHourPer100Kilometer
static MeasureUnit getKilowattHourPer100Kilometer()
Returns by value, unit of force: kilowatt-hour-per-100-kilometer.
icu::MeasureUnit::clone
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.
icu::MeasureUnit::createAcre
static MeasureUnit * createAcre(UErrorCode &status)
Returns by pointer, unit of area: acre.
icu::MeasureUnit::createGray
static MeasureUnit * createGray(UErrorCode &status)
Returns by pointer, unit of energy: gray.
icu::MeasureUnit::getCupMetric
static MeasureUnit getCupMetric()
Returns by value, unit of volume: cup-metric.
icu::MeasureUnit::createDalton
static MeasureUnit * createDalton(UErrorCode &status)
Returns by pointer, unit of mass: dalton.
icu::MeasureUnit::createKarat
static MeasureUnit * createKarat(UErrorCode &status)
Returns by pointer, unit of concentr: karat.
icu::MeasureUnit::getMillisecond
static MeasureUnit getMillisecond()
Returns by value, unit of duration: millisecond.
icu::MeasureUnit::createYard
static MeasureUnit * createYard(UErrorCode &status)
Returns by pointer, unit of length: yard.
icu::MeasureUnit::createBritishThermalUnit
static MeasureUnit * createBritishThermalUnit(UErrorCode &status)
Returns by pointer, unit of energy: british-thermal-unit.
icu::MeasureUnit::createKilobit
static MeasureUnit * createKilobit(UErrorCode &status)
Returns by pointer, unit of digital: kilobit.
icu::MeasureUnit::createTon
static MeasureUnit * createTon(UErrorCode &status)
Returns by pointer, unit of mass: ton.
icu::MeasureUnit::createDrop
static MeasureUnit * createDrop(UErrorCode &status)
Returns by pointer, unit of volume: drop.
icu::MeasureUnit::createMilePerHour
static MeasureUnit * createMilePerHour(UErrorCode &status)
Returns by pointer, unit of speed: mile-per-hour.
icu::MeasureUnit::createMilliwatt
static MeasureUnit * createMilliwatt(UErrorCode &status)
Returns by pointer, unit of power: milliwatt.
icu::MeasureUnit::createMillibar
static MeasureUnit * createMillibar(UErrorCode &status)
Returns by pointer, unit of pressure: millibar.
icu::MeasureUnit::createItem
static MeasureUnit * createItem(UErrorCode &status)
Returns by pointer, unit of concentr: item.
icu::MeasureUnit::createPoundPerSquareInch
static MeasureUnit * createPoundPerSquareInch(UErrorCode &status)
Returns by pointer, unit of pressure: pound-force-per-square-inch.
icu::MeasureUnit::getArcMinute
static MeasureUnit getArcMinute()
Returns by value, unit of angle: arc-minute.
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::createPartPer1E9
static MeasureUnit * createPartPer1E9(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-1e9.
icu::MeasureUnit::getItem
static MeasureUnit getItem()
Returns by value, unit of concentr: item.
icu::MeasureUnit::operator=
MeasureUnit & operator=(const MeasureUnit &other)
Copy assignment operator.
icu::MeasureUnit::createGallon
static MeasureUnit * createGallon(UErrorCode &status)
Returns by pointer, unit of volume: gallon.
icu::MeasureUnit::getMillibar
static MeasureUnit getMillibar()
Returns by value, unit of pressure: millibar.
icu::MeasureUnit::getPetabyte
static MeasureUnit getPetabyte()
Returns by value, unit of digital: petabyte.
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::createHenry
static MeasureUnit * createHenry(UErrorCode &status)
Returns by pointer, unit of electric: henry.
icu::MeasureUnit::createMilePerGallon
static MeasureUnit * createMilePerGallon(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon.
icu::MeasureUnit::createMicrogram
static MeasureUnit * createMicrogram(UErrorCode &status)
Returns by pointer, unit of mass: microgram.
icu::MeasureUnit::getIdentifier
const char * getIdentifier() const
Get CLDR Unit Identifier for this MeasureUnit, as defined in UTS 35.
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::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::createBarrel
static MeasureUnit * createBarrel(UErrorCode &status)
Returns by pointer, unit of volume: barrel.
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::createMilligramPerDeciliter
static MeasureUnit * createMilligramPerDeciliter(UErrorCode &status)
Returns by pointer, unit of concentr: milligram-per-deciliter.
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::createCho
static MeasureUnit * createCho(UErrorCode &status)
Returns by pointer, unit of area: cho.
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::getPintImperial
static MeasureUnit getPintImperial()
Returns by value, unit of volume: pint-imperial.
icu::MeasureUnit::getRiJp
static MeasureUnit getRiJp()
Returns by value, unit of length: ri-jp.
icu::MeasureUnit::createPoint
static MeasureUnit * createPoint(UErrorCode &status)
Returns by pointer, unit of length: point.
icu::MeasureUnit::createHorsepower
static MeasureUnit * createHorsepower(UErrorCode &status)
Returns by pointer, unit of power: horsepower.
icu::MeasureUnit::getType
const char * getType() const
Get the type.
icu::MeasureUnit::createSquareCentimeter
static MeasureUnit * createSquareCentimeter(UErrorCode &status)
Returns by pointer, unit of area: square-centimeter.
icu::MeasureUnit::getQuartImperial
static MeasureUnit getQuartImperial()
Returns by value, unit of volume: quart-imperial.
icu::MeasureUnit::createGigabit
static MeasureUnit * createGigabit(UErrorCode &status)
Returns by pointer, unit of digital: gigabit.
icu::MeasureUnit::createWeekPerson
static MeasureUnit * createWeekPerson(UErrorCode &status)
Returns by pointer, unit of duration: week-person.
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::createRiJp
static MeasureUnit * createRiJp(UErrorCode &status)
Returns by pointer, unit of length: ri-jp.
icu::MeasureUnit::createEm
static MeasureUnit * createEm(UErrorCode &status)
Returns by pointer, unit of graphics: em.
icu::MeasureUnit::createInchHg
static MeasureUnit * createInchHg(UErrorCode &status)
Returns by pointer, unit of pressure: inch-ofhg.
icu::MeasureUnit::createPermille
static MeasureUnit * createPermille(UErrorCode &status)
Returns by pointer, unit of concentr: permille.
icu::MeasureUnit::getHertz
static MeasureUnit getHertz()
Returns by value, unit of frequency: hertz.
icu::MeasureUnit::createLiterPer100Kilometers
static MeasureUnit * createLiterPer100Kilometers(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-100-kilometer.
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::createPoundFoot
static MeasureUnit * createPoundFoot(UErrorCode &status)
Returns by pointer, unit of torque: pound-force-foot.
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::getDay
static MeasureUnit getDay()
Returns by value, unit of duration: day.
icu::MeasureUnit::createMilligram
static MeasureUnit * createMilligram(UErrorCode &status)
Returns by pointer, unit of mass: milligram.
icu::MeasureUnit::createJoJp
static MeasureUnit * createJoJp(UErrorCode &status)
Returns by pointer, unit of length: jo-jp.
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::createGForce
static MeasureUnit * createGForce(UErrorCode &status)
Returns by pointer, unit of acceleration: g-force.
icu::MeasureUnit::getAvailableTypes
static StringEnumeration * getAvailableTypes(UErrorCode &errorCode)
getAvailableTypes gets all of the available types.
icu::MeasureUnit::createQuartImperial
static MeasureUnit * createQuartImperial(UErrorCode &status)
Returns by pointer, unit of volume: quart-imperial.
icu::MeasureUnit::createMegaliter
static MeasureUnit * createMegaliter(UErrorCode &status)
Returns by pointer, unit of volume: megaliter.
icu::MeasureUnit::getCubicFoot
static MeasureUnit getCubicFoot()
Returns by value, unit of volume: cubic-foot.
icu::MeasureUnit::createKilojoule
static MeasureUnit * createKilojoule(UErrorCode &status)
Returns by pointer, unit of energy: kilojoule.
icu::MeasureUnit::createHertz
static MeasureUnit * createHertz(UErrorCode &status)
Returns by pointer, unit of frequency: hertz.
icu::MeasureUnit::getSteradian
static MeasureUnit getSteradian()
Returns by value, unit of angle: steradian.
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::createPixelPerCentimeter
static MeasureUnit * createPixelPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-centimeter.
icu::MeasureUnit::createNewtonMeter
static MeasureUnit * createNewtonMeter(UErrorCode &status)
Returns by pointer, unit of torque: newton-meter.
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::getGasolineEnergyDensity
static MeasureUnit getGasolineEnergyDensity()
Returns by value, unit of pressure: gasoline-energy-density.
icu::MeasureUnit::createBeaufort
static MeasureUnit * createBeaufort(UErrorCode &status)
Returns by pointer, unit of speed: beaufort.
icu::MeasureUnit::createMegapixel
static MeasureUnit * createMegapixel(UErrorCode &status)
Returns by pointer, unit of graphics: megapixel.
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::createMilliampere
static MeasureUnit * createMilliampere(UErrorCode &status)
Returns by pointer, unit of electric: milliampere.
icu::MeasureUnit::createAmpere
static MeasureUnit * createAmpere(UErrorCode &status)
Returns by pointer, unit of electric: ampere.
icu::MeasureUnit::getCubicInch
static MeasureUnit getCubicInch()
Returns by value, unit of volume: cubic-inch.
icu::MeasureUnit::createParsec
static MeasureUnit * createParsec(UErrorCode &status)
Returns by pointer, unit of length: parsec.
icu::MeasureUnit::createSiemens
static MeasureUnit * createSiemens(UErrorCode &status)
Returns by pointer, unit of electric: siemens.
icu::MeasureUnit::createYear
static MeasureUnit * createYear(UErrorCode &status)
Returns by pointer, unit of duration: year.
icu::MeasureUnit::createCalorie
static MeasureUnit * createCalorie(UErrorCode &status)
Returns by pointer, unit of energy: calorie.
icu::MeasureUnit::createFluidOunceImperial
static MeasureUnit * createFluidOunceImperial(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce-imperial.
icu::MeasureUnit::createKen
static MeasureUnit * createKen(UErrorCode &status)
Returns by pointer, unit of length: ken.
icu::MeasureUnit::getRankine
static MeasureUnit getRankine()
Returns by value, unit of temperature: rankine.
icu::MeasureUnit::createOsaji
static MeasureUnit * createOsaji(UErrorCode &status)
Returns by pointer, unit of volume: osaji.
icu::MeasureUnit::getYear
static MeasureUnit getYear()
Returns by value, unit of duration: year.
icu::MeasureUnit::createChain
static MeasureUnit * createChain(UErrorCode &status)
Returns by pointer, unit of length: chain.
icu::MeasureUnit::createPinch
static MeasureUnit * createPinch(UErrorCode &status)
Returns by pointer, unit of volume: pinch.
icu::MeasureUnit::getCupImperial
static MeasureUnit getCupImperial()
Returns by value, unit of volume: cup-imperial.
icu::MeasureUnit::createMillimeterOfMercury
static MeasureUnit * createMillimeterOfMercury(UErrorCode &status)
Returns by pointer, unit of pressure: millimeter-ofhg.
icu::MeasureUnit::createEarthRadius
static MeasureUnit * createEarthRadius(UErrorCode &status)
Returns by pointer, unit of length: earth-radius.
icu::MeasureUnit::createOfhg
static MeasureUnit * createOfhg(UErrorCode &status)
Returns by pointer, unit of pressure: ofhg.
icu::MeasureUnit::createDotPerInch
static MeasureUnit * createDotPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-inch.
icu::MeasureUnit::createPound
static MeasureUnit * createPound(UErrorCode &status)
Returns by pointer, unit of mass: pound.
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::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::createKilowattHourPer100Kilometer
static MeasureUnit * createKilowattHourPer100Kilometer(UErrorCode &status)
Returns by pointer, unit of force: kilowatt-hour-per-100-kilometer.
icu::MeasureUnit::createKilometer
static MeasureUnit * createKilometer(UErrorCode &status)
Returns by pointer, unit of length: kilometer.
icu::MeasureUnit::getTablespoon
static MeasureUnit getTablespoon()
Returns by value, unit of volume: tablespoon.
icu::MeasureUnit::createPermyriad
static MeasureUnit * createPermyriad(UErrorCode &status)
Returns by pointer, unit of concentr: permyriad.
icu::MeasureUnit::getCup
static MeasureUnit getCup()
Returns by value, unit of volume: cup.
icu::MeasureUnit::createPetabyte
static MeasureUnit * createPetabyte(UErrorCode &status)
Returns by pointer, unit of digital: petabyte.
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::createEarthMass
static MeasureUnit * createEarthMass(UErrorCode &status)
Returns by pointer, unit of mass: earth-mass.
icu::MeasureUnit::createFoodcalorie
static MeasureUnit * createFoodcalorie(UErrorCode &status)
Returns by pointer, unit of energy: foodcalorie.
icu::MeasureUnit::createFathom
static MeasureUnit * createFathom(UErrorCode &status)
Returns by pointer, unit of length: fathom.
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::createFun
static MeasureUnit * createFun(UErrorCode &status)
Returns by pointer, unit of mass: fun.
icu::MeasureUnit::createLightSpeed
static MeasureUnit * createLightSpeed(UErrorCode &status)
Returns by pointer, unit of speed: light-speed.
icu::MeasureUnit::createWatt
static MeasureUnit * createWatt(UErrorCode &status)
Returns by pointer, unit of power: watt.
icu::MeasureUnit::createKoku
static MeasureUnit * createKoku(UErrorCode &status)
Returns by pointer, unit of volume: koku.
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::getSai
static MeasureUnit getSai()
Returns by value, unit of volume: sai.
icu::MeasureUnit::createByte
static MeasureUnit * createByte(UErrorCode &status)
Returns by pointer, unit of digital: byte.
icu::MeasureUnit::createMilliliter
static MeasureUnit * createMilliliter(UErrorCode &status)
Returns by pointer, unit of volume: milliliter.
icu::MeasureUnit::createArcMinute
static MeasureUnit * createArcMinute(UErrorCode &status)
Returns by pointer, unit of angle: arc-minute.
icu::MeasureUnit::createLightYear
static MeasureUnit * createLightYear(UErrorCode &status)
Returns by pointer, unit of length: light-year.
icu::MeasureUnit::createRankine
static MeasureUnit * createRankine(UErrorCode &status)
Returns by pointer, unit of temperature: rankine.
icu::MeasureUnit::getQuart
static MeasureUnit getQuart()
Returns by value, unit of volume: quart.
icu::MeasureUnit::getRod
static MeasureUnit getRod()
Returns by value, unit of length: rod.
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::getEm
static MeasureUnit getEm()
Returns by value, unit of graphics: em.
icu::MeasureUnit::createSun
static MeasureUnit * createSun(UErrorCode &status)
Returns by pointer, unit of length: sun.
icu::MeasureUnit::createJoule
static MeasureUnit * createJoule(UErrorCode &status)
Returns by pointer, unit of energy: joule.
icu::MeasureUnit::getShakuLength
static MeasureUnit getShakuLength()
Returns by value, unit of length: shaku-length.
icu::MeasureUnit::createSquareFoot
static MeasureUnit * createSquareFoot(UErrorCode &status)
Returns by pointer, unit of area: square-foot.
icu::MeasureUnit::createShaku
static MeasureUnit * createShaku(UErrorCode &status)
Returns by pointer, unit of volume: shaku.
icu::MeasureUnit::createPoundForce
static MeasureUnit * createPoundForce(UErrorCode &status)
Returns by pointer, unit of force: pound-force.
icu::MeasureUnit::createMilePerGallonImperial
static MeasureUnit * createMilePerGallonImperial(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon-imperial.
icu::MeasureUnit::createGigawatt
static MeasureUnit * createGigawatt(UErrorCode &status)
Returns by pointer, unit of power: gigawatt.
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::operator=
MeasureUnit & operator=(MeasureUnit &&other) noexcept
Move assignment operator.
icu::MeasureUnit::createPascal
static MeasureUnit * createPascal(UErrorCode &status)
Returns by pointer, unit of pressure: pascal.
icu::MeasureUnit::createSlug
static MeasureUnit * createSlug(UErrorCode &status)
Returns by pointer, unit of mass: slug.
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::createVolt
static MeasureUnit * createVolt(UErrorCode &status)
Returns by pointer, unit of electric: volt.
icu::MeasureUnit::createMeterPerSecond
static MeasureUnit * createMeterPerSecond(UErrorCode &status)
Returns by pointer, unit of speed: meter-per-second.
icu::MeasureUnit::getAcre
static MeasureUnit getAcre()
Returns by value, unit of area: acre.
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::createCubicKilometer
static MeasureUnit * createCubicKilometer(UErrorCode &status)
Returns by pointer, unit of volume: cubic-kilometer.
icu::MeasureUnit::createTeaspoon
static MeasureUnit * createTeaspoon(UErrorCode &status)
Returns by pointer, unit of volume: teaspoon.
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::createNanosecond
static MeasureUnit * createNanosecond(UErrorCode &status)
Returns by pointer, unit of duration: nanosecond.
icu::MeasureUnit::createKnot
static MeasureUnit * createKnot(UErrorCode &status)
Returns by pointer, unit of speed: knot.
icu::MeasureUnit::getGForce
static MeasureUnit getGForce()
Returns by value, unit of acceleration: g-force.
icu::MeasureUnit::createDram
static MeasureUnit * createDram(UErrorCode &status)
Returns by pointer, unit of volume: dram.
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::createKilohertz
static MeasureUnit * createKilohertz(UErrorCode &status)
Returns by pointer, unit of frequency: kilohertz.
icu::MeasureUnit::createPart
static MeasureUnit * createPart(UErrorCode &status)
Returns by pointer, unit of concentr: part.
icu::MeasureUnit::createSquareKilometer
static MeasureUnit * createSquareKilometer(UErrorCode &status)
Returns by pointer, unit of area: square-kilometer.
icu::MeasureUnit::getPinch
static MeasureUnit getPinch()
Returns by value, unit of volume: pinch.
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::createTonne
static MeasureUnit * createTonne(UErrorCode &status)
Returns by pointer, unit of mass: tonne.
icu::MeasureUnit::createQuarter
static MeasureUnit * createQuarter(UErrorCode &status)
Returns by pointer, unit of duration: quarter.
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::getMetricTon
static MeasureUnit getMetricTon()
Returns by value, unit of mass: metric-ton (renamed to tonne in CLDR 42 / ICU 72).
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::createLux
static MeasureUnit * createLux(UErrorCode &status)
Returns by pointer, unit of light: lux.
icu::MeasureUnit::getCubicKilometer
static MeasureUnit getCubicKilometer()
Returns by value, unit of volume: cubic-kilometer.
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::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::createBuJp
static MeasureUnit * createBuJp(UErrorCode &status)
Returns by pointer, unit of area: bu-jp.
icu::MeasureUnit::createOunce
static MeasureUnit * createOunce(UErrorCode &status)
Returns by pointer, unit of mass: ounce.
icu::MeasureUnit::createCupImperial
static MeasureUnit * createCupImperial(UErrorCode &status)
Returns by pointer, unit of volume: cup-imperial.
icu::MeasureUnit::createGenericTemperature
static MeasureUnit * createGenericTemperature(UErrorCode &status)
Returns by pointer, unit of temperature: generic.
icu::MeasureUnit::getLumen
static MeasureUnit getLumen()
Returns by value, unit of light: lumen.
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::createSolarRadius
static MeasureUnit * createSolarRadius(UErrorCode &status)
Returns by pointer, unit of length: solar-radius.
icu::MeasureUnit::getMilligramOfglucosePerDeciliter
static MeasureUnit getMilligramOfglucosePerDeciliter()
Returns by value, unit of concentr: milligram-ofglucose-per-deciliter.
icu::MeasureUnit::createPintImperial
static MeasureUnit * createPintImperial(UErrorCode &status)
Returns by pointer, unit of volume: pint-imperial.
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::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
enum icu::UMeasurePrefix UMeasurePrefix
Enumeration for SI and binary prefixes, e.g.
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