/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) {
|
currfmt.h | 71 virtual UnicodeString& format(const Formattable& obj, 80 Formattable& result,
|
/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 | 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 [all...] |
curramt.cpp | 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode, 27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
|
currfmt.h | 71 virtual UnicodeString& format(const Formattable& obj, 80 Formattable& result,
|
/libcore/luni/src/main/java/java/util/ |
Formattable.java | 21 * should implement the {@code Formattable} interface. It gives basic control over 27 public interface Formattable {
|
/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...] |
measure.h | 57 Measure(const Formattable& number, MeasureUnit* adoptedUnit, 95 * Formattable. 98 inline const Formattable& getNumber() const; 117 Formattable number; 126 inline const Formattable& Measure::getNumber() const {
|
format.h | 139 UnicodeString& format(const Formattable& obj, 146 * of Formattable objects. If a subclass of Format receives a Formattable 147 * object type it doesn't handle (e.g., if a numeric Formattable is passed 159 virtual UnicodeString& format(const Formattable& obj, 165 * method. This method allows polymorphic formatting of Formattable objects. 166 * If a subclass of Format receives a Formattable object type it doesn't 167 * handle (e.g., if a numeric Formattable is passed to a DateFormat object) 179 virtual UnicodeString& format(const Formattable& obj, 187 * polymorphic parsing of strings into Formattable objects [all...] |
/external/icu4c/i18n/unicode/ |
fmtable.h | 24 * \brief C++ API: Formattable is a thin wrapper for primitive numeric types. 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. 64 class U_I18N_API Formattable : public UObject { 68 * the Formattable(UDate) constructor and the Formattable(double [all...] |
measure.h | 57 Measure(const Formattable& number, MeasureUnit* adoptedUnit, 95 * Formattable. 98 inline const Formattable& getNumber() const; 117 Formattable number; 126 inline const Formattable& Measure::getNumber() const {
|
msgfmt.h | 247 * Formattable arguments[] = { 249 * Formattable( (Date) cal.getTime(success), Formattable::kIsDate), 272 * Formattable testArgs[] = {3L, "MyDisk"}; 301 * Formattable testArgs[] = {0L, "MyDisk"}; 556 * which can be used with getFormat() and setFormat() to export formattable 629 * Does not take ownership of the Formattable* array or its contents. 644 UnicodeString& format(const Formattable* source, 668 const Formattable* arguments, 675 * string. The array must be stored within a single Formattable [all...] |
format.h | 139 UnicodeString& format(const Formattable& obj, 146 * of Formattable objects. If a subclass of Format receives a Formattable 147 * object type it doesn't handle (e.g., if a numeric Formattable is passed 159 virtual UnicodeString& format(const Formattable& obj, 165 * method. This method allows polymorphic formatting of Formattable objects. 166 * If a subclass of Format receives a Formattable object type it doesn't 167 * handle (e.g., if a numeric Formattable is passed to a DateFormat object) 179 virtual UnicodeString& format(const Formattable& obj, 187 * polymorphic parsing of strings into Formattable objects [all...] |
/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...] |
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...] |
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...] |
/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/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...] |
tmsgfmt.cpp | 140 Formattable result; 199 std::ostream& operator<<(std::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; 249 Formattable testArgs[] = [all...] |