27 #if !UCONFIG_NO_FORMATTING
34 #ifndef U_HIDE_INTERNAL_API
39 #if U_PLATFORM == U_PF_OS400
40 #define UNUM_INTERNAL_STACKARRAY_SIZE 144
42 #define UNUM_INTERNAL_STACKARRAY_SIZE 128
112 #if !UCONFIG_NO_CONVERSION
277 Type getType(
void)
const;
285 UBool isNumeric()
const;
315 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
341 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
386 { result=*fValue.fString;
return result; }
444 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
473 const UObject* getObject()
const;
501 void setDouble(
double d);
509 void setLong(int32_t l);
517 void setInt64(int64_t ll);
525 void setDate(
UDate d);
542 void setArray(
const Formattable* array, int32_t count);
557 void adoptArray(
Formattable* array, int32_t count);
566 void adoptObject(
UObject* objectToAdopt);
582 void setDecimalNumber(
const StringPiece &numberString,
597 static UClassID U_EXPORT2 getStaticClassID();
599 #ifndef U_HIDE_DEPRECATED_API
606 inline int32_t getLong(
UErrorCode* status)
const;
609 #ifndef U_HIDE_INTERNAL_API
623 DigitList *getInternalDigitList();
631 void adoptDigitList(DigitList *dl);
660 CharString *fDecimalStr;
662 DigitList *fDecimalNum;
667 UnicodeString fBogus;
671 if (fType != kDate) {
681 return *fValue.fString;
685 return *fValue.fString;
688 inline int32_t Formattable::getLong(
UErrorCode* status)
const {
689 return getLong(*status);