27 #if !UCONFIG_NO_FORMATTING 42 #if U_PLATFORM == U_PF_OS400 43 #define UNUM_INTERNAL_STACKARRAY_SIZE 144 45 #define UNUM_INTERNAL_STACKARRAY_SIZE 128 116 #if !UCONFIG_NO_CONVERSION 281 Type getType(
void)
const;
289 UBool isNumeric()
const;
319 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
345 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
390 { result=*fValue.fString;
return result; }
448 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
477 const UObject* getObject()
const;
505 void setDouble(
double d);
513 void setLong(int32_t l);
521 void setInt64(int64_t ll);
529 void setDate(
UDate d);
546 void setArray(
const Formattable* array, int32_t count);
561 void adoptArray(
Formattable* array, int32_t count);
570 void adoptObject(
UObject* objectToAdopt);
601 static UClassID U_EXPORT2 getStaticClassID();
637 #ifndef U_HIDE_DEPRECATED_API 644 inline int32_t getLong(
UErrorCode* status)
const;
647 #ifndef U_HIDE_INTERNAL_API 661 DigitList *getInternalDigitList();
669 void adoptDigitList(DigitList *dl);
677 CharString *internalGetCharString(
UErrorCode &status);
707 CharString *fDecimalStr;
709 DigitList *fDecimalNum;
714 UnicodeString fBogus;
718 if (fType != kDate) {
728 return *fValue.fString;
732 return *fValue.fString;
735 #ifndef U_HIDE_DEPRECATED_API 736 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
737 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 UNUM_INTERNAL_STACKARRAY_SIZE
#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.
virtual UClassID getDynamicClassID() const
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
#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.