20#if !UCONFIG_NO_FORMATTING
An amount of a specified unit, consisting of a number and a Unit.
Express a duration as a time unit and number.
TimeUnitAmount(const TimeUnitAmount &other)
Copy constructor.
const TimeUnit & getTimeUnit() const
Get the time unit.
virtual ~TimeUnitAmount()
Destructor.
TimeUnit::UTimeUnitFields getTimeUnitField() const
Get the time unit field value.
TimeUnitAmount(const Formattable &number, TimeUnit::UTimeUnitFields timeUnitField, UErrorCode &status)
Construct TimeUnitAmount object with the given number and the given time unit.
virtual UObject * clone() const
Clone.
TimeUnitAmount & operator=(const TimeUnitAmount &other)
Assignment operator.
UBool operator!=(const UObject &other) const
Not-equality operator.
virtual UBool operator==(const UObject &other) const
Equality operator.
static UClassID getStaticClassID(void)
Return the class ID for this class.
virtual UClassID getDynamicClassID(void) const
Returns a unique class ID POLYMORPHICALLY.
TimeUnitAmount(double amount, TimeUnit::UTimeUnitFields timeUnitField, UErrorCode &status)
Construct TimeUnitAmount object with the given numeric amount and the given time unit.
Measurement unit for time units.
UTimeUnitFields
Constants for all the time units we supported.
UObject is the common ICU "boilerplate" class.
C++ API: MeasureUnit object.
UBool operator!=(const StringPiece &x, const StringPiece &y)
Global operator != for StringPiece.
C++ API: time unit object.
int8_t UBool
The ICU boolean type.
void * UClassID
UClassID is used to identify classes without using the compiler's RTTI.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers,...
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.