Lines Matching refs:DateFormat
140 const Locale *avail = DateFormat::getAvailableLocales(locCount); in TestDateFormatRoundTrip()
191 static const char *styleName(DateFormat::EStyle s) in styleName()
195 case DateFormat::SHORT: return "SHORT"; in styleName()
196 case DateFormat::MEDIUM: return "MEDIUM"; in styleName()
197 case DateFormat::LONG: return "LONG"; in styleName()
198 case DateFormat::FULL: return "FULL"; in styleName()
200 case DateFormat::DATE_OFFSET: return "DATE_OFFSET"; in styleName()
201 case DateFormat::NONE: return "NONE"; in styleName()
202 case DateFormat::DATE_TIME: return "DATE_TIME"; in styleName()
235 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test()
237 logln("Testing style " + UnicodeString(styleName((DateFormat::EStyle)style))); in test()
238 DateFormat *df = DateFormat::createDateInstance((DateFormat::EStyle)style, loc); in test()
240 …String("Could not DF::createDateInstance ") + UnicodeString(styleName((DateFormat::EStyle)style)) … in test()
248 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test()
250 logln("Testing style " + UnicodeString(styleName((DateFormat::EStyle)style))); in test()
251 DateFormat *df = DateFormat::createTimeInstance((DateFormat::EStyle)style, loc); in test()
253 …String("Could not DF::createTimeInstance ") + UnicodeString(styleName((DateFormat::EStyle)style)) … in test()
261 for(int32_t dstyle = DateFormat::FULL; dstyle <= DateFormat::SHORT; ++dstyle) { in test()
262 for(int32_t tstyle = DateFormat::FULL; tstyle <= DateFormat::SHORT; ++tstyle) { in test()
264 …g dstyle" + UnicodeString(styleName((DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styl… in test()
265 …DateFormat *df = DateFormat::createDateTimeInstance((DateFormat::EStyle)dstyle, (DateFormat::EStyl… in test()
267 …stance ") + UnicodeString(styleName((DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styl… in test()
277 void DateFormatRoundTripTest::test(DateFormat *fmt, const Locale &origLocale, UBool timeOnly) in test()