18#if U_SHOW_CPLUSPLUS_API
25#if !UCONFIG_NO_FORMATTING
"Smart pointer" base class; do not use directly: use LocalPointer etc.
A unit such as length, mass, volume, currency, etc.
An amount of a specified unit, consisting of a number and a Unit.
virtual Measure * clone() const
Return a polymorphic clone of this object.
static UClassID getStaticClassID()
Return the class ID for this class.
Measure(const Formattable &number, MeasureUnit *adoptedUnit, UErrorCode &ec)
Construct an object with the given numeric amount and the given unit.
bool operator!=(const UObject &other) const
Inequality operator.
virtual ~Measure()
Destructor.
Measure()
Default constructor.
Measure & operator=(const Measure &other)
Assignment operator.
Measure(const Measure &other)
Copy constructor.
bool operator==(const UObject &other) const
Equality operator.
virtual UClassID getDynamicClassID() const override
Returns a unique class ID POLYMORPHICALLY.
UObject is the common ICU "boilerplate" class.
C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing.
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.
Basic definitions for ICU, for both C and C++ APIs.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.