25 #if !UCONFIG_NO_FORMATTING
40 #if U_PLATFORM == U_PF_OS400
41 #define UNUM_INTERNAL_STACKARRAY_SIZE 144
43 #define UNUM_INTERNAL_STACKARRAY_SIZE 128
114 #if !UCONFIG_NO_CONVERSION
279 Type getType(
void)
const;
287 UBool isNumeric()
const;
317 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
343 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
388 { result=*fValue.fString;
return result; }
446 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
475 const UObject* getObject()
const;
503 void setDouble(
double d);
511 void setLong(int32_t l);
519 void setInt64(int64_t ll);
527 void setDate(
UDate d);
544 void setArray(
const Formattable* array, int32_t count);
559 void adoptArray(
Formattable* array, int32_t count);
568 void adoptObject(
UObject* objectToAdopt);
584 void setDecimalNumber(
const StringPiece &numberString,
599 static UClassID U_EXPORT2 getStaticClassID();
601 #ifndef U_HIDE_DRAFT_API
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);
741 #ifndef U_HIDE_DRAFT_API