/external/chromium_org/third_party/icu/source/test/intltest/ |
nmfmtrt.h | 41 void test(NumberFormat *fmt, const Formattable& value); 44 static double proportionalError(const Formattable& a, const Formattable& b); 45 static UnicodeString& typeOf(const Formattable& n, UnicodeString& result); 49 isDouble(const Formattable& n) 50 { return (n.getType() == Formattable::kDouble); } 53 isLong(const Formattable& n) 54 { return (n.getType() == Formattable::kLong); }
|
tfsmalls.cpp | 167 Formattable* ftp = new Formattable(); 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { 169 it_errln("*** Formattable constructor or getType or getLong"); 173 Formattable fta, ftb; 185 it_errln("*** Formattable setLong or operator== or !="); 195 if ((fta.getType() == Formattable::kDouble) && (fta.getDouble() == 3.0)) { 206 if ((fta.getType() == Formattable::kDate) && (fta.getDate() == 4.0)) { 226 const Formattable ftc(fta); 231 t = (fta.getType() == Formattable::kString) [all...] |
numfmtst.h | 155 static UBool equalValue(const Formattable& a, const Formattable& b); 163 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 165 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 167 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { 171 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 173 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { 177 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 179 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { 183 void expect(NumberFormat& fmt, const Formattable& n [all...] |
tfsmalls.h | 22 * Formattable in test_Formattable().
|
tmsgfmt.cpp | 134 Formattable result; 194 std::ostream& operator<<(std::ostream& stream, const Formattable& obj); 197 ostream& operator<<(ostream& stream, const Formattable& obj); 206 const Formattable& obj) 212 case Formattable::kDate : 219 case Formattable::kDouble : 224 case Formattable::kLong : 227 case Formattable::kString: 230 case Formattable::kArray: 232 const Formattable* array [all...] |
msfmrgts.cpp | 100 Formattable params [] = { 101 Formattable(UnicodeString("BUG")), 102 Formattable(0, Formattable::kIsDate) 116 // do we want to verify that the Formattable* array is not NULL, 190 Formattable params []= { 191 Formattable((int32_t)7) 201 Formattable *objs = messageFormatter->parse(tempBuffer, pp, count); 211 Formattable obj = objs[i]; 213 if(obj.getType() == Formattable::kString [all...] |
tufmtts.cpp | 68 Formattable formattable; local 69 formattable.adoptObject(source); 70 formatted = ((Format*)formats[style])->format(formattable, formatted, status); 77 Formattable result; 80 if (result != formattable) { 84 Formattable result_1; 87 if (result_1 != formattable) { 126 Formattable formattable((int32_t)2) [all...] |
/external/icu/icu4c/source/test/intltest/ |
nmfmtrt.h | 41 void test(NumberFormat *fmt, const Formattable& value); 44 static double proportionalError(const Formattable& a, const Formattable& b); 45 static UnicodeString& typeOf(const Formattable& n, UnicodeString& result); 49 isDouble(const Formattable& n) 50 { return (n.getType() == Formattable::kDouble); } 53 isLong(const Formattable& n) 54 { return (n.getType() == Formattable::kLong); }
|
tfsmalls.cpp | 167 Formattable* ftp = new Formattable(); 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { 169 it_errln("*** Formattable constructor or getType or getLong"); 173 Formattable fta, ftb; 185 it_errln("*** Formattable setLong or operator== or !="); 195 if ((fta.getType() == Formattable::kDouble) && (fta.getDouble() == 3.0)) { 206 if ((fta.getType() == Formattable::kDate) && (fta.getDate() == 4.0)) { 226 const Formattable ftc(fta); 231 t = (fta.getType() == Formattable::kString) [all...] |
numfmtst.h | 186 UBool testFormattableAsUFormattable(const char *file, int line, Formattable &f); 190 static UBool equalValue(const Formattable& a, const Formattable& b); 198 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 200 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 202 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { 206 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 208 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { 212 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 214 void expect(NumberFormat& fmt, const char *str, const Formattable& n) [all...] |
tfsmalls.h | 22 * Formattable in test_Formattable().
|
tmsgfmt.cpp | 141 Formattable result; 200 std::ostream& operator<<(std::ostream& stream, const Formattable& obj); 208 const Formattable& obj) 214 case Formattable::kDate : 221 case Formattable::kDouble : 226 case Formattable::kLong : 229 case Formattable::kString: 232 case Formattable::kArray: 234 const Formattable* array; 250 Formattable testArgs[] = [all...] |
msfmrgts.cpp | 97 Formattable params [] = { 98 Formattable(UnicodeString("BUG")), 99 Formattable(0, Formattable::kIsDate) 113 // do we want to verify that the Formattable* array is not NULL, 192 Formattable params []= { 193 Formattable((int32_t)7) 203 Formattable *objs = messageFormatter->parse(tempBuffer, pp, count); 213 Formattable obj = objs[i]; 215 if(obj.getType() == Formattable::kString [all...] |
/external/icu/icu4c/source/i18n/ |
fmtable.cpp | 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 [all...] |
fmtable_cnv.cpp | 23 // class Formattable 29 // Creates a formattable object with a char* string. 33 Formattable::Formattable(const char* stringToCopy)
|
curramt.cpp | 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode, 27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
|
/external/chromium_org/third_party/icu/source/i18n/ |
fmtable_cnv.cpp | 23 // class Formattable 29 // Creates a formattable object with a char* string. 33 Formattable::Formattable(const char* stringToCopy)
|
fmtable.cpp | 31 // class Formattable 36 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable) 66 * Creates a new Formattable array and copies the values from the specified 70 * @return the new Formattable array. 72 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { 73 Formattable *result = new Formattable[count]; 96 void Formattable::init() { 106 // Creates a formattable object with a long value 0 [all...] |
curramt.cpp | 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode, 27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
|
/external/icu/icu4c/source/samples/numfmt/ |
util.h | 19 // Create a display string for a formattable 20 UnicodeString formattableToString(const Formattable& f);
|
util.cpp | 79 // Create a display string for a formattable 80 UnicodeString formattableToString(const Formattable& f) { 82 case Formattable::kDate: 85 case Formattable::kDouble: 91 case Formattable::kLong: 92 case Formattable::kInt64: 98 case Formattable::kString: 100 case Formattable::kArray: 103 const Formattable* array = f.getArray(count);
|
/external/icu/icu4c/source/i18n/unicode/ |
fmtable.h | 22 * \brief C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing 47 * Formattable objects can be passed to the Format class or 48 * its subclasses for formatting. Formattable is a thin wrapper 52 * <p>Internally, a Formattable object is a union of primitive types. 56 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer, 58 * encapsulated in a Formattable. For legacy reasons and for 60 * within a Formattable. 62 * <p>The Formattable class is not suitable for subclassing. 66 class U_I18N_API Formattable : public UObject { 70 * the Formattable(UDate) constructor and the Formattable(double [all...] |
uformattable.h | 20 * This is a C interface to the icu::Formattable class. Static functions on this class convert 43 * @see icu::Formattable::Type 61 * @see icu::Formattable 74 * @see icu::Formattable::Formattable() 114 * @see icu::Formattable::getType() const 125 * @see icu::Formattable::isNumeric() const 139 * @see icu::Formattable::getDate(UErrorCode&) const 157 * @see icu::Formattable::getDouble(UErrorCode&) const 178 * @see icu::Formattable::getLong(UErrorCode&) cons [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
fmtable.h | 24 * \brief C++ API: Formattable is a thin wrapper for primitive numeric types. 35 * Formattable objects can be passed to the Format class or 36 * its subclasses for formatting. Formattable is a thin wrapper 40 * <p>Internally, a Formattable object is a union of primitive types. 44 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer, 46 * encapsulated in a Formattable. For legacy reasons and for 48 * within a Formattable. 50 * <p>The Formattable class is not suitable for subclassing. 52 class U_I18N_API Formattable : public UObject { 56 * the Formattable(UDate) constructor and the Formattable(double [all...] |
/libcore/luni/src/main/java/java/util/ |
FormattableFlags.java | 20 * {@link Formattable#formatTo(Formatter, int, int, int)} and change the output 21 * format in {@code Formattable}s. The validation and interpretation of the 24 * @see Formattable 53 * of the alternate form is determined by the {@code Formattable}.
|