Go to the documentation of this file.
21 #if U_SHOW_CPLUSPLUS_API
25 #if !UCONFIG_NO_FORMATTING
49 #ifndef U_HIDE_DEPRECATED_API
55 #endif // U_HIDE_DEPRECATED_API
68 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField,
114 UTimeUnitFields getTimeUnitField()
const;
123 UTimeUnitFields fTimeUnitField;
129 TimeUnit(UTimeUnitFields timeUnitField);
140 #endif // __TMUNIT_H__
A unit such as length, mass, volume, currency, etc.
Basic definitions for ICU, for both C and C++ APIs.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Measurement unit for time units.
MeasureUnit & operator=(const MeasureUnit &other)
Copy assignment operator.
static UClassID getStaticClassID(void)
Return the class ID for this class.
UTimeUnitFields
Constants for all the time units we supported.
C++ API: A unit for measuring a quantity.