ICU 66.1 66.1
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 "unicode/unistr.h"
23
29U_NAMESPACE_BEGIN
30
31class StringEnumeration;
32
41 public:
42
49
54 MeasureUnit(const MeasureUnit &other);
55
61
67 virtual MeasureUnit* clone() const;
68
73 virtual ~MeasureUnit();
74
80 virtual UBool operator==(const UObject& other) const;
81
87 UBool operator!=(const UObject& other) const {
88 return !(*this == other);
89 }
90
95 const char *getType() const;
96
101 const char *getSubtype() const;
102
114 static int32_t getAvailable(
115 MeasureUnit *destArray,
116 int32_t destCapacity,
117 UErrorCode &errorCode);
118
131 static int32_t getAvailable(
132 const char *type,
133 MeasureUnit *destArray,
134 int32_t destCapacity,
135 UErrorCode &errorCode);
136
146
158 static UClassID U_EXPORT2 getStaticClassID(void);
159
171 virtual UClassID getDynamicClassID(void) const;
172
173#ifndef U_HIDE_INTERNAL_API
180 int32_t getIndex() const;
181
187 static int32_t getIndexCount();
188
195 static int32_t internalGetIndexForTypeAndSubtype(const char *type, const char *subtype);
196
202 const MeasureUnit &unit, const MeasureUnit &perUnit, bool* isResolved);
203#endif /* U_HIDE_INTERNAL_API */
204
205// All code between the "Start generated createXXX methods" comment and
206// the "End generated createXXX methods" comment is auto generated code
207// and must not be edited manually. For instructions on how to correctly
208// update this code, refer to:
209// http://site.icu-project.org/design/formatting/measureformat/updating-measure-unit
210//
211// Start generated createXXX methods
212
221
222#ifndef U_HIDE_DRAFT_API
229#endif /* U_HIDE_DRAFT_API */
230
239
240#ifndef U_HIDE_DRAFT_API
247#endif /* U_HIDE_DRAFT_API */
248
257
258#ifndef U_HIDE_DRAFT_API
265#endif /* U_HIDE_DRAFT_API */
266
275
276#ifndef U_HIDE_DRAFT_API
283#endif /* U_HIDE_DRAFT_API */
284
293
294#ifndef U_HIDE_DRAFT_API
301#endif /* U_HIDE_DRAFT_API */
302
311
312#ifndef U_HIDE_DRAFT_API
319#endif /* U_HIDE_DRAFT_API */
320
329
330#ifndef U_HIDE_DRAFT_API
337#endif /* U_HIDE_DRAFT_API */
338
347
348#ifndef U_HIDE_DRAFT_API
355#endif /* U_HIDE_DRAFT_API */
356
357#ifndef U_HIDE_DRAFT_API
366
373#endif /* U_HIDE_DRAFT_API */
374
383
384#ifndef U_HIDE_DRAFT_API
391#endif /* U_HIDE_DRAFT_API */
392
401
402#ifndef U_HIDE_DRAFT_API
409#endif /* U_HIDE_DRAFT_API */
410
419
420#ifndef U_HIDE_DRAFT_API
427#endif /* U_HIDE_DRAFT_API */
428
437
438#ifndef U_HIDE_DRAFT_API
445#endif /* U_HIDE_DRAFT_API */
446
455
456#ifndef U_HIDE_DRAFT_API
463#endif /* U_HIDE_DRAFT_API */
464
473
474#ifndef U_HIDE_DRAFT_API
481#endif /* U_HIDE_DRAFT_API */
482
491
492#ifndef U_HIDE_DRAFT_API
499#endif /* U_HIDE_DRAFT_API */
500
509
510#ifndef U_HIDE_DRAFT_API
517#endif /* U_HIDE_DRAFT_API */
518
527
528#ifndef U_HIDE_DRAFT_API
535#endif /* U_HIDE_DRAFT_API */
536
545
546#ifndef U_HIDE_DRAFT_API
553#endif /* U_HIDE_DRAFT_API */
554
563
564#ifndef U_HIDE_DRAFT_API
571#endif /* U_HIDE_DRAFT_API */
572
573#ifndef U_HIDE_DRAFT_API
582
589#endif /* U_HIDE_DRAFT_API */
590
599
600#ifndef U_HIDE_DRAFT_API
607#endif /* U_HIDE_DRAFT_API */
608
617
618#ifndef U_HIDE_DRAFT_API
625#endif /* U_HIDE_DRAFT_API */
626
635
636#ifndef U_HIDE_DRAFT_API
643#endif /* U_HIDE_DRAFT_API */
644
645#ifndef U_HIDE_DRAFT_API
654
661#endif /* U_HIDE_DRAFT_API */
662
671
672#ifndef U_HIDE_DRAFT_API
679#endif /* U_HIDE_DRAFT_API */
680
689
690#ifndef U_HIDE_DRAFT_API
697#endif /* U_HIDE_DRAFT_API */
698
707
708#ifndef U_HIDE_DRAFT_API
715#endif /* U_HIDE_DRAFT_API */
716
725
726#ifndef U_HIDE_DRAFT_API
733#endif /* U_HIDE_DRAFT_API */
734
743
744#ifndef U_HIDE_DRAFT_API
751#endif /* U_HIDE_DRAFT_API */
752
761
762#ifndef U_HIDE_DRAFT_API
769#endif /* U_HIDE_DRAFT_API */
770
779
780#ifndef U_HIDE_DRAFT_API
787#endif /* U_HIDE_DRAFT_API */
788
797
798#ifndef U_HIDE_DRAFT_API
805#endif /* U_HIDE_DRAFT_API */
806
815
816#ifndef U_HIDE_DRAFT_API
823#endif /* U_HIDE_DRAFT_API */
824
833
834#ifndef U_HIDE_DRAFT_API
841#endif /* U_HIDE_DRAFT_API */
842
851
852#ifndef U_HIDE_DRAFT_API
859#endif /* U_HIDE_DRAFT_API */
860
869
870#ifndef U_HIDE_DRAFT_API
877#endif /* U_HIDE_DRAFT_API */
878
887
888#ifndef U_HIDE_DRAFT_API
895#endif /* U_HIDE_DRAFT_API */
896
905
906#ifndef U_HIDE_DRAFT_API
913#endif /* U_HIDE_DRAFT_API */
914
923
924#ifndef U_HIDE_DRAFT_API
931#endif /* U_HIDE_DRAFT_API */
932
941
942#ifndef U_HIDE_DRAFT_API
949#endif /* U_HIDE_DRAFT_API */
950
959
960#ifndef U_HIDE_DRAFT_API
967#endif /* U_HIDE_DRAFT_API */
968
969#ifndef U_HIDE_DRAFT_API
978
985#endif /* U_HIDE_DRAFT_API */
986
987#ifndef U_HIDE_DRAFT_API
996
1003#endif /* U_HIDE_DRAFT_API */
1004
1013
1014#ifndef U_HIDE_DRAFT_API
1021#endif /* U_HIDE_DRAFT_API */
1022
1031
1032#ifndef U_HIDE_DRAFT_API
1039#endif /* U_HIDE_DRAFT_API */
1040
1049
1050#ifndef U_HIDE_DRAFT_API
1057#endif /* U_HIDE_DRAFT_API */
1058
1067
1068#ifndef U_HIDE_DRAFT_API
1075#endif /* U_HIDE_DRAFT_API */
1076
1085
1086#ifndef U_HIDE_DRAFT_API
1093#endif /* U_HIDE_DRAFT_API */
1094
1095#ifndef U_HIDE_DRAFT_API
1104
1111#endif /* U_HIDE_DRAFT_API */
1112
1121
1122#ifndef U_HIDE_DRAFT_API
1129#endif /* U_HIDE_DRAFT_API */
1130
1139
1140#ifndef U_HIDE_DRAFT_API
1147#endif /* U_HIDE_DRAFT_API */
1148
1157
1158#ifndef U_HIDE_DRAFT_API
1165#endif /* U_HIDE_DRAFT_API */
1166
1167#ifndef U_HIDE_DRAFT_API
1176
1183#endif /* U_HIDE_DRAFT_API */
1184
1193
1194#ifndef U_HIDE_DRAFT_API
1201#endif /* U_HIDE_DRAFT_API */
1202
1203#ifndef U_HIDE_DRAFT_API
1212
1219#endif /* U_HIDE_DRAFT_API */
1220
1229
1230#ifndef U_HIDE_DRAFT_API
1237#endif /* U_HIDE_DRAFT_API */
1238
1247
1248#ifndef U_HIDE_DRAFT_API
1255#endif /* U_HIDE_DRAFT_API */
1256
1265
1266#ifndef U_HIDE_DRAFT_API
1273#endif /* U_HIDE_DRAFT_API */
1274
1283
1284#ifndef U_HIDE_DRAFT_API
1291#endif /* U_HIDE_DRAFT_API */
1292
1293#ifndef U_HIDE_DRAFT_API
1302
1309#endif /* U_HIDE_DRAFT_API */
1310
1319
1320#ifndef U_HIDE_DRAFT_API
1327#endif /* U_HIDE_DRAFT_API */
1328
1329#ifndef U_HIDE_DRAFT_API
1338
1345#endif /* U_HIDE_DRAFT_API */
1346
1355
1356#ifndef U_HIDE_DRAFT_API
1363#endif /* U_HIDE_DRAFT_API */
1364
1373
1374#ifndef U_HIDE_DRAFT_API
1381#endif /* U_HIDE_DRAFT_API */
1382
1391
1392#ifndef U_HIDE_DRAFT_API
1399#endif /* U_HIDE_DRAFT_API */
1400
1409
1410#ifndef U_HIDE_DRAFT_API
1417#endif /* U_HIDE_DRAFT_API */
1418
1427
1428#ifndef U_HIDE_DRAFT_API
1435#endif /* U_HIDE_DRAFT_API */
1436
1437#ifndef U_HIDE_DRAFT_API
1446
1453#endif /* U_HIDE_DRAFT_API */
1454
1455#ifndef U_HIDE_DRAFT_API
1464
1471#endif /* U_HIDE_DRAFT_API */
1472
1473#ifndef U_HIDE_DRAFT_API
1482
1489#endif /* U_HIDE_DRAFT_API */
1490
1499
1500#ifndef U_HIDE_DRAFT_API
1507#endif /* U_HIDE_DRAFT_API */
1508
1517
1518#ifndef U_HIDE_DRAFT_API
1525#endif /* U_HIDE_DRAFT_API */
1526
1535
1536#ifndef U_HIDE_DRAFT_API
1543#endif /* U_HIDE_DRAFT_API */
1544
1553
1554#ifndef U_HIDE_DRAFT_API
1561#endif /* U_HIDE_DRAFT_API */
1562
1563#ifndef U_HIDE_DRAFT_API
1572
1579#endif /* U_HIDE_DRAFT_API */
1580
1581#ifndef U_HIDE_DRAFT_API
1590
1597#endif /* U_HIDE_DRAFT_API */
1598
1599#ifndef U_HIDE_DRAFT_API
1608
1615#endif /* U_HIDE_DRAFT_API */
1616
1617#ifndef U_HIDE_DRAFT_API
1626
1633#endif /* U_HIDE_DRAFT_API */
1634
1635#ifndef U_HIDE_DRAFT_API
1644
1651#endif /* U_HIDE_DRAFT_API */
1652
1653#ifndef U_HIDE_DRAFT_API
1662
1669#endif /* U_HIDE_DRAFT_API */
1670
1671#ifndef U_HIDE_DRAFT_API
1680
1687#endif /* U_HIDE_DRAFT_API */
1688
1697
1698#ifndef U_HIDE_DRAFT_API
1705#endif /* U_HIDE_DRAFT_API */
1706
1715
1716#ifndef U_HIDE_DRAFT_API
1723#endif /* U_HIDE_DRAFT_API */
1724
1733
1734#ifndef U_HIDE_DRAFT_API
1741#endif /* U_HIDE_DRAFT_API */
1742
1751
1752#ifndef U_HIDE_DRAFT_API
1759#endif /* U_HIDE_DRAFT_API */
1760
1769
1770#ifndef U_HIDE_DRAFT_API
1777#endif /* U_HIDE_DRAFT_API */
1778
1787
1788#ifndef U_HIDE_DRAFT_API
1795#endif /* U_HIDE_DRAFT_API */
1796
1805
1806#ifndef U_HIDE_DRAFT_API
1813#endif /* U_HIDE_DRAFT_API */
1814
1823
1824#ifndef U_HIDE_DRAFT_API
1831#endif /* U_HIDE_DRAFT_API */
1832
1841
1842#ifndef U_HIDE_DRAFT_API
1849#endif /* U_HIDE_DRAFT_API */
1850
1859
1860#ifndef U_HIDE_DRAFT_API
1867#endif /* U_HIDE_DRAFT_API */
1868
1877
1878#ifndef U_HIDE_DRAFT_API
1885#endif /* U_HIDE_DRAFT_API */
1886
1895
1896#ifndef U_HIDE_DRAFT_API
1903#endif /* U_HIDE_DRAFT_API */
1904
1913
1914#ifndef U_HIDE_DRAFT_API
1921#endif /* U_HIDE_DRAFT_API */
1922
1931
1932#ifndef U_HIDE_DRAFT_API
1939#endif /* U_HIDE_DRAFT_API */
1940
1949
1950#ifndef U_HIDE_DRAFT_API
1957#endif /* U_HIDE_DRAFT_API */
1958
1967
1968#ifndef U_HIDE_DRAFT_API
1975#endif /* U_HIDE_DRAFT_API */
1976
1985
1986#ifndef U_HIDE_DRAFT_API
1993#endif /* U_HIDE_DRAFT_API */
1994
2003
2004#ifndef U_HIDE_DRAFT_API
2011#endif /* U_HIDE_DRAFT_API */
2012
2021
2022#ifndef U_HIDE_DRAFT_API
2029#endif /* U_HIDE_DRAFT_API */
2030
2031#ifndef U_HIDE_DRAFT_API
2040
2047#endif /* U_HIDE_DRAFT_API */
2048
2057
2058#ifndef U_HIDE_DRAFT_API
2065#endif /* U_HIDE_DRAFT_API */
2066
2075
2076#ifndef U_HIDE_DRAFT_API
2083#endif /* U_HIDE_DRAFT_API */
2084
2085#ifndef U_HIDE_DRAFT_API
2094
2101#endif /* U_HIDE_DRAFT_API */
2102
2111
2112#ifndef U_HIDE_DRAFT_API
2119#endif /* U_HIDE_DRAFT_API */
2120
2121#ifndef U_HIDE_DRAFT_API
2130
2137#endif /* U_HIDE_DRAFT_API */
2138
2139#ifndef U_HIDE_DRAFT_API
2148
2155#endif /* U_HIDE_DRAFT_API */
2156
2165
2166#ifndef U_HIDE_DRAFT_API
2173#endif /* U_HIDE_DRAFT_API */
2174
2183
2184#ifndef U_HIDE_DRAFT_API
2191#endif /* U_HIDE_DRAFT_API */
2192
2201
2202#ifndef U_HIDE_DRAFT_API
2209#endif /* U_HIDE_DRAFT_API */
2210
2219
2220#ifndef U_HIDE_DRAFT_API
2227#endif /* U_HIDE_DRAFT_API */
2228
2237
2238#ifndef U_HIDE_DRAFT_API
2245#endif /* U_HIDE_DRAFT_API */
2246
2255
2256#ifndef U_HIDE_DRAFT_API
2263#endif /* U_HIDE_DRAFT_API */
2264
2273
2274#ifndef U_HIDE_DRAFT_API
2281#endif /* U_HIDE_DRAFT_API */
2282
2291
2292#ifndef U_HIDE_DRAFT_API
2299#endif /* U_HIDE_DRAFT_API */
2300
2301#ifndef U_HIDE_DRAFT_API
2310
2317#endif /* U_HIDE_DRAFT_API */
2318
2327
2328#ifndef U_HIDE_DRAFT_API
2335#endif /* U_HIDE_DRAFT_API */
2336
2345
2346#ifndef U_HIDE_DRAFT_API
2353#endif /* U_HIDE_DRAFT_API */
2354
2363
2364#ifndef U_HIDE_DRAFT_API
2371#endif /* U_HIDE_DRAFT_API */
2372
2381
2382#ifndef U_HIDE_DRAFT_API
2389#endif /* U_HIDE_DRAFT_API */
2390
2399
2400#ifndef U_HIDE_DRAFT_API
2407#endif /* U_HIDE_DRAFT_API */
2408
2417
2418#ifndef U_HIDE_DRAFT_API
2425#endif /* U_HIDE_DRAFT_API */
2426
2435
2436#ifndef U_HIDE_DRAFT_API
2443#endif /* U_HIDE_DRAFT_API */
2444
2453
2454#ifndef U_HIDE_DRAFT_API
2461#endif /* U_HIDE_DRAFT_API */
2462
2471
2472#ifndef U_HIDE_DRAFT_API
2479#endif /* U_HIDE_DRAFT_API */
2480
2481#ifndef U_HIDE_DRAFT_API
2490
2497#endif /* U_HIDE_DRAFT_API */
2498
2507
2508#ifndef U_HIDE_DRAFT_API
2515#endif /* U_HIDE_DRAFT_API */
2516
2525
2526#ifndef U_HIDE_DRAFT_API
2533#endif /* U_HIDE_DRAFT_API */
2534
2535#ifndef U_HIDE_DRAFT_API
2544
2551#endif /* U_HIDE_DRAFT_API */
2552
2553#ifndef U_HIDE_DRAFT_API
2562
2569#endif /* U_HIDE_DRAFT_API */
2570
2579
2580#ifndef U_HIDE_DRAFT_API
2587#endif /* U_HIDE_DRAFT_API */
2588
2597
2598#ifndef U_HIDE_DRAFT_API
2605#endif /* U_HIDE_DRAFT_API */
2606
2607#ifndef U_HIDE_DRAFT_API
2616
2623#endif /* U_HIDE_DRAFT_API */
2624
2633
2634#ifndef U_HIDE_DRAFT_API
2641#endif /* U_HIDE_DRAFT_API */
2642
2651
2652#ifndef U_HIDE_DRAFT_API
2659#endif /* U_HIDE_DRAFT_API */
2660
2669
2670#ifndef U_HIDE_DRAFT_API
2677#endif /* U_HIDE_DRAFT_API */
2678
2687
2688#ifndef U_HIDE_DRAFT_API
2695#endif /* U_HIDE_DRAFT_API */
2696
2705
2706#ifndef U_HIDE_DRAFT_API
2713#endif /* U_HIDE_DRAFT_API */
2714
2723
2724#ifndef U_HIDE_DRAFT_API
2731#endif /* U_HIDE_DRAFT_API */
2732
2741
2742#ifndef U_HIDE_DRAFT_API
2749#endif /* U_HIDE_DRAFT_API */
2750
2759
2760#ifndef U_HIDE_DRAFT_API
2767#endif /* U_HIDE_DRAFT_API */
2768
2777
2778#ifndef U_HIDE_DRAFT_API
2785#endif /* U_HIDE_DRAFT_API */
2786
2787#ifndef U_HIDE_DRAFT_API
2796
2803#endif /* U_HIDE_DRAFT_API */
2804
2805#ifndef U_HIDE_DRAFT_API
2814
2821#endif /* U_HIDE_DRAFT_API */
2822
2831
2832#ifndef U_HIDE_DRAFT_API
2839#endif /* U_HIDE_DRAFT_API */
2840
2841#ifndef U_HIDE_DRAFT_API
2850
2857#endif /* U_HIDE_DRAFT_API */
2858
2867
2868#ifndef U_HIDE_DRAFT_API
2875#endif /* U_HIDE_DRAFT_API */
2876
2885
2886#ifndef U_HIDE_DRAFT_API
2893#endif /* U_HIDE_DRAFT_API */
2894
2903
2904#ifndef U_HIDE_DRAFT_API
2911#endif /* U_HIDE_DRAFT_API */
2912
2921
2922#ifndef U_HIDE_DRAFT_API
2929#endif /* U_HIDE_DRAFT_API */
2930
2939
2940#ifndef U_HIDE_DRAFT_API
2947#endif /* U_HIDE_DRAFT_API */
2948
2957
2958#ifndef U_HIDE_DRAFT_API
2965#endif /* U_HIDE_DRAFT_API */
2966
2975
2976#ifndef U_HIDE_DRAFT_API
2983#endif /* U_HIDE_DRAFT_API */
2984
2993
2994#ifndef U_HIDE_DRAFT_API
3001#endif /* U_HIDE_DRAFT_API */
3002
3011
3012#ifndef U_HIDE_DRAFT_API
3019#endif /* U_HIDE_DRAFT_API */
3020
3029
3030#ifndef U_HIDE_DRAFT_API
3037#endif /* U_HIDE_DRAFT_API */
3038
3047
3048#ifndef U_HIDE_DRAFT_API
3055#endif /* U_HIDE_DRAFT_API */
3056
3065
3066#ifndef U_HIDE_DRAFT_API
3073#endif /* U_HIDE_DRAFT_API */
3074
3083
3084#ifndef U_HIDE_DRAFT_API
3091#endif /* U_HIDE_DRAFT_API */
3092
3093#ifndef U_HIDE_DRAFT_API
3102
3109#endif /* U_HIDE_DRAFT_API */
3110
3119
3120#ifndef U_HIDE_DRAFT_API
3127#endif /* U_HIDE_DRAFT_API */
3128
3137
3138#ifndef U_HIDE_DRAFT_API
3145#endif /* U_HIDE_DRAFT_API */
3146
3155
3156#ifndef U_HIDE_DRAFT_API
3163#endif /* U_HIDE_DRAFT_API */
3164
3173
3174#ifndef U_HIDE_DRAFT_API
3181#endif /* U_HIDE_DRAFT_API */
3182
3191
3192#ifndef U_HIDE_DRAFT_API
3199#endif /* U_HIDE_DRAFT_API */
3200
3209
3210#ifndef U_HIDE_DRAFT_API
3217#endif /* U_HIDE_DRAFT_API */
3218
3227
3228#ifndef U_HIDE_DRAFT_API
3235#endif /* U_HIDE_DRAFT_API */
3236
3245
3246#ifndef U_HIDE_DRAFT_API
3253#endif /* U_HIDE_DRAFT_API */
3254
3263
3264#ifndef U_HIDE_DRAFT_API
3271#endif /* U_HIDE_DRAFT_API */
3272
3281
3282#ifndef U_HIDE_DRAFT_API
3289#endif /* U_HIDE_DRAFT_API */
3290
3299
3300#ifndef U_HIDE_DRAFT_API
3307#endif /* U_HIDE_DRAFT_API */
3308
3309
3310// End generated createXXX methods
3311
3312 protected:
3313
3314#ifndef U_HIDE_INTERNAL_API
3319 void initTime(const char *timeId);
3320
3325 void initCurrency(const char *isoCurrency);
3326
3331 void initNoUnit(const char *subtype);
3332
3333#endif /* U_HIDE_INTERNAL_API */
3334
3335private:
3336 int32_t fTypeId;
3337 int32_t fSubTypeId;
3338 char fCurrency[4];
3339
3340 MeasureUnit(int32_t typeId, int32_t subTypeId) : fTypeId(typeId), fSubTypeId(subTypeId) {
3341 fCurrency[0] = 0;
3342 }
3343 void setTo(int32_t typeId, int32_t subTypeId);
3344 int32_t getOffset() const;
3345 static MeasureUnit *create(int typeId, int subTypeId, UErrorCode &status);
3346};
3347
3348U_NAMESPACE_END
3349
3350#endif // !UNCONFIG_NO_FORMATTING
3351
3352#endif /* U_SHOW_CPLUSPLUS_API */
3353
3354#endif // __MEASUREUNIT_H__
A unit such as length, mass, volume, currency, etc.
Definition: measunit.h:40
static MeasureUnit getBritishThermalUnit()
Returns by value, unit of energy: british-thermal-unit.
static MeasureUnit getInch()
Returns by value, unit of length: inch.
static MeasureUnit * createMeterPerSecondSquared(UErrorCode &status)
Returns by pointer, unit of acceleration: meter-per-second-squared.
static MeasureUnit getMilligramPerDeciliter()
Returns by value, unit of concentr: milligram-per-deciliter.
static MeasureUnit * createDayPerson(UErrorCode &status)
Returns by pointer, unit of duration: day-person.
static MeasureUnit * createMillibar(UErrorCode &status)
Returns by pointer, unit of pressure: millibar.
static MeasureUnit * createDecade(UErrorCode &status)
Returns by pointer, unit of duration: decade.
static MeasureUnit * createArcMinute(UErrorCode &status)
Returns by pointer, unit of angle: arc-minute.
static MeasureUnit * createKilowattHour(UErrorCode &status)
Returns by pointer, unit of energy: kilowatt-hour.
static int32_t getAvailable(const char *type, MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
getAvailable gets all of the available units for a specific type.
static MeasureUnit getKilobit()
Returns by value, unit of digital: kilobit.
static MeasureUnit getLiterPerKilometer()
Returns by value, unit of consumption: liter-per-kilometer.
static MeasureUnit getMillimolePerLiter()
Returns by value, unit of concentr: millimole-per-liter.
static MeasureUnit * createKilobyte(UErrorCode &status)
Returns by pointer, unit of digital: kilobyte.
static MeasureUnit getDegree()
Returns by value, unit of angle: degree.
static MeasureUnit getMilePerGallon()
Returns by value, unit of consumption: mile-per-gallon.
static MeasureUnit getKilohertz()
Returns by value, unit of frequency: kilohertz.
static MeasureUnit * createCubicFoot(UErrorCode &status)
Returns by pointer, unit of volume: cubic-foot.
static MeasureUnit getMinute()
Returns by value, unit of duration: minute.
static MeasureUnit getTerabyte()
Returns by value, unit of digital: terabyte.
static MeasureUnit getMillimeterOfMercury()
Returns by value, unit of pressure: millimeter-of-mercury.
static MeasureUnit getCubicYard()
Returns by value, unit of volume: cubic-yard.
static MeasureUnit getGenericTemperature()
Returns by value, unit of temperature: generic.
static MeasureUnit getKilowattHour()
Returns by value, unit of energy: kilowatt-hour.
static MeasureUnit getBit()
Returns by value, unit of digital: bit.
static MeasureUnit getStone()
Returns by value, unit of mass: stone.
static MeasureUnit getParsec()
Returns by value, unit of length: parsec.
static MeasureUnit * createQuart(UErrorCode &status)
Returns by pointer, unit of volume: quart.
static MeasureUnit getKilopascal()
Returns by value, unit of pressure: kilopascal.
static MeasureUnit getHour()
Returns by value, unit of duration: hour.
static MeasureUnit getPoundFoot()
Returns by value, unit of torque: pound-foot.
static MeasureUnit * createLightYear(UErrorCode &status)
Returns by pointer, unit of length: light-year.
static MeasureUnit * createNanometer(UErrorCode &status)
Returns by pointer, unit of length: nanometer.
static MeasureUnit getPixelPerCentimeter()
Returns by value, unit of graphics: pixel-per-centimeter.
static int32_t internalGetIndexForTypeAndSubtype(const char *type, const char *subtype)
ICU use only.
static MeasureUnit getMegabyte()
Returns by value, unit of digital: megabyte.
static MeasureUnit * createKarat(UErrorCode &status)
Returns by pointer, unit of concentr: karat.
static MeasureUnit * createOhm(UErrorCode &status)
Returns by pointer, unit of electric: ohm.
static MeasureUnit * createStone(UErrorCode &status)
Returns by pointer, unit of mass: stone.
static MeasureUnit getMile()
Returns by value, unit of length: mile.
static MeasureUnit getPermyriad()
Returns by value, unit of concentr: permyriad.
static MeasureUnit * createPermille(UErrorCode &status)
Returns by pointer, unit of concentr: permille.
static MeasureUnit * createAcreFoot(UErrorCode &status)
Returns by pointer, unit of volume: acre-foot.
static MeasureUnit getAstronomicalUnit()
Returns by value, unit of length: astronomical-unit.
static MeasureUnit * createHertz(UErrorCode &status)
Returns by pointer, unit of frequency: hertz.
static MeasureUnit * createVolt(UErrorCode &status)
Returns by pointer, unit of electric: volt.
static MeasureUnit getBarrel()
Returns by value, unit of volume: barrel.
static MeasureUnit * createSquareKilometer(UErrorCode &status)
Returns by pointer, unit of area: square-kilometer.
static MeasureUnit * createFluidOunceImperial(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce-imperial.
static MeasureUnit * createGenericTemperature(UErrorCode &status)
Returns by pointer, unit of temperature: generic.
static MeasureUnit getDalton()
Returns by value, unit of mass: dalton.
static MeasureUnit getMilePerHour()
Returns by value, unit of speed: mile-per-hour.
static MeasureUnit getTerabit()
Returns by value, unit of digital: terabit.
static MeasureUnit * createCup(UErrorCode &status)
Returns by pointer, unit of volume: cup.
static MeasureUnit getDotPerCentimeter()
Returns by value, unit of graphics: dot-per-centimeter.
static MeasureUnit getCalorie()
Returns by value, unit of energy: calorie.
static UClassID getStaticClassID(void)
Return the class ID for this class.
static MeasureUnit getCentimeter()
Returns by value, unit of length: centimeter.
static MeasureUnit getGigahertz()
Returns by value, unit of frequency: gigahertz.
static MeasureUnit getPixelPerInch()
Returns by value, unit of graphics: pixel-per-inch.
static MeasureUnit * createMileScandinavian(UErrorCode &status)
Returns by pointer, unit of length: mile-scandinavian.
static MeasureUnit getFoodcalorie()
Returns by value, unit of energy: foodcalorie.
static MeasureUnit * createInchHg(UErrorCode &status)
Returns by pointer, unit of pressure: inch-hg.
static MeasureUnit getMicrogram()
Returns by value, unit of mass: microgram.
static MeasureUnit * createMilePerGallonImperial(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon-imperial.
static MeasureUnit getSquareKilometer()
Returns by value, unit of area: square-kilometer.
static MeasureUnit getKilometer()
Returns by value, unit of length: kilometer.
static MeasureUnit getGigabyte()
Returns by value, unit of digital: gigabyte.
static MeasureUnit getMilligram()
Returns by value, unit of mass: milligram.
static MeasureUnit getPascal()
Returns by value, unit of pressure: pascal.
static MeasureUnit * createPixelPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-inch.
static MeasureUnit getRadian()
Returns by value, unit of angle: radian.
static MeasureUnit getPoint()
Returns by value, unit of length: point.
static MeasureUnit getPoundForce()
Returns by value, unit of force: pound-force.
static MeasureUnit * createTerabit(UErrorCode &status)
Returns by pointer, unit of digital: terabit.
static MeasureUnit * createMegapascal(UErrorCode &status)
Returns by pointer, unit of pressure: megapascal.
static MeasureUnit * createYear(UErrorCode &status)
Returns by pointer, unit of duration: year.
static MeasureUnit * createMile(UErrorCode &status)
Returns by pointer, unit of length: mile.
static MeasureUnit * createMonth(UErrorCode &status)
Returns by pointer, unit of duration: month.
static MeasureUnit getKilocalorie()
Returns by value, unit of energy: kilocalorie.
static MeasureUnit getMicrosecond()
Returns by value, unit of duration: microsecond.
static MeasureUnit getBushel()
Returns by value, unit of volume: bushel.
static MeasureUnit * createMilliampere(UErrorCode &status)
Returns by pointer, unit of electric: milliampere.
static MeasureUnit getFluidOunce()
Returns by value, unit of volume: fluid-ounce.
static MeasureUnit getHectoliter()
Returns by value, unit of volume: hectoliter.
static MeasureUnit * createDunam(UErrorCode &status)
Returns by pointer, unit of area: dunam.
static MeasureUnit * createMegabit(UErrorCode &status)
Returns by pointer, unit of digital: megabit.
static MeasureUnit getCarat()
Returns by value, unit of mass: carat.
static MeasureUnit getVolt()
Returns by value, unit of electric: volt.
static MeasureUnit * createThermUs(UErrorCode &status)
Returns by pointer, unit of energy: therm-us.
static MeasureUnit * createAtmosphere(UErrorCode &status)
Returns by pointer, unit of pressure: atmosphere.
static MeasureUnit getOunce()
Returns by value, unit of mass: ounce.
static MeasureUnit getHectare()
Returns by value, unit of area: hectare.
static MeasureUnit getNanosecond()
Returns by value, unit of duration: nanosecond.
static MeasureUnit * createPixelPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: pixel-per-centimeter.
static MeasureUnit getEarthMass()
Returns by value, unit of mass: earth-mass.
static MeasureUnit * createPintMetric(UErrorCode &status)
Returns by pointer, unit of volume: pint-metric.
static MeasureUnit getFahrenheit()
Returns by value, unit of temperature: fahrenheit.
static MeasureUnit * createOunce(UErrorCode &status)
Returns by pointer, unit of mass: ounce.
static int32_t getAvailable(MeasureUnit *destArray, int32_t destCapacity, UErrorCode &errorCode)
getAvailable gets all of the available units.
static MeasureUnit * createKilohertz(UErrorCode &status)
Returns by pointer, unit of frequency: kilohertz.
static MeasureUnit getMileScandinavian()
Returns by value, unit of length: mile-scandinavian.
static MeasureUnit getMegapascal()
Returns by value, unit of pressure: megapascal.
static MeasureUnit * createNewton(UErrorCode &status)
Returns by pointer, unit of force: newton.
static MeasureUnit getDeciliter()
Returns by value, unit of volume: deciliter.
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.
static MeasureUnit * createMilliwatt(UErrorCode &status)
Returns by pointer, unit of power: milliwatt.
static MeasureUnit * createMicrosecond(UErrorCode &status)
Returns by pointer, unit of duration: microsecond.
static MeasureUnit getPixel()
Returns by value, unit of graphics: pixel.
static MeasureUnit * createPascal(UErrorCode &status)
Returns by pointer, unit of pressure: pascal.
MeasureUnit(const MeasureUnit &other)
Copy constructor.
static MeasureUnit * createCarat(UErrorCode &status)
Returns by pointer, unit of mass: carat.
static MeasureUnit getSolarLuminosity()
Returns by value, unit of light: solar-luminosity.
static MeasureUnit * createGigabyte(UErrorCode &status)
Returns by pointer, unit of digital: gigabyte.
static MeasureUnit * createGigabit(UErrorCode &status)
Returns by pointer, unit of digital: gigabit.
static MeasureUnit getMonthPerson()
Returns by value, unit of duration: month-person.
static MeasureUnit * createParsec(UErrorCode &status)
Returns by pointer, unit of length: parsec.
static MeasureUnit * createLux(UErrorCode &status)
Returns by pointer, unit of light: lux.
static MeasureUnit * createWeek(UErrorCode &status)
Returns by pointer, unit of duration: week.
static MeasureUnit getCentiliter()
Returns by value, unit of volume: centiliter.
static MeasureUnit getPartPerMillion()
Returns by value, unit of concentr: part-per-million.
static MeasureUnit * createJoule(UErrorCode &status)
Returns by pointer, unit of energy: joule.
static MeasureUnit * createSolarMass(UErrorCode &status)
Returns by pointer, unit of mass: solar-mass.
virtual UBool operator==(const UObject &other) const
Equality operator.
static MeasureUnit getMegawatt()
Returns by value, unit of power: megawatt.
void initCurrency(const char *isoCurrency)
For ICU use only.
static MeasureUnit getGigabit()
Returns by value, unit of digital: gigabit.
static MeasureUnit getTon()
Returns by value, unit of mass: ton.
static MeasureUnit * createMilliliter(UErrorCode &status)
Returns by pointer, unit of volume: milliliter.
static MeasureUnit * createHour(UErrorCode &status)
Returns by pointer, unit of duration: hour.
void initNoUnit(const char *subtype)
For ICU use only.
static MeasureUnit getFurlong()
Returns by value, unit of length: furlong.
static MeasureUnit * createBit(UErrorCode &status)
Returns by pointer, unit of digital: bit.
static MeasureUnit getLightYear()
Returns by value, unit of length: light-year.
static MeasureUnit getJoule()
Returns by value, unit of energy: joule.
static MeasureUnit getTeaspoon()
Returns by value, unit of volume: teaspoon.
static MeasureUnit getWeekPerson()
Returns by value, unit of duration: week-person.
static MeasureUnit getLiter()
Returns by value, unit of volume: liter.
static MeasureUnit getPermille()
Returns by value, unit of concentr: permille.
static MeasureUnit * createElectronvolt(UErrorCode &status)
Returns by pointer, unit of energy: electronvolt.
static MeasureUnit getYard()
Returns by value, unit of length: yard.
static MeasureUnit * createCubicYard(UErrorCode &status)
Returns by pointer, unit of volume: cubic-yard.
static MeasureUnit getByte()
Returns by value, unit of digital: byte.
static MeasureUnit getKilogram()
Returns by value, unit of mass: kilogram.
static MeasureUnit * createEarthMass(UErrorCode &status)
Returns by pointer, unit of mass: earth-mass.
static MeasureUnit * createCalorie(UErrorCode &status)
Returns by pointer, unit of energy: calorie.
static MeasureUnit * createFahrenheit(UErrorCode &status)
Returns by pointer, unit of temperature: fahrenheit.
static MeasureUnit getSquareYard()
Returns by value, unit of area: square-yard.
static MeasureUnit resolveUnitPerUnit(const MeasureUnit &unit, const MeasureUnit &perUnit, bool *isResolved)
ICU use only.
static MeasureUnit * createDay(UErrorCode &status)
Returns by pointer, unit of duration: day.
static MeasureUnit * createBritishThermalUnit(UErrorCode &status)
Returns by pointer, unit of energy: british-thermal-unit.
static MeasureUnit * createDeciliter(UErrorCode &status)
Returns by pointer, unit of volume: deciliter.
static MeasureUnit * createPercent(UErrorCode &status)
Returns by pointer, unit of concentr: percent.
static MeasureUnit getDunam()
Returns by value, unit of area: dunam.
static MeasureUnit getKilowatt()
Returns by value, unit of power: kilowatt.
static MeasureUnit * createHectare(UErrorCode &status)
Returns by pointer, unit of area: hectare.
static MeasureUnit getSolarRadius()
Returns by value, unit of length: solar-radius.
static MeasureUnit getMegapixel()
Returns by value, unit of graphics: megapixel.
static MeasureUnit getLux()
Returns by value, unit of light: lux.
static MeasureUnit getMillimeter()
Returns by value, unit of length: millimeter.
static MeasureUnit * createMinute(UErrorCode &status)
Returns by pointer, unit of duration: minute.
static MeasureUnit * createKilometerPerHour(UErrorCode &status)
Returns by pointer, unit of speed: kilometer-per-hour.
static MeasureUnit getMilliwatt()
Returns by value, unit of power: milliwatt.
static MeasureUnit getOunceTroy()
Returns by value, unit of mass: ounce-troy.
static MeasureUnit getNewtonMeter()
Returns by value, unit of torque: newton-meter.
static MeasureUnit getAcreFoot()
Returns by value, unit of volume: acre-foot.
static MeasureUnit * createYard(UErrorCode &status)
Returns by pointer, unit of length: yard.
static MeasureUnit * createMilligram(UErrorCode &status)
Returns by pointer, unit of mass: milligram.
static MeasureUnit getNauticalMile()
Returns by value, unit of length: nautical-mile.
static MeasureUnit * createEm(UErrorCode &status)
Returns by pointer, unit of graphics: em.
static MeasureUnit * createOunceTroy(UErrorCode &status)
Returns by pointer, unit of mass: ounce-troy.
static MeasureUnit getMegaliter()
Returns by value, unit of volume: megaliter.
static MeasureUnit * createHorsepower(UErrorCode &status)
Returns by pointer, unit of power: horsepower.
static MeasureUnit getWatt()
Returns by value, unit of power: watt.
static StringEnumeration * getAvailableTypes(UErrorCode &errorCode)
getAvailableTypes gets all of the available types.
static MeasureUnit * createMegabyte(UErrorCode &status)
Returns by pointer, unit of digital: megabyte.
static MeasureUnit * createSquareCentimeter(UErrorCode &status)
Returns by pointer, unit of area: square-centimeter.
static MeasureUnit getFluidOunceImperial()
Returns by value, unit of volume: fluid-ounce-imperial.
int32_t getIndex() const
ICU use only.
static MeasureUnit getPintMetric()
Returns by value, unit of volume: pint-metric.
static MeasureUnit getSquareFoot()
Returns by value, unit of area: square-foot.
static MeasureUnit getGigawatt()
Returns by value, unit of power: gigawatt.
static MeasureUnit * createGallon(UErrorCode &status)
Returns by pointer, unit of volume: gallon.
static MeasureUnit * createWeekPerson(UErrorCode &status)
Returns by pointer, unit of duration: week-person.
static MeasureUnit getMilliampere()
Returns by value, unit of electric: milliampere.
static MeasureUnit * createHectopascal(UErrorCode &status)
Returns by pointer, unit of pressure: hectopascal.
static MeasureUnit * createSquareFoot(UErrorCode &status)
Returns by pointer, unit of area: square-foot.
static MeasureUnit * createKilojoule(UErrorCode &status)
Returns by pointer, unit of energy: kilojoule.
static MeasureUnit getHectopascal()
Returns by value, unit of pressure: hectopascal.
static MeasureUnit * createPermyriad(UErrorCode &status)
Returns by pointer, unit of concentr: permyriad.
static MeasureUnit * createGigahertz(UErrorCode &status)
Returns by pointer, unit of frequency: gigahertz.
static MeasureUnit getSquareMeter()
Returns by value, unit of area: square-meter.
static MeasureUnit * createGallonImperial(UErrorCode &status)
Returns by pointer, unit of volume: gallon-imperial.
static MeasureUnit * createSquareYard(UErrorCode &status)
Returns by pointer, unit of area: square-yard.
static MeasureUnit * createGigawatt(UErrorCode &status)
Returns by pointer, unit of power: gigawatt.
static MeasureUnit * createPetabyte(UErrorCode &status)
Returns by pointer, unit of digital: petabyte.
static MeasureUnit getCupMetric()
Returns by value, unit of volume: cup-metric.
static MeasureUnit * createBushel(UErrorCode &status)
Returns by pointer, unit of volume: bushel.
static MeasureUnit getMillisecond()
Returns by value, unit of duration: millisecond.
static MeasureUnit * createCentimeter(UErrorCode &status)
Returns by pointer, unit of length: centimeter.
static MeasureUnit * createDotPerInch(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-inch.
const char * getSubtype() const
Get the sub type.
static MeasureUnit * createRadian(UErrorCode &status)
Returns by pointer, unit of angle: radian.
static MeasureUnit * createCubicMeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-meter.
static MeasureUnit getArcMinute()
Returns by value, unit of angle: arc-minute.
static MeasureUnit * createWatt(UErrorCode &status)
Returns by pointer, unit of power: watt.
static MeasureUnit * createMetricTon(UErrorCode &status)
Returns by pointer, unit of mass: metric-ton.
static MeasureUnit * createMeter(UErrorCode &status)
Returns by pointer, unit of length: meter.
static MeasureUnit * createLiter(UErrorCode &status)
Returns by pointer, unit of volume: liter.
static MeasureUnit * createPint(UErrorCode &status)
Returns by pointer, unit of volume: pint.
static MeasureUnit getMillibar()
Returns by value, unit of pressure: millibar.
static MeasureUnit * createBarrel(UErrorCode &status)
Returns by pointer, unit of volume: barrel.
static MeasureUnit getPetabyte()
Returns by value, unit of digital: petabyte.
static MeasureUnit getYearPerson()
Returns by value, unit of duration: year-person.
MeasureUnit()
Default constructor.
static MeasureUnit getDayPerson()
Returns by value, unit of duration: day-person.
static MeasureUnit * createTablespoon(UErrorCode &status)
Returns by pointer, unit of volume: tablespoon.
static MeasureUnit * createMeterPerSecond(UErrorCode &status)
Returns by pointer, unit of speed: meter-per-second.
static MeasureUnit * createFoot(UErrorCode &status)
Returns by pointer, unit of length: foot.
static MeasureUnit * createLiterPer100Kilometers(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-100kilometers.
static MeasureUnit * createSquareMeter(UErrorCode &status)
Returns by pointer, unit of area: square-meter.
static MeasureUnit getNanometer()
Returns by value, unit of length: nanometer.
static MeasureUnit getGram()
Returns by value, unit of mass: gram.
static MeasureUnit * createMonthPerson(UErrorCode &status)
Returns by pointer, unit of duration: month-person.
static MeasureUnit getSquareInch()
Returns by value, unit of area: square-inch.
static MeasureUnit getAtmosphere()
Returns by value, unit of pressure: atmosphere.
static MeasureUnit getKarat()
Returns by value, unit of concentr: karat.
static MeasureUnit getMole()
Returns by value, unit of concentr: mole.
static MeasureUnit getMilePerGallonImperial()
Returns by value, unit of consumption: mile-per-gallon-imperial.
static MeasureUnit getMegahertz()
Returns by value, unit of frequency: megahertz.
static MeasureUnit * createRevolutionAngle(UErrorCode &status)
Returns by pointer, unit of angle: revolution.
MeasureUnit & operator=(const MeasureUnit &other)
Assignment operator.
static MeasureUnit * createCelsius(UErrorCode &status)
Returns by pointer, unit of temperature: celsius.
static MeasureUnit * createDegree(UErrorCode &status)
Returns by pointer, unit of angle: degree.
static MeasureUnit * createKilobit(UErrorCode &status)
Returns by pointer, unit of digital: kilobit.
static MeasureUnit * createKelvin(UErrorCode &status)
Returns by pointer, unit of temperature: kelvin.
static MeasureUnit * createMole(UErrorCode &status)
Returns by pointer, unit of concentr: mole.
static MeasureUnit getMegabit()
Returns by value, unit of digital: megabit.
static MeasureUnit * createSolarRadius(UErrorCode &status)
Returns by pointer, unit of length: solar-radius.
static MeasureUnit * createCubicMile(UErrorCode &status)
Returns by pointer, unit of volume: cubic-mile.
static MeasureUnit * createSquareInch(UErrorCode &status)
Returns by pointer, unit of area: square-inch.
static MeasureUnit getHertz()
Returns by value, unit of frequency: hertz.
static MeasureUnit getKilobyte()
Returns by value, unit of digital: kilobyte.
static MeasureUnit getMeterPerSecond()
Returns by value, unit of speed: meter-per-second.
virtual ~MeasureUnit()
Destructor.
static MeasureUnit getMilliliter()
Returns by value, unit of volume: milliliter.
static MeasureUnit * createGram(UErrorCode &status)
Returns by pointer, unit of mass: gram.
static MeasureUnit * createMillimeterOfMercury(UErrorCode &status)
Returns by pointer, unit of pressure: millimeter-of-mercury.
static MeasureUnit * createPoundPerSquareInch(UErrorCode &status)
Returns by pointer, unit of pressure: pound-per-square-inch.
static MeasureUnit * createMicrometer(UErrorCode &status)
Returns by pointer, unit of length: micrometer.
static MeasureUnit getDay()
Returns by value, unit of duration: day.
static MeasureUnit * createDecimeter(UErrorCode &status)
Returns by pointer, unit of length: decimeter.
static MeasureUnit * createPound(UErrorCode &status)
Returns by pointer, unit of mass: pound.
static MeasureUnit * createDotPerCentimeter(UErrorCode &status)
Returns by pointer, unit of graphics: dot-per-centimeter.
static MeasureUnit * createAcre(UErrorCode &status)
Returns by pointer, unit of area: acre.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
static MeasureUnit getCubicFoot()
Returns by value, unit of volume: cubic-foot.
static MeasureUnit getPound()
Returns by value, unit of mass: pound.
static MeasureUnit getCubicMile()
Returns by value, unit of volume: cubic-mile.
static MeasureUnit getOhm()
Returns by value, unit of electric: ohm.
static MeasureUnit * createMillimeter(UErrorCode &status)
Returns by pointer, unit of length: millimeter.
const char * getType() const
Get the type.
static MeasureUnit * createGForce(UErrorCode &status)
Returns by pointer, unit of acceleration: g-force.
static MeasureUnit * createKilopascal(UErrorCode &status)
Returns by pointer, unit of pressure: kilopascal.
static MeasureUnit * createSecond(UErrorCode &status)
Returns by pointer, unit of duration: second.
static MeasureUnit * createAstronomicalUnit(UErrorCode &status)
Returns by pointer, unit of length: astronomical-unit.
static MeasureUnit getPicometer()
Returns by value, unit of length: picometer.
static MeasureUnit getFathom()
Returns by value, unit of length: fathom.
static MeasureUnit getMonth()
Returns by value, unit of duration: month.
static MeasureUnit getCentury()
Returns by value, unit of duration: century.
static MeasureUnit * createCentiliter(UErrorCode &status)
Returns by pointer, unit of volume: centiliter.
static MeasureUnit getCubicInch()
Returns by value, unit of volume: cubic-inch.
static MeasureUnit * createPartPerMillion(UErrorCode &status)
Returns by pointer, unit of concentr: part-per-million.
static MeasureUnit * createKilowatt(UErrorCode &status)
Returns by pointer, unit of power: kilowatt.
static MeasureUnit getYear()
Returns by value, unit of duration: year.
static int32_t getIndexCount()
ICU use only.
static MeasureUnit * createPixel(UErrorCode &status)
Returns by pointer, unit of graphics: pixel.
static MeasureUnit * createMillisecond(UErrorCode &status)
Returns by pointer, unit of duration: millisecond.
static MeasureUnit * createPoundFoot(UErrorCode &status)
Returns by pointer, unit of torque: pound-foot.
static MeasureUnit getPoundPerSquareInch()
Returns by value, unit of pressure: pound-per-square-inch.
static MeasureUnit getInchHg()
Returns by value, unit of pressure: inch-hg.
static MeasureUnit * createFoodcalorie(UErrorCode &status)
Returns by pointer, unit of energy: foodcalorie.
static MeasureUnit getLiterPer100Kilometers()
Returns by value, unit of consumption: liter-per-100kilometers.
static MeasureUnit getAmpere()
Returns by value, unit of electric: ampere.
static MeasureUnit * createNewtonMeter(UErrorCode &status)
Returns by pointer, unit of torque: newton-meter.
static MeasureUnit getTablespoon()
Returns by value, unit of volume: tablespoon.
static MeasureUnit getCup()
Returns by value, unit of volume: cup.
static MeasureUnit * createBar(UErrorCode &status)
Returns by pointer, unit of pressure: bar.
static MeasureUnit * createNanosecond(UErrorCode &status)
Returns by pointer, unit of duration: nanosecond.
static MeasureUnit * createByte(UErrorCode &status)
Returns by pointer, unit of digital: byte.
static MeasureUnit * createKilocalorie(UErrorCode &status)
Returns by pointer, unit of energy: kilocalorie.
static MeasureUnit getPercent()
Returns by value, unit of concentr: percent.
static MeasureUnit getRevolutionAngle()
Returns by value, unit of angle: revolution.
static MeasureUnit getSecond()
Returns by value, unit of duration: second.
static MeasureUnit * createTerabyte(UErrorCode &status)
Returns by pointer, unit of digital: terabyte.
static MeasureUnit * createTeaspoon(UErrorCode &status)
Returns by pointer, unit of volume: teaspoon.
static MeasureUnit * createFathom(UErrorCode &status)
Returns by pointer, unit of length: fathom.
static MeasureUnit getQuart()
Returns by value, unit of volume: quart.
static MeasureUnit * createMilligramPerDeciliter(UErrorCode &status)
Returns by pointer, unit of concentr: milligram-per-deciliter.
static MeasureUnit * createCubicKilometer(UErrorCode &status)
Returns by pointer, unit of volume: cubic-kilometer.
static MeasureUnit * createAmpere(UErrorCode &status)
Returns by pointer, unit of electric: ampere.
static MeasureUnit * createCubicInch(UErrorCode &status)
Returns by pointer, unit of volume: cubic-inch.
static MeasureUnit * createCubicCentimeter(UErrorCode &status)
Returns by pointer, unit of volume: cubic-centimeter.
static MeasureUnit getBar()
Returns by value, unit of pressure: bar.
static MeasureUnit getElectronvolt()
Returns by value, unit of energy: electronvolt.
static MeasureUnit getKelvin()
Returns by value, unit of temperature: kelvin.
static MeasureUnit * createKnot(UErrorCode &status)
Returns by pointer, unit of speed: knot.
static MeasureUnit * createSolarLuminosity(UErrorCode &status)
Returns by pointer, unit of light: solar-luminosity.
static MeasureUnit getEm()
Returns by value, unit of graphics: em.
static MeasureUnit * createInch(UErrorCode &status)
Returns by pointer, unit of length: inch.
static MeasureUnit * createLiterPerKilometer(UErrorCode &status)
Returns by pointer, unit of consumption: liter-per-kilometer.
static MeasureUnit * createKilogram(UErrorCode &status)
Returns by pointer, unit of mass: kilogram.
static MeasureUnit * createDalton(UErrorCode &status)
Returns by pointer, unit of mass: dalton.
static MeasureUnit * createYearPerson(UErrorCode &status)
Returns by pointer, unit of duration: year-person.
static MeasureUnit * createNauticalMile(UErrorCode &status)
Returns by pointer, unit of length: nautical-mile.
static MeasureUnit * createMillimolePerLiter(UErrorCode &status)
Returns by pointer, unit of concentr: millimole-per-liter.
static MeasureUnit * createSquareMile(UErrorCode &status)
Returns by pointer, unit of area: square-mile.
static MeasureUnit getKilometerPerHour()
Returns by value, unit of speed: kilometer-per-hour.
static MeasureUnit getCubicMeter()
Returns by value, unit of volume: cubic-meter.
static MeasureUnit getCubicCentimeter()
Returns by value, unit of volume: cubic-centimeter.
static MeasureUnit getGallon()
Returns by value, unit of volume: gallon.
void initTime(const char *timeId)
For ICU use only.
static MeasureUnit * createMicrogram(UErrorCode &status)
Returns by pointer, unit of mass: microgram.
static MeasureUnit * createTon(UErrorCode &status)
Returns by pointer, unit of mass: ton.
UBool operator!=(const UObject &other) const
Inequality operator.
Definition: measunit.h:87
static MeasureUnit getKnot()
Returns by value, unit of speed: knot.
static MeasureUnit getFoot()
Returns by value, unit of length: foot.
static MeasureUnit getMicrometer()
Returns by value, unit of length: micrometer.
static MeasureUnit getAcre()
Returns by value, unit of area: acre.
static MeasureUnit * createMilePerGallon(UErrorCode &status)
Returns by pointer, unit of consumption: mile-per-gallon.
static MeasureUnit getNewton()
Returns by value, unit of force: newton.
static MeasureUnit * createPoint(UErrorCode &status)
Returns by pointer, unit of length: point.
static MeasureUnit * createMegahertz(UErrorCode &status)
Returns by pointer, unit of frequency: megahertz.
static MeasureUnit * createPicometer(UErrorCode &status)
Returns by pointer, unit of length: picometer.
static MeasureUnit getPint()
Returns by value, unit of volume: pint.
static MeasureUnit * createMegapixel(UErrorCode &status)
Returns by pointer, unit of graphics: megapixel.
static MeasureUnit getGForce()
Returns by value, unit of acceleration: g-force.
static MeasureUnit getGallonImperial()
Returns by value, unit of volume: gallon-imperial.
static MeasureUnit getArcSecond()
Returns by value, unit of angle: arc-second.
static MeasureUnit getMeter()
Returns by value, unit of length: meter.
static MeasureUnit getMeterPerSecondSquared()
Returns by value, unit of acceleration: meter-per-second-squared.
static MeasureUnit * createFurlong(UErrorCode &status)
Returns by pointer, unit of length: furlong.
static MeasureUnit * createCupMetric(UErrorCode &status)
Returns by pointer, unit of volume: cup-metric.
static MeasureUnit getCelsius()
Returns by value, unit of temperature: celsius.
static MeasureUnit getDecimeter()
Returns by value, unit of length: decimeter.
static MeasureUnit * createCentury(UErrorCode &status)
Returns by pointer, unit of duration: century.
static MeasureUnit getHorsepower()
Returns by value, unit of power: horsepower.
static MeasureUnit * createPoundForce(UErrorCode &status)
Returns by pointer, unit of force: pound-force.
static MeasureUnit * createArcSecond(UErrorCode &status)
Returns by pointer, unit of angle: arc-second.
static MeasureUnit getMetricTon()
Returns by value, unit of mass: metric-ton.
static MeasureUnit * createHectoliter(UErrorCode &status)
Returns by pointer, unit of volume: hectoliter.
static MeasureUnit getSolarMass()
Returns by value, unit of mass: solar-mass.
static MeasureUnit getSquareCentimeter()
Returns by value, unit of area: square-centimeter.
static MeasureUnit getKilojoule()
Returns by value, unit of energy: kilojoule.
static MeasureUnit getThermUs()
Returns by value, unit of energy: therm-us.
static MeasureUnit * createMilePerHour(UErrorCode &status)
Returns by pointer, unit of speed: mile-per-hour.
static MeasureUnit getCubicKilometer()
Returns by value, unit of volume: cubic-kilometer.
static MeasureUnit * createFluidOunce(UErrorCode &status)
Returns by pointer, unit of volume: fluid-ounce.
static MeasureUnit getDotPerInch()
Returns by value, unit of graphics: dot-per-inch.
static MeasureUnit * createMegaliter(UErrorCode &status)
Returns by pointer, unit of volume: megaliter.
static MeasureUnit getWeek()
Returns by value, unit of duration: week.
static MeasureUnit getSquareMile()
Returns by value, unit of area: square-mile.
static MeasureUnit getDecade()
Returns by value, unit of duration: decade.
static MeasureUnit * createKilometer(UErrorCode &status)
Returns by pointer, unit of length: kilometer.
static MeasureUnit * createMegawatt(UErrorCode &status)
Returns by pointer, unit of power: megawatt.
Base class for 'pure' C++ implementations of uenum api.
Definition: strenum.h:61
UObject is the common ICU "boilerplate" class.
Definition: uobject.h:223
int8_t UBool
The ICU boolean type.
Definition: umachine.h:261
C++ API: Unicode String.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
Definition: uobject.h:96
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Definition: utypes.h:415
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
Definition: utypes.h:301