22 #if U_SHOW_CPLUSPLUS_API 29 #if !UCONFIG_NO_FORMATTING 40 class DecimalQuantity;
112 #if !UCONFIG_NO_CONVERSION 277 Type getType(
void)
const;
285 UBool isNumeric()
const;
315 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
341 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
386 { result=*fValue.fString;
return result; }
444 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
473 const UObject* getObject()
const;
501 void setDouble(
double d);
509 void setLong(int32_t l);
517 void setInt64(int64_t ll);
525 void setDate(
UDate d);
542 void setArray(
const Formattable* array, int32_t count);
557 void adoptArray(
Formattable* array, int32_t count);
566 void adoptObject(
UObject* objectToAdopt);
590 virtual UClassID getDynamicClassID()
const;
597 static UClassID U_EXPORT2 getStaticClassID();
633 #ifndef U_HIDE_DEPRECATED_API 640 inline int32_t getLong(
UErrorCode* status)
const;
643 #ifndef U_HIDE_INTERNAL_API 658 void populateDecimalQuantity(number::impl::DecimalQuantity& output,
UErrorCode& status)
const;
666 void adoptDecimalQuantity(number::impl::DecimalQuantity *dq);
674 CharString *internalGetCharString(
UErrorCode &status);
704 CharString *fDecimalStr;
706 number::impl::DecimalQuantity *fDecimalQuantity;
713 if (fType != kDate) {
723 return *fValue.fString;
727 return *fValue.fString;
730 #ifndef U_HIDE_DEPRECATED_API 731 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
732 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.
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.