Lines Matching refs:Formattable
32 // class Formattable
37 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
69 * Creates a new Formattable array and copies the values from the specified
73 * @return the new Formattable array.
75 static Formattable* createArrayCopy(const Formattable* array, int32_t count) {
76 Formattable *result = new Formattable[count];
99 void Formattable::init() {
109 // Creates a formattable object with a long value 0.
111 Formattable::Formattable() {
116 // Creates a formattable object with a Date instance.
118 Formattable::Formattable(UDate date, ISDATE /*isDate*/)
126 // Creates a formattable object with a double value.
128 Formattable::Formattable(double value)
136 // Creates a formattable object with an int32_t value.
138 Formattable::Formattable(int32_t value)
145 // Creates a formattable object with an int64_t value.
147 Formattable::Formattable(int64_t value)
155 // Creates a formattable object with a decimal number value from a string.
157 Formattable::Formattable(const StringPiece &number, UErrorCode &status) {
164 // Creates a formattable object with a UnicodeString instance.
166 Formattable::Formattable(const UnicodeString& stringToCopy)
174 // Creates a formattable object with a UnicodeString* value.
177 Formattable::Formattable(UnicodeString* stringToAdopt)
184 Formattable::Formattable(UObject* objectToAdopt)
193 Formattable::Formattable(const Formattable* arrayToCopy, int32_t count)
206 Formattable::Formattable(const Formattable &source)
216 Formattable&
217 Formattable::operator=(const Formattable& source)
221 // Disposes the current formattable value/setting.
274 Formattable::operator==(const Formattable& that) const
327 Formattable::~Formattable()
334 void Formattable::dispose()
366 Formattable *
367 Formattable::clone() const {
368 return new Formattable(*this);
372 // Gets the data type of this Formattable object.
373 Formattable::Type
374 Formattable::getType() const
380 Formattable::isNumeric() const {
393 //Formattable::getLong(UErrorCode* status) const
394 Formattable::getLong(UErrorCode& status) const
401 case Formattable::kLong:
403 case Formattable::kInt64:
413 case Formattable::kDouble:
423 case Formattable::kObject:
447 Formattable::getInt64(UErrorCode& status) const
454 case Formattable::kLong:
455 case Formattable::kInt64:
457 case Formattable::kDouble:
475 case Formattable::kObject:
492 Formattable::getDouble(UErrorCode& status) const
499 case Formattable::kLong:
500 case Formattable::kInt64: // loses precision
502 case Formattable::kDouble:
504 case Formattable::kObject:
521 Formattable::getObject() const {
529 Formattable::setDouble(double d)
540 Formattable::setLong(int32_t l)
551 Formattable::setInt64(int64_t ll)
562 Formattable::setDate(UDate d)
573 Formattable::setString(const UnicodeString& stringToCopy)
581 // Sets the value to an array of Formattable objects.
584 Formattable::setArray(const Formattable* array, int32_t count)
596 Formattable::adoptString(UnicodeString* stringToAdopt)
607 Formattable::adoptArray(Formattable* array, int32_t count)
616 Formattable::adoptObject(UObject* objectToAdopt) {
624 Formattable::getString(UnicodeString& result, UErrorCode& status) const
641 Formattable::getString(UErrorCode& status) const
656 Formattable::getString(UErrorCode& status)
670 const Formattable*
671 Formattable::getArray(int32_t& count, UErrorCode& status) const
686 Formattable::getBogus() const
693 StringPiece Formattable::getDecimalNumber(UErrorCode &status) {
702 // No decimal number for the formattable yet. Which means the value was
724 // The formattable's value is not a numeric type.
742 Formattable::getInternalDigitList() {
755 Formattable::adoptDigitList(DigitList *dl) {
785 Formattable::setDecimalNumber(const StringPiece &numberString, UErrorCode &status) {
825 static void streamOut(ostream& stream, const Formattable& obj);
832 // form of the Formattable object to the output stream.
835 FormattableStreamer::streamOut(ostream& stream, const Formattable& obj)
841 case Formattable::kDate :
850 case Formattable::kDouble :
854 case Formattable::kLong :
858 case Formattable::kString:
863 case Formattable::kArray:
865 const Formattable* array;
876 // Not a recognizable Formattable object.