• Home
  • Raw
  • Download

Lines Matching refs:DateFormat

142     const Locale *avail = DateFormat::getAvailableLocales(locCount);  in TestDateFormatRoundTrip()
193 static const char *styleName(DateFormat::EStyle s) in styleName()
197 case DateFormat::SHORT: return "SHORT"; in styleName()
198 case DateFormat::MEDIUM: return "MEDIUM"; in styleName()
199 case DateFormat::LONG: return "LONG"; in styleName()
200 case DateFormat::FULL: return "FULL"; in styleName()
202 case DateFormat::DATE_OFFSET: return "DATE_OFFSET"; in styleName()
203 case DateFormat::NONE: return "NONE"; in styleName()
204 case DateFormat::DATE_TIME: return "DATE_TIME"; in styleName()
237 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test()
239 logln("Testing style " + UnicodeString(styleName((DateFormat::EStyle)style))); in test()
240 DateFormat *df = DateFormat::createDateInstance((DateFormat::EStyle)style, loc); in test()
242 …String("Could not DF::createDateInstance ") + UnicodeString(styleName((DateFormat::EStyle)style)) … in test()
250 for(style = DateFormat::FULL; style <= DateFormat::SHORT; ++style) { in test()
252 logln("Testing style " + UnicodeString(styleName((DateFormat::EStyle)style))); in test()
253 DateFormat *df = DateFormat::createTimeInstance((DateFormat::EStyle)style, loc); in test()
255 …String("Could not DF::createTimeInstance ") + UnicodeString(styleName((DateFormat::EStyle)style)) … in test()
263 for(int32_t dstyle = DateFormat::FULL; dstyle <= DateFormat::SHORT; ++dstyle) { in test()
264 for(int32_t tstyle = DateFormat::FULL; tstyle <= DateFormat::SHORT; ++tstyle) { in test()
266 …g dstyle" + UnicodeString(styleName((DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styl… in test()
267DateFormat *df = DateFormat::createDateTimeInstance((DateFormat::EStyle)dstyle, (DateFormat::EStyl… in test()
269 …stance ") + UnicodeString(styleName((DateFormat::EStyle)dstyle)) + ", tstyle" + UnicodeString(styl… in test()
279 void DateFormatRoundTripTest::test(DateFormat *fmt, const Locale &origLocale, UBool timeOnly) in test()