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);