Go to the documentation of this file.
21 #if U_SHOW_CPLUSPLUS_API
23 #if !UCONFIG_NO_FORMATTING
174 #endif // __TMUTAMT_H__
TimeUnitAmount & operator=(const TimeUnitAmount &other)
Assignment operator.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
Basic definitions for ICU, for both C and C++ APIs.
int8_t UBool
The ICU boolean type.
static UClassID getStaticClassID(void)
Return the class ID for this class.
virtual ~TimeUnitAmount()
Destructor.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
TimeUnitAmount(const TimeUnitAmount &other)
Copy constructor.
virtual UBool operator==(const UObject &other) const
Equality operator.
TimeUnit::UTimeUnitFields getTimeUnitField() const
Get the time unit field value.
const TimeUnit & getTimeUnit() const
Get the time unit.
UObject is the common ICU "boilerplate" class.
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.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
TimeUnitAmount(const Formattable &number, TimeUnit::UTimeUnitFields timeUnitField, UErrorCode &status)
Construct TimeUnitAmount object with the given number and the given time unit.
Express a duration as a time unit and number.
An amount of a specified unit, consisting of a number and a Unit.
virtual TimeUnitAmount * clone() const
Clone.
UTimeUnitFields
Constants for all the time units we supported.
TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField, UErrorCode &status)
Construct TimeUnitAmount object with the given numeric amount and the given time unit.
C++ API: MeasureUnit object.
C++ API: time unit object.