HomeSort by relevance Sort by last modified time
    Searched refs:Formattable (Results 1 - 25 of 206) sorted by null

1 2 3 4 5 6 7 8 9

  /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/icu/icu4c/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 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...]
curramt.cpp 20 CurrencyAmount::CurrencyAmount(const Formattable& amount, const UChar* isoCode,
27 Measure(Formattable(amount), new CurrencyUnit(isoCode, ec), ec) {
currfmt.h 66 virtual UnicodeString& format(const Formattable& obj,
75 Formattable& result,
quantityformatter.h 21 class Formattable;
96 const Formattable &quantity,
  /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...]
measure.h 53 Measure(const Formattable& number, MeasureUnit* adoptedUnit,
91 * Formattable.
94 inline const Formattable& getNumber() const;
139 Formattable number;
148 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...]
  /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/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...]
  /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/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...]
  /external/icu/icu4c/source/samples/plurfmtsample/
plurfmtsample.cpp 47 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))};
48 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))};
66 Formattable arg[] = {numbers[i]};

Completed in 258 milliseconds

1 2 3 4 5 6 7 8 9