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__
virtual MeasureUnit * clone() const
Returns a polymorphic clone of this object.
UTimeUnitFields
Constants for all the time units we supported.
A unit such as length, mass, volume, currency, etc.
MeasureUnit & operator=(const MeasureUnit &other)
Copy assignment operator.
static UClassID getStaticClassID(void)
Return the class ID for this class.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside...
Measurement unit for time units.
C++ API: A unit for measuring a quantity.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.