/external/icu/icu4c/source/i18n/ |
D | fmtable.cpp | 41 UOBJECT_DEFINE_RTTI_IMPLEMENTATION(Formattable) 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::Formattable() { in Formattable() function in Formattable 123 Formattable::Formattable(UDate date, ISDATE /*isDate*/) in Formattable() function in Formattable 133 Formattable::Formattable(double value) in Formattable() function in Formattable 143 Formattable::Formattable(int32_t value) in Formattable() function in Formattable 152 Formattable::Formattable(int64_t value) in Formattable() function in Formattable 162 Formattable::Formattable(StringPiece number, UErrorCode &status) { in Formattable() function in Formattable [all …]
|
D | umsg.cpp | 45 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::kString: in umsg_vformat() 451 case Formattable::kArray: in umsg_vformat() [all …]
|
D | msgfmt.cpp | 204 void formatAndAppend(const Format* formatter, const Formattable& arg, UErrorCode& ec) { in formatAndAppend() 211 void formatAndAppend(const Format* formatter, const Formattable& arg, in formatAndAppend() 358 Formattable::Type* a = (Formattable::Type*) in allocateArgTypes() 872 MessageFormat::format(const Formattable* source, in format() 888 const Formattable* arguments, in format() 903 MessageFormat::format(const Formattable& source, in format() 910 if (source.getType() != Formattable::kArray) { in format() 915 const Formattable* tmpPtr = source.getArray(cnt); in format() 921 const Formattable* arguments, in format() 929 const Formattable* MessageFormat::getArgFromListByName(const Formattable* arguments, in getArgFromListByName() [all …]
|
D | numfmt.cpp | 458 Formattable f; in format() 477 const Formattable* num; 482 ArgExtractor(const NumberFormat& nf, const Formattable& obj, UErrorCode& status); 485 const Formattable* number(void) const; 490 inline const Formattable* 505 ArgExtractor::ArgExtractor(const NumberFormat& /*nf*/, const Formattable& obj, UErrorCode& /*status… in ArgExtractor() 559 NumberFormat::format(const Formattable& obj, in format() 567 const Formattable *n = arg.number(); in format() 591 case Formattable::kDouble: in format() 594 case Formattable::kLong: in format() [all …]
|
D | number_asformat.h | 54 UnicodeString& format(const Formattable& obj, UnicodeString& appendTo, FieldPosition& pos, 61 …UnicodeString& format(const Formattable& obj, UnicodeString& appendTo, FieldPositionIterator* posI… 67 void parseObject(const UnicodeString& source, Formattable& result,
|
D | quantityformatter.cpp | 116 const Formattable &number, in format() 142 const Formattable &number, in selectPlural() 162 if (number.getType() == Formattable::kDouble) { in selectPlural() 164 } else if (number.getType() == Formattable::kLong) { in selectPlural() 166 } else if (number.getType() == Formattable::kInt64) { in selectPlural()
|
D | quantityformatter.h | 27 class Formattable; variable 105 const Formattable &number, 116 const Formattable &number,
|
/external/icu/icu4c/source/i18n/unicode/ |
D | fmtable.h | 62 class U_I18N_API Formattable : public UObject { 79 Formattable(); // Type kLong, value 0 87 Formattable(UDate d, ISDATE flag); 94 Formattable(double d); 101 Formattable(int32_t l); 108 Formattable(int64_t ll); 117 Formattable(const char* strToCopy); 133 Formattable(StringPiece number, UErrorCode &status); 140 Formattable(const UnicodeString& strToCopy); 147 Formattable(UnicodeString* strToAdopt); [all …]
|
D | msgfmt.h | 649 UnicodeString& format(const Formattable* source, 673 const Formattable* arguments, 698 virtual UnicodeString& format(const Formattable& obj, 722 const Formattable* arguments, 739 virtual Formattable* parse(const UnicodeString& source, 758 virtual Formattable* parse(const UnicodeString& source, 775 Formattable& result, 901 Formattable::Type* argTypes; 952 UnicodeString& format(const Formattable* arguments, 978 const Formattable* arguments, [all …]
|
D | format.h | 141 UnicodeString& format(const Formattable& obj, 161 virtual UnicodeString& format(const Formattable& obj, 181 virtual UnicodeString& format(const Formattable& obj, 226 Formattable& result, 242 Formattable& result,
|
D | measure.h | 55 Measure(const Formattable& number, MeasureUnit* adoptedUnit, 96 inline const Formattable& getNumber() const; 141 Formattable number; 150 inline const Formattable& Measure::getNumber() const { in getNumber()
|
/external/icu/icu4c/source/test/intltest/ |
D | tfsmalls.cpp | 167 Formattable* ftp = new Formattable(); in test_Formattable() 168 if (!ftp || !(ftp->getType() == Formattable::kLong) || !(ftp->getLong() == 0)) { in test_Formattable() 173 Formattable fta, ftb; 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::kString) in test_Formattable() 250 const Formattable ftarray[] = in test_Formattable() 252 Formattable( 1.0, Formattable::kIsDate ), in test_Formattable() 259 Formattable ft_arr( ftarray, ft_cnt ); in test_Formattable() [all …]
|
D | tmsgfmt.cpp | 145 Formattable result; in testBug3() 204 std::ostream& operator<<(std::ostream& stream, const Formattable& obj); 212 const Formattable& obj) 218 case Formattable::kDate : 225 case Formattable::kDouble : 230 case Formattable::kLong : 233 case Formattable::kString: 236 case Formattable::kArray: 238 const Formattable* array; 254 Formattable testArgs[] = { in PatternTest() [all …]
|
D | msfmrgts.cpp | 100 Formattable params [] = { in Test4074764() 101 Formattable(UnicodeString("BUG")), in Test4074764() 102 Formattable(0, Formattable::kIsDate) in Test4074764() 195 Formattable params []= { in Test4031438() 196 Formattable((int32_t)7) in Test4031438() 206 Formattable *objs = messageFormatter->parse(tempBuffer, pp, count); in Test4031438() 216 Formattable obj = objs[i]; in Test4031438() 218 if(obj.getType() == Formattable::kString) in Test4031438() 223 case Formattable::kLong: fmt->format(obj.getLong(), temp); break; in Test4031438() 224 case Formattable::kInt64: fmt->format(obj.getInt64(), temp); break; in Test4031438() [all …]
|
D | numfmtst.h | 288 UBool testFormattableAsUFormattable(const char *file, int line, Formattable &f); 292 static UBool equalValue(const Formattable& a, const Formattable& b); 300 void expect2(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 302 void expect3(NumberFormat& fmt, const Formattable& n, const UnicodeString& str); 304 void expect2(NumberFormat& fmt, const Formattable& n, const char* str) { in expect2() 308 void expect2(NumberFormat* fmt, const Formattable& n, const UnicodeString& str, UErrorCode ec); 310 void expect2(NumberFormat* fmt, const Formattable& n, const char* str, UErrorCode ec) { in expect2() 314 void expect(NumberFormat& fmt, const UnicodeString& str, const Formattable& n); 316 void expect(NumberFormat& fmt, const char *str, const Formattable& n) { in expect() 320 void expect(NumberFormat& fmt, const Formattable& n, [all …]
|
D | nmfmtrt.h | 43 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()
|
D | tsnmfmt.cpp | 22 static const char * formattableTypeName(Formattable::Type t) in formattableTypeName() 25 case Formattable::kDate: return "kDate"; in formattableTypeName() 26 case Formattable::kDouble: return "kDouble"; in formattableTypeName() 27 case Formattable::kLong: return "kLong"; in formattableTypeName() 28 case Formattable::kString: return "kString"; in formattableTypeName() 29 case Formattable::kArray: return "kArray"; in formattableTypeName() 30 case Formattable::kInt64: return "kInt64"; in formattableTypeName() 287 Formattable number[DEPTH]; in tryIt() 311 if (number[i].getType() == Formattable::kLong) in tryIt() 313 else if (number[i].getType() == Formattable::kInt64) in tryIt() [all …]
|
D | nmfmtrt.cpp | 223 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() 295 … escape(s) + " P> " + (n.getType() == Formattable::kDouble ? n.getDouble() : (double)n.getLong()) in test() 302 NumberFormatRoundTripTest::proportionalError(const Formattable& a, const Formattable& b) in proportionalError() 324 NumberFormatRoundTripTest::typeOf(const Formattable& n, UnicodeString& result) in typeOf() 326 if(n.getType() == Formattable::kLong) { in typeOf() 329 else if(n.getType() == Formattable::kDouble) { in typeOf() 332 else if(n.getType() == Formattable::kString) { in typeOf()
|
D | numfmtst.cpp | 246 Formattable bla("Paja Patak"); // Donald Duck for non Serbian speakers in TestAPI() 289 …virtual UnicodeString& format(const Formattable& , UnicodeString& appendTo, FieldPosition& , UErro… in format() argument 293 Formattable& , in parse() argument 296 Formattable& , in parse() argument 532 Formattable af; in TestExponential() 536 if (af.getType() == Formattable::kLong) in TestExponential() 538 else if (af.getType() == Formattable::kDouble) { in TestExponential() 581 Formattable af; in TestExponential() 583 if (af.getType() == Formattable::kLong || in TestExponential() 584 af.getType() == Formattable::kInt64) { in TestExponential() [all …]
|
D | dcfmtest.cpp | 160 static const char *formattableType(Formattable::Type typ) { in formattableType() 169 if (typ<0 || typ>Formattable::kObject) { in formattableType() 328 Formattable result; in execParseTest() 348 Formattable::Type expectType = Formattable::kDate; in execParseTest() 350 case 'd': expectType = Formattable::kDouble; break; in execParseTest() 351 case 'i': expectType = Formattable::kLong; break; in execParseTest() 352 case 'l': expectType = Formattable::kInt64; break; in execParseTest() 432 Formattable fmtbl; in execFormatTest()
|
D | dtfmapts.cpp | 164 Formattable fD(d, Formattable::kIsDate); in testAPI() 189 Formattable result1; in testAPI() 193 if(result1.getType() != Formattable::kDate) { in testAPI() 286 Formattable dateObj(0, Formattable::kIsDate); in TestNameHiding() 287 Formattable numObj(3.1415926535897932384626433832795); in TestNameHiding() 288 Formattable obj; in TestNameHiding()
|
D | numrgts.cpp | 45 virtual UnicodeString& format(const Formattable& obj, in format() 69 Formattable& result, in parse() 76 Formattable& result, in parse() 425 Formattable result; in assignFloatValue() 428 float floatResult = (float) (result.getType() == Formattable::kDouble in assignFloatValue() 448 Formattable result; in Test4059870() 602 Formattable d; in Test4068693() 757 Formattable d2; in Test4095713() 1341 Formattable num; in Test4052223() 1432 Formattable num; in Test4108738() [all …]
|
/external/icu/icu4c/source/samples/numfmt/ |
D | util.cpp | 86 UnicodeString formattableToString(const Formattable& f) { in formattableToString() 88 case Formattable::kDate: in formattableToString() 91 case Formattable::kDouble: in formattableToString() 97 case Formattable::kLong: in formattableToString() 98 case Formattable::kInt64: in formattableToString() 104 case Formattable::kString: in formattableToString() 106 case Formattable::kArray: in formattableToString() 109 const Formattable* array = f.getArray(count); in formattableToString()
|
/external/icu/icu4c/source/samples/plurfmtsample/ |
D | plurfmtsample.cpp | 53 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()
|
/external/cldr/tools/c/genldml/ |
D | genldml.cpp | 300 Formattable args[] = {UnicodeString(XML_END_SLASH), ""}; in closeXMLDocument() 306 Formattable args[] ={ argument}; in formatString() 319 UnicodeString GenerateXML::formatString(UnicodeString& str,const Formattable* args,int32_t num,Unic… in formatString() 435 Formattable arguments[] = {"", (isDraft==TRUE)? " draft=\"true\"" : ""}; in writeXMLVersionAndComments() 456 Formattable args[] = {indentOffset,""}; in writeVersion() 478 Formattable args[]={indentOffset,"",""}; in writeIdentity() 502 Formattable args1[] = {indentOffset, tempStr2,""}; in writeIdentity() 514 Formattable args1[] = {indentOffset, tempStr}; in writeIdentity() 525 Formattable args1[] = {indentOffset,tempStr1,tempStr2}; in writeIdentity() 536 Formattable args1[] = {indentOffset, tempStr}; in writeIdentity() [all …]
|