20 #if !UCONFIG_NO_FORMATTING
57 static TimeUnit* U_EXPORT2 createInstance(UTimeUnitFields timeUnitField,
109 static UClassID U_EXPORT2 getStaticClassID();
117 UTimeUnitFields getTimeUnitField()
const;
126 UTimeUnitFields fTimeUnitField;
132 TimeUnit(UTimeUnitFields timeUnitField);
147 #endif // __TMUNIT_H__
UTimeUnitFields
Constants for all the time units we supported.
A unit such as length, mass, volume, currency, etc.
virtual UObject * clone() const =0
Return a polymorphic clone of this object.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
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...
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Measurement unit for time units.
C++ API: A unit for measuring a quantity.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
virtual UBool operator==(const UObject &other) const =0
Equality operator.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type.