22 #if U_SHOW_CPLUSPLUS_API
29 #if !UCONFIG_NO_FORMATTING
39 namespace number::impl {
40 class DecimalQuantity;
111 #if !UCONFIG_NO_CONVERSION
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; }
632 #ifndef U_HIDE_DEPRECATED_API
639 inline int32_t getLong(
UErrorCode* status)
const;
642 #ifndef U_HIDE_INTERNAL_API
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);
A string-like object that points to a sized piece of memory.
UObject is the common ICU "boilerplate" class.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
C++ API: StringPiece: Read-only byte string wrapper class.
int8_t UBool
The ICU boolean type, a signed-byte integer.
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.
@ U_INVALID_FORMAT_ERROR
Data format is not what is expected.
#define U_SUCCESS(x)
Does the error code indicate success?
#define U_I18N_API
Set to export library symbols from inside the i18n library, and to import them from outside.
double UDate
Date and Time data type.