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,
76 virtual TimeUnit* clone()
const override;
98 virtual UClassID getDynamicClassID()
const override;
106 static UClassID U_EXPORT2 getStaticClassID();
114 UTimeUnitFields getTimeUnitField()
const;
123 UTimeUnitFields fTimeUnitField;
128 TimeUnit(UTimeUnitFields timeUnitField);
139 #endif // __TMUNIT_H__ UTimeUnitFields
Constants for all the time units we supported.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
#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.