Home
last modified time | relevance | path

Searched refs:Formattable (Results 1 - 25 of 257) sorted by relevance

1234567891011

/third_party/icu/icu4c/source/i18n/
H A Dfmtable.cpp36 // class Formattable
41 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
74 * Creates a new Formattable array and copies the values from the specified
78 * @return the new Formattable array.
80 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { in createArrayCopy()
81 Formattable *result = new Formattable[count]; in createArrayCopy()
104 void Formattable::init() { in init()
116 Formattable function in Formattable
123 Formattable::Formattable(UDate date, ISDATE /*isDate*/) Formattable() function in Formattable
133 Formattable::Formattable(double value) Formattable() function in Formattable
143 Formattable::Formattable(int32_t value) Formattable() function in Formattable
152 Formattable::Formattable(int64_t value) Formattable() function in Formattable
162 Formattable::Formattable(StringPiece number, UErrorCode &status) { Formattable() function in Formattable
171 Formattable::Formattable(const UnicodeString& stringToCopy) Formattable() function in Formattable
182 Formattable::Formattable(UnicodeString* stringToAdopt) Formattable() function in Formattable
189 Formattable::Formattable(UObject* objectToAdopt) Formattable() function in Formattable
198 Formattable::Formattable(const Formattable* arrayToCopy, int32_t count) Formattable() function in Formattable
211 Formattable::Formattable(const Formattable &source) Formattable() function in Formattable
[all...]
H A Dumsg.cpp45 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
51 const Formattable::Type*
406 const Formattable::Type* argTypes = in umsg_vformat()
410 Formattable* args = new Formattable[count ? count : 1]; in umsg_vformat()
421 case Formattable::kDate: in umsg_vformat()
426 case Formattable::kDouble: in umsg_vformat()
431 case Formattable::kLong: in umsg_vformat()
436 case Formattable::kInt64: in umsg_vformat()
441 case Formattable in umsg_vformat()
[all...]
/third_party/node/deps/icu-small/source/i18n/
H A Dfmtable.cpp36 // class Formattable
41 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
74 * Creates a new Formattable array and copies the values from the specified
78 * @return the new Formattable array.
80 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { in createArrayCopy()
81 Formattable *result = new Formattable[count]; in createArrayCopy()
104 void Formattable::init() { in init()
116 Formattable function in Formattable
123 Formattable::Formattable(UDate date, ISDATE /*isDate*/) Formattable() function in Formattable
133 Formattable::Formattable(double value) Formattable() function in Formattable
143 Formattable::Formattable(int32_t value) Formattable() function in Formattable
152 Formattable::Formattable(int64_t value) Formattable() function in Formattable
162 Formattable::Formattable(StringPiece number, UErrorCode &status) { Formattable() function in Formattable
171 Formattable::Formattable(const UnicodeString& stringToCopy) Formattable() function in Formattable
182 Formattable::Formattable(UnicodeString* stringToAdopt) Formattable() function in Formattable
189 Formattable::Formattable(UObject* objectToAdopt) Formattable() function in Formattable
198 Formattable::Formattable(const Formattable* arrayToCopy, int32_t count) Formattable() function in Formattable
211 Formattable::Formattable(const Formattable &source) Formattable() function in Formattable
[all...]
H A Dumsg.cpp45 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
51 const Formattable::Type*
406 const Formattable::Type* argTypes = in umsg_vformat()
410 Formattable* args = new Formattable[count ? count : 1]; in umsg_vformat()
421 case Formattable::kDate: in umsg_vformat()
426 case Formattable::kDouble: in umsg_vformat()
431 case Formattable::kLong: in umsg_vformat()
436 case Formattable::kInt64: in umsg_vformat()
441 case Formattable in umsg_vformat()
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/
H A Dfmtable.cpp36 // class Formattable
41 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable)
74 * Creates a new Formattable array and copies the values from the specified
78 * @return the new Formattable array.
80 static Formattable* createArrayCopy(const Formattable* array, int32_t count) { in createArrayCopy()
81 Formattable *result = new Formattable[count]; in createArrayCopy()
104 void Formattable::init() { in init()
116 Formattable function in Formattable
123 Formattable::Formattable(UDate date, ISDATE /*isDate*/) Formattable() function in Formattable
133 Formattable::Formattable(double value) Formattable() function in Formattable
143 Formattable::Formattable(int32_t value) Formattable() function in Formattable
152 Formattable::Formattable(int64_t value) Formattable() function in Formattable
162 Formattable::Formattable(StringPiece number, UErrorCode &status) { Formattable() function in Formattable
171 Formattable::Formattable(const UnicodeString& stringToCopy) Formattable() function in Formattable
182 Formattable::Formattable(UnicodeString* stringToAdopt) Formattable() function in Formattable
189 Formattable::Formattable(UObject* objectToAdopt) Formattable() function in Formattable
198 Formattable::Formattable(const Formattable* arrayToCopy, int32_t count) Formattable() function in Formattable
211 Formattable::Formattable(const Formattable &source) Formattable() function in Formattable
[all...]
H A Dumsg.cpp45 static const Formattable::Type* getArgTypeList(const MessageFormat& m,
51 const Formattable::Type*
406 const Formattable::Type* argTypes = in umsg_vformat()
410 Formattable* args = new Formattable[count ? count : 1]; in umsg_vformat()
421 case Formattable::kDate: in umsg_vformat()
426 case Formattable::kDouble: in umsg_vformat()
431 case Formattable::kLong: in umsg_vformat()
436 case Formattable::kInt64: in umsg_vformat()
441 case Formattable in umsg_vformat()
[all...]
/third_party/icu/icu4c/source/i18n/unicode/
H A Dfmtable.h26 * \brief C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing
45 * Formattable objects can be passed to the Format class or
46 * its subclasses for formatting. Formattable is a thin wrapper
50 * <p>Internally, a Formattable object is a union of primitive types.
54 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer,
56 * encapsulated in a Formattable. For legacy reasons and for
58 * within a Formattable.
60 * <p>The Formattable class is not suitable for subclassing.
64 class U_I18N_API Formattable : public UObject { class
68 * the Formattable(UDat
[all...]
H A Dmsgfmt.h269 * Formattable arguments[] = {
271 * Formattable( (Date) cal.getTime(success), Formattable::kIsDate),
294 * Formattable testArgs[] = {3L, "MyDisk"};
323 * Formattable testArgs[] = {0L, "MyDisk"};
651 * Does not take ownership of the Formattable* array or its contents.
666 UnicodeString& format(const Formattable* source,
690 const Formattable* arguments,
697 * string. The array must be stored within a single Formattable
698 * object of type kArray. If the Formattable objec
[all...]
H A Dformat.h143 UnicodeString& format(const Formattable& obj,
150 * of Formattable objects. If a subclass of Format receives a Formattable
151 * object type it doesn't handle (e.g., if a numeric Formattable is passed
163 virtual UnicodeString& format(const Formattable& obj,
169 * method. This method allows polymorphic formatting of Formattable objects.
170 * If a subclass of Format receives a Formattable object type it doesn't
171 * handle (e.g., if a numeric Formattable is passed to a DateFormat object)
183 virtual UnicodeString& format(const Formattable& obj,
191 * polymorphic parsing of strings into Formattable object
[all...]
/third_party/node/deps/icu-small/source/i18n/unicode/
H A Dfmtable.h26 * \brief C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing
45 * Formattable objects can be passed to the Format class or
46 * its subclasses for formatting. Formattable is a thin wrapper
50 * <p>Internally, a Formattable object is a union of primitive types.
54 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer,
56 * encapsulated in a Formattable. For legacy reasons and for
58 * within a Formattable.
60 * <p>The Formattable class is not suitable for subclassing.
64 class U_I18N_API Formattable : public UObject { class
68 * the Formattable(UDat
[all...]
H A Dmsgfmt.h269 * Formattable arguments[] = {
271 * Formattable( (Date) cal.getTime(success), Formattable::kIsDate),
294 * Formattable testArgs[] = {3L, "MyDisk"};
323 * Formattable testArgs[] = {0L, "MyDisk"};
651 * Does not take ownership of the Formattable* array or its contents.
666 UnicodeString& format(const Formattable* source,
690 const Formattable* arguments,
697 * string. The array must be stored within a single Formattable
698 * object of type kArray. If the Formattable objec
[all...]
H A Dformat.h143 UnicodeString& format(const Formattable& obj,
150 * of Formattable objects. If a subclass of Format receives a Formattable
151 * object type it doesn't handle (e.g., if a numeric Formattable is passed
163 virtual UnicodeString& format(const Formattable& obj,
169 * method. This method allows polymorphic formatting of Formattable objects.
170 * If a subclass of Format receives a Formattable object type it doesn't
171 * handle (e.g., if a numeric Formattable is passed to a DateFormat object)
183 virtual UnicodeString& format(const Formattable& obj,
191 * polymorphic parsing of strings into Formattable object
[all...]
/third_party/skia/third_party/externals/icu/source/i18n/unicode/
H A Dfmtable.h26 * \brief C++ API: Formattable is a thin wrapper for primitive types used for formatting and parsing
45 * Formattable objects can be passed to the Format class or
46 * its subclasses for formatting. Formattable is a thin wrapper
50 * <p>Internally, a Formattable object is a union of primitive types.
54 * <p>As of ICU 3.0, Formattable may also wrap a UObject pointer,
56 * encapsulated in a Formattable. For legacy reasons and for
58 * within a Formattable.
60 * <p>The Formattable class is not suitable for subclassing.
64 class U_I18N_API Formattable : public UObject { class
68 * the Formattable(UDat
[all...]
H A Dmsgfmt.h269 * Formattable arguments[] = {
271 * Formattable( (Date) cal.getTime(success), Formattable::kIsDate),
294 * Formattable testArgs[] = {3L, "MyDisk"};
323 * Formattable testArgs[] = {0L, "MyDisk"};
651 * Does not take ownership of the Formattable* array or its contents.
666 UnicodeString& format(const Formattable* source,
690 const Formattable* arguments,
697 * string. The array must be stored within a single Formattable
698 * object of type kArray. If the Formattable objec
[all...]
H A Dformat.h143 UnicodeString& format(const Formattable& obj,
150 * of Formattable objects. If a subclass of Format receives a Formattable
151 * object type it doesn't handle (e.g., if a numeric Formattable is passed
163 virtual UnicodeString& format(const Formattable& obj,
169 * method. This method allows polymorphic formatting of Formattable objects.
170 * If a subclass of Format receives a Formattable object type it doesn't
171 * handle (e.g., if a numeric Formattable is passed to a DateFormat object)
183 virtual UnicodeString& format(const Formattable& obj,
191 * polymorphic parsing of strings into Formattable object
[all...]
/third_party/icu/icu4c/source/test/intltest/
H A Dtfsmalls.cpp167 Formattable* ftp = new Formattable(); in test_Formattable()
168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { in test_Formattable()
169 it_errln("*** Formattable constructor or getType or getLong"); in test_Formattable()
173 Formattable fta, ftb; in test_Formattable()
185 it_errln("*** Formattable setLong or operator== or !="); in test_Formattable()
195 if ((fta.getType() == Formattable::kDouble) && (fta.getDouble() == 3.0)) { in test_Formattable()
206 if ((fta.getType() == Formattable::kDate) && (fta.getDate() == 4.0)) { in test_Formattable()
226 const Formattable ftc(fta); in test_Formattable()
231 t = (fta.getType() == Formattable in test_Formattable()
[all...]
H A Dtmsgfmt.cpp148 Formattable result; in testBug3()
206 std::ostream& operator<<(std::ostream& stream, const Formattable& obj);
214 const Formattable& obj)
220 case Formattable::kDate :
227 case Formattable::kDouble :
232 case Formattable::kLong :
235 case Formattable::kString:
238 case Formattable::kArray:
240 const Formattable* array;
256 Formattable testArg in PatternTest()
[all...]
H A Dmsfmrgts.cpp101 Formattable params [] = { in Test4074764()
102 Formattable(UnicodeString("BUG")), in Test4074764()
103 Formattable(0, Formattable::kIsDate) in Test4074764()
117 // do we want to verify that the Formattable* array is not NULL, in Test4074764()
196 Formattable params []= { in Test4031438()
197 Formattable((int32_t)7) in Test4031438()
207 Formattable *objs = messageFormatter->parse(tempBuffer, pp, count); in Test4031438()
217 Formattable obj = objs[i]; in Test4031438()
219 if(obj.getType() == Formattable in Test4031438()
[all...]
H A Dnmfmtrt.h43 void test(NumberFormat *fmt, const Formattable& value);
46 static double proportionalError(const Formattable& a, const Formattable& b);
47 static UnicodeString& typeOf(const Formattable& n, UnicodeString& result);
51 isDouble(const Formattable& n) in isDouble()
52 { return (n.getType() == Formattable::kDouble); } in isDouble()
55 isLong(const Formattable& n) in isLong()
56 { return (n.getType() == Formattable::kLong); } in isLong()
H A Dnumfmtst.h314 UBool testFormattableAsUFormattable(const char *file, int line, Formattable &f);
318 static UBool equalValue(const Formattable& a, const Formattable& b);
326 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
328 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str);
330 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2()
334 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec);
336 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2()
340 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n);
342 void expect(NumberFormat& fmt, const char *str, const Formattable
[all...]
H A Dnmfmtrt.cpp223 test(fmt, Formattable(value)); in test()
229 test(fmt, Formattable(value)); in test()
233 NumberFormatRoundTripTest::test(NumberFormat *fmt, const Formattable& value) in test()
247 Formattable n; in test()
300 escape(s) + " P> " + (n.getType() == Formattable::kDouble ? n.getDouble() : (double)n.getLong()) in test()
307 NumberFormatRoundTripTest::proportionalError(const Formattable& a, const Formattable& b) in proportionalError()
329 NumberFormatRoundTripTest::typeOf(const Formattable& n, UnicodeString& result) in typeOf()
331 if(n.getType() == Formattable::kLong) { in typeOf()
334 else if(n.getType() == Formattable in typeOf()
[all...]
/third_party/icu/icu4c/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp53 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))}; in PluralFormatExample()
54 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))}; in PluralFormatExample()
72 Formattable arg[] = {numbers[i]}; in PluralFormatExample()
/third_party/skia/third_party/externals/icu/source/samples/plurfmtsample/
H A Dplurfmtsample.cpp53 Formattable argEn[]={Formattable(numbers[i]), Formattable(plfmtEn.format(numbers[i],status))}; in PluralFormatExample()
54 Formattable argSl[]={Formattable(numbers[i]), Formattable(plfmtSl.format(numbers[i],status))}; in PluralFormatExample()
72 Formattable arg[] = {numbers[i]}; in PluralFormatExample()
/third_party/icu/icu4c/source/samples/numfmt/
H A Dutil.cpp89 UnicodeString formattableToString(const Formattable& f) { in formattableToString()
91 case Formattable::kDate: in formattableToString()
94 case Formattable::kDouble: in formattableToString()
100 case Formattable::kLong: in formattableToString()
106 case Formattable::kInt64: in formattableToString()
112 case Formattable::kString: in formattableToString()
114 case Formattable::kArray: in formattableToString()
117 const Formattable* array = f.getArray(count); in formattableToString()
/third_party/skia/third_party/externals/icu/source/samples/numfmt/
H A Dutil.cpp89 UnicodeString formattableToString(const Formattable& f) { in formattableToString()
91 case Formattable::kDate: in formattableToString()
94 case Formattable::kDouble: in formattableToString()
100 case Formattable::kLong: in formattableToString()
106 case Formattable::kInt64: in formattableToString()
112 case Formattable::kString: in formattableToString()
114 case Formattable::kArray: in formattableToString()
117 const Formattable* array = f.getArray(count); in formattableToString()

Completed in 21 milliseconds

1234567891011