27 #if !UCONFIG_NO_FORMATTING
38 #if U_PLATFORM == U_PF_OS400
39 #define UNUM_INTERNAL_STACKARRAY_SIZE 144
41 #define UNUM_INTERNAL_STACKARRAY_SIZE 128
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);
580 void setDecimalNumber(
const StringPiece &numberString,
595 static UClassID U_EXPORT2 getStaticClassID();
597 #ifndef U_HIDE_DEPRECATED_API
604 inline int32_t getLong(
UErrorCode* status)
const;
607 #ifndef U_HIDE_INTERNAL_API
621 DigitList *getInternalDigitList();
629 void adoptDigitList(DigitList *dl);
658 CharString *fDecimalStr;
660 DigitList *fDecimalNum;
665 UnicodeString fBogus;
669 if (fType != kDate) {
679 return *fValue.fString;
683 return *fValue.fString;
686 #ifndef U_HIDE_DEPRECATED_API
687 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
688 return getLong(*status);
#define U_SUCCESS(x)
Does the error code indicate success?
double UDate
Date and Time data type.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
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.
#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.