27 #if !UCONFIG_NO_FORMATTING
100 #if !UCONFIG_NO_CONVERSION
265 Type getType(
void)
const;
273 UBool isNumeric()
const;
303 int32_t
getLong(
void)
const {
return (int32_t)fValue.fInt64; }
329 int64_t
getInt64(
void)
const {
return fValue.fInt64; }
374 { result=*fValue.fString;
return result; }
432 { count=fValue.fArrayAndCount.fCount;
return fValue.fArrayAndCount.fArray; }
461 const UObject* getObject()
const;
489 void setDouble(
double d);
497 void setLong(int32_t l);
505 void setInt64(int64_t ll);
513 void setDate(
UDate d);
530 void setArray(
const Formattable* array, int32_t count);
545 void adoptArray(
Formattable* array, int32_t count);
554 void adoptObject(
UObject* objectToAdopt);
570 void setDecimalNumber(
const StringPiece &numberString,
593 inline int32_t getLong(
UErrorCode* status)
const;
611 void adoptDigitList(DigitList *dl);
639 CharString *fDecimalStr;
640 DigitList *fDecimalNum;
647 if (fType !=
kDate) {
657 return *fValue.fString;
661 return *fValue.fString;
#define U_SUCCESS(x)
Does the error code indicate success?
double UDate
Date and Time data type.
A string-like object that points to a sized piece of memory.
U_EXPORT UBool operator==(const StringPiece &x, const StringPiece &y)
Global operator == for StringPiece.
#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.
UnicodeString is a string class that stores Unicode characters directly and provides similar function...
#define U_NAMESPACE_END
This is used to end a declaration of a public ICU C++ API.
UObject is the common ICU "boilerplate" class.
void * UClassID
UClassID is used to identify classes without using RTTI, since RTTI is not yet supported by all C++ c...
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.
virtual UClassID getDynamicClassID() const =0
ICU4C "poor man's RTTI", returns a UClassID for the actual ICU class.
int8_t UBool
The ICU boolean type.