Home | History | Annotate | Download | only in i18n

Lines Matching full:formattable

33 // class Formattable
38 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
70 * Creates a new Formattable array and copies the values from the specified
74 * @return the new Formattable array.
76 static Formattable* createArrayCopy(const Formattable* array, int32_t count) {
77 Formattable *result = new Formattable[count];
100 void Formattable::init() {
110 // Creates a formattable object with a long value 0.
112 Formattable::Formattable() {
117 // Creates a formattable object with a Date instance.
119 Formattable::Formattable(UDate date, ISDATE /*isDate*/)
127 // Creates a formattable object with a double value.
129 Formattable::Formattable(double value)
137 // Creates a formattable object with an int32_t value.
139 Formattable::Formattable(int32_t value)
146 // Creates a formattable object with an int64_t value.
148 Formattable::Formattable(int64_t value)
156 // Creates a formattable object with a decimal number value from a string.
158 Formattable::Formattable(const StringPiece &number, UErrorCode &status) {
165 // Creates a formattable object with a UnicodeString instance.
167 Formattable::Formattable(const UnicodeString& stringToCopy)
175 // Creates a formattable object with a UnicodeString* value.
178 Formattable::Formattable(UnicodeString* stringToAdopt)
185 Formattable::Formattable(UObject* objectToAdopt)
194 Formattable::Formattable(const Formattable* arrayToCopy, int32_t count)
207 Formattable::Formattable(const Formattable &source)
217 Formattable&
218 Formattable::operator=(const Formattable& source)
222 // Disposes the current formattable value/setting.
275 Formattable::operator==(const Formattable& that) const
328 Formattable::~Formattable()
335 void Formattable::dispose()
367 Formattable *
368 Formattable::clone() const {
369 return new Formattable(*this);
373 // Gets the data type of this Formattable object.
374 Formattable::Type
375 Formattable::getType() const
381 Formattable::isNumeric() const {
394 //Formattable::getLong(UErrorCode* status) const
395 Formattable::getLong(UErrorCode& status) const
402 case Formattable::kLong:
404 case Formattable::kInt64:
414 case Formattable::kDouble:
424 case Formattable::kObject:
448 Formattable::getInt64(UErrorCode& status) const
455 case Formattable::kLong:
456 case Formattable::kInt64:
458 case Formattable::kDouble:
476 case Formattable::kObject:
493 Formattable::getDouble(UErrorCode& status) const
500 case Formattable::kLong:
501 case Formattable::kInt64: // loses precision
503 case Formattable::kDouble:
505 case Formattable::kObject:
522 Formattable::getObject() const {
530 Formattable::setDouble(double d)
541 Formattable::setLong(int32_t l)
552 Formattable::setInt64(int64_t ll)
563 Formattable::setDate(UDate d)
574 Formattable::setString(const UnicodeString& stringToCopy)
582 // Sets the value to an array of Formattable objects.
585 Formattable::setArray(const Formattable* array, int32_t count)
597 Formattable::adoptString(UnicodeString* stringToAdopt)
608 Formattable::adoptArray(Formattable* array, int32_t count)
617 Formattable::adoptObject(UObject* objectToAdopt) {
625 Formattable::getString(UnicodeString& result, UErrorCode& status) const
642 Formattable::getString(UErrorCode& status) const
657 Formattable::getString(UErrorCode& status)
671 const Formattable*
672 Formattable::getArray(int32_t& count, UErrorCode& status) const
687 Formattable::getBogus() const
694 StringPiece Formattable::getDecimalNumber(UErrorCode &status) {
710 CharString *Formattable::internalGetCharString(UErrorCode &status) {
713 // No decimal number for the formattable yet. Which means the value was
735 // The formattable's value is not a numeric type.
753 Formattable::getInternalDigitList() {
766 Formattable::adoptDigitList(DigitList *dl) {
796 Formattable::setDecimalNumber(const StringPiece &numberString, UErrorCode &status) {
836 static void streamOut(ostream& stream, const Formattable& obj);
843 // form of the Formattable object to the output stream.
846 FormattableStreamer::streamOut(ostream& stream, const Formattable& obj)
852 case Formattable::kDate :
861 case Formattable::kDouble :
865 case Formattable::kLong :
869 case Formattable::kString:
874 case Formattable::kArray:
876 const Formattable* array;
887 // Not a recognizable Formattable object.
907 UFormattable *fmt = (new Formattable())->toUFormattable();
917 Formattable *obj = Formattable::fromUFormattable(fmt);
927 const Formattable *obj = Formattable::fromUFormattable(fmt);
934 const Formattable *obj = Formattable::fromUFormattable(fmt);
940 const Formattable *obj = Formattable::fromUFormattable(fmt);
947 Formattable *obj = Formattable::fromUFormattable(fmt);
954 Formattable *obj = Formattable::fromUFormattable(fmt);
962 const Formattable *obj = Formattable::fromUFormattable(fmt);
966 (obj->getType() != Formattable::kObject) &&
975 Formattable *obj = Formattable::fromUFormattable(fmt);
978 if( obj->getType() != Formattable::kString ) {
995 const Formattable *obj = Formattable::fromUFormattable(fmt);
1004 Formattable *obj = Formattable::fromUFormattable(fmt);
1013 return (*obj)[n].toUFormattable(); // returns non-const Formattable
1022 Formattable *obj = Formattable::fromUFormattable(fmt);
1040 Formattable *obj = Formattable::fromUFormattable(fmt);