22 #if U_SHOW_CPLUSPLUS_API 29 #if !UCONFIG_NO_FORMATTING 39 namespace number::impl {
40 class DecimalQuantity;
111 #if !UCONFIG_NO_CONVERSION 276 Type getType()
const;
284 UBool isNumeric()
const;
314 int32_t
getLong()
const {
return static_cast<int32_t
>(fValue.fInt64); }
385 { result=*fValue.fString;
return result; }
443 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
472 const UObject* getObject()
const;
500 void setDouble(
double d);
508 void setLong(int32_t l);
516 void setInt64(int64_t ll);
524 void setDate(
UDate d);
541 void setArray(
const Formattable* array, int32_t count);
556 void adoptArray(
Formattable* array, int32_t count);
565 void adoptObject(
UObject* objectToAdopt);
596 static UClassID U_EXPORT2 getStaticClassID();
632 #ifndef U_HIDE_DEPRECATED_API 639 inline int32_t getLong(
UErrorCode* status)
const;
642 #ifndef U_HIDE_INTERNAL_API 657 void populateDecimalQuantity(number::impl::DecimalQuantity& output,
UErrorCode& status)
const;
665 void adoptDecimalQuantity(number::impl::DecimalQuantity *dq);
673 CharString *internalGetCharString(
UErrorCode &status);
703 CharString *fDecimalStr;
705 number::impl::DecimalQuantity *fDecimalQuantity;
708 UnicodeString fBogus;
712 if (fType != kDate) {
722 return *fValue.fString;
726 return *fValue.fString;
729 #ifndef U_HIDE_DEPRECATED_API 730 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
731 return getLong(*status);
#define U_SUCCESS(x)
Does the error code indicate success?
double UDate
Date and Time data type.
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...
C++ API: StringPiece: Read-only byte string wrapper class.
Data format is not what is expected.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
UErrorCode
Standard ICU4C error code type, a substitute for exceptions.
Basic definitions for ICU, for both C and C++ APIs.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
A string-like object that points to a sized piece of memory.
UObject is the common ICU "boilerplate" class.
int8_t UBool
The ICU boolean type, a signed-byte integer.