27 #if !UCONFIG_NO_FORMATTING 38 class DecimalQuantity;
110 #if !UCONFIG_NO_CONVERSION 275 Type getType(
void)
const;
283 UBool isNumeric()
const;
313 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
339 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
384 { result=*fValue.fString;
return result; }
442 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
471 const UObject* getObject()
const;
499 void setDouble(
double d);
507 void setLong(int32_t l);
515 void setInt64(int64_t ll);
523 void setDate(
UDate d);
540 void setArray(
const Formattable* array, int32_t count);
555 void adoptArray(
Formattable* array, int32_t count);
564 void adoptObject(
UObject* objectToAdopt);
588 virtual UClassID getDynamicClassID()
const;
595 static UClassID U_EXPORT2 getStaticClassID();
631 #ifndef U_HIDE_DEPRECATED_API 638 inline int32_t getLong(
UErrorCode* status)
const;
641 #ifndef U_HIDE_INTERNAL_API 656 void populateDecimalQuantity(number::impl::DecimalQuantity& output,
UErrorCode& status)
const;
664 void adoptDecimalQuantity(number::impl::DecimalQuantity *dq);
672 CharString *internalGetCharString(
UErrorCode &status);
702 CharString *fDecimalStr;
704 number::impl::DecimalQuantity *fDecimalQuantity;
711 if (fType != kDate) {
721 return *fValue.fString;
725 return *fValue.fString;
728 #ifndef U_HIDE_DEPRECATED_API 729 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
730 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.
#define U_NAMESPACE_BEGIN
This is used to begin a declaration of a public ICU C++ API.
Data format is not what is expected.
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UErrorCode
Error code to replace exception handling, so that the code is compatible with all C++ compilers...
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.