HomeSort by relevance Sort by last modified time
    Searched full:formattable (Results 1 - 25 of 190) sorted by null

1 2 3 4 5 6 7 8

  /external/chromium/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 148 static UBool equalValue(const Formattable& a, const Formattable& b);
150 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
152 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
154 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) {
158 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec);
160 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) {
164 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n);
166 void expect(NumberFormat& fmt, const char *str, const Formattable& n) {
170 void expect(NumberFormat& fmt, const Formattable& n
    [all...]
tufmtts.cpp 67 Formattable formattable; local
68 formattable.adoptObject(source);
69 formatted = ((Format*)formats[style])->format(formattable, formatted, status);
76 Formattable result;
79 if (result != formattable) {
83 Formattable result_1;
86 if (result_1 != formattable) {
125 Formattable formattable((int32_t)2)
    [all...]
tfsmalls.h 22 * Formattable in test_Formattable().
msfmrgts.cpp 99 Formattable params [] = {
100 Formattable(UnicodeString("BUG")),
101 Formattable(0, Formattable::kIsDate)
115 // do we want to verify that the Formattable* array is not NULL,
189 Formattable params []= {
190 Formattable((int32_t)7)
200 Formattable *objs = messageFormatter->parse(tempBuffer, pp, count);
210 Formattable obj = objs[i];
212 if(obj.getType() == Formattable::kString
    [all...]
tmsgfmt.cpp 127 Formattable result;
187 std::ostream& operator<<(std::ostream& stream, const Formattable& obj);
190 ostream& operator<<(ostream& stream, const Formattable& obj);
199 const Formattable& obj)
205 case Formattable::kDate :
212 case Formattable::kDouble :
217 case Formattable::kLong :
220 case Formattable::kString:
223 case Formattable::kArray:
225 const Formattable* array
    [all...]
  /external/icu4c/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 152 static UBool equalValue(const Formattable& a, const Formattable& b);
160 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
162 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
164 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) {
168 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec);
170 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) {
174 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n);
176 void expect(NumberFormat& fmt, const char *str, const Formattable& n) {
180 void expect(NumberFormat& fmt, const Formattable& n
    [all...]
tufmtts.cpp 67 Formattable formattable; local
68 formattable.adoptObject(source);
69 formatted = ((Format*)formats[style])->format(formattable, formatted, status);
76 Formattable result;
79 if (result != formattable) {
83 Formattable result_1;
86 if (result_1 != formattable) {
125 Formattable formattable((int32_t)2)
    [all...]
tfsmalls.h 22 * Formattable in test_Formattable().
tmsgfmt.cpp 135 Formattable result;
195 std::ostream& operator<<(std::ostream& stream, const Formattable& obj);
198 ostream& operator<<(ostream& stream, const Formattable& obj);
207 const Formattable& obj)
213 case Formattable::kDate :
220 case Formattable::kDouble :
225 case Formattable::kLong :
228 case Formattable::kString:
231 case Formattable::kArray:
233 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...]
  /external/chromium/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 27 // class Formattable
32 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
65 * Creates a new Formattable array and copies the values from the specified
69 * @return the new Formattable array.
71 static inline Formattable* createArrayCopy(const Formattable* array, int32_t count) {
72 Formattable *result = new Formattable[count];
93 // Creates a formattable object with a long value 0.
95 Formattable::Formattable(
    [all...]
curramt.cpp 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
  /external/icu4c/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)
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
    [all...]
curramt.cpp 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
  /external/icu4c/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/icu4c/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...]
  /external/chromium/third_party/icu/public/i18n/unicode/
fmtable.h 22 * \brief C++ API: Formattable is a thin wrapper for primitive numeric types.
30 * Formattable objects can be passed to the Format class or
31 * its subclasses for formatting. Formattable is a thin wrapper
35 * <p>Internally, a Formattable object is a union of primitive types.
39 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer,
41 * encapsulated in a Formattable. For legacy reasons and for
43 * within a Formattable.
45 * <p>The Formattable class is not suitable for subclassing.
47 class U_I18N_API Formattable : public UObject {
51 * the Formattable(UDate) constructor and the Formattable(double
    [all...]
  /libcore/luni/src/test/java/org/apache/harmony/luni/tests/java/util/
FormattableTest.java 26 import java.util.Formattable;
29 @TestTargetClass(Formattable.class)
32 class Mock_Formattable implements Formattable {

Completed in 496 milliseconds

1 2 3 4 5 6 7 8