Home | History | Annotate | Download | only in intltest

Lines Matching defs:fmt

128     DateFormat *fmt = DateFormat::createDateTimeInstance(DateFormat::SHORT,
130 if (fmt == NULL) {
137 str = fmt->format(dt, str);
198 fmt->format(dt, buf, pos);
219 delete fmt;
231 SimpleDateFormat *fmt = new SimpleDateFormat(UnicodeString("yyMMdd"), Locale::getUS(), status);
233 delete fmt;
237 fmt->set2DigitYearStart(start, status);
238 failure(status, "fmt->setTwoDigitStartDate");
239 if( (fmt->get2DigitYearStart(status) != start) || failure(status, "get2DigitStartDate"))
265 UDate got = fmt->parse(s, status);
266 failure(status, "fmt->parse");
277 delete fmt;
287 SimpleDateFormat *fmt;
290 fmt = new SimpleDateFormat( UnicodeString("yyyy/MM/dd"), status );
293 aux917( fmt, myDate );
295 delete fmt;
296 fmt = NULL;
298 fmt = new SimpleDateFormat( UnicodeString("yyyyMMdd"), status );
301 aux917( fmt, myDate );
303 delete fmt;
306 void DateFormatRegressionTest::aux917( SimpleDateFormat *fmt, UnicodeString& str ) {
309 pat = fmt->toPattern(pat);
318 fmt->parseObject( str, o, pos );
324 formatted = fmt->format( o, formatted, poss, status );
325 failure(status, "fmt->format");
351 DateFormat *fmt = DateFormat::createDateTimeInstance( DateFormat::FULL,
353 if (fmt == NULL) {
359 myString = fmt->format( myDate, myString);
379 myString = fmt->format( myDate, myString );
388 delete fmt;
577 SimpleDateFormat fmt("MM/dd/yy", Locale::getUK(), ec);
590 UDate d = fmt.parse(tests[i], status);
591 failure(status, "fmt.parse");
592 UDate dd = fmt.parse(tests[i+1], status);
593 failure(status, "fmt.parse");
595 s = fmt.format(d, s);
597 ss = fmt.format(dd, ss);
1015 SimpleDateFormat *fmt = new SimpleDateFormat(dateFormat, status);
1018 UDate d = fmt->parse("01/22/92 04:52:00 GMT", p0);
1025 delete fmt;
1061 SimpleDateFormat fmt(UnicodeString("EEEE, dd-MMM-yy HH:mm:ss z"), Locale::getUS(), status);
1064 UDate d = fmt.parse(dateString, status);
1065 failure(status, "fmt->parse");
1074 logln(dateString + " -> " + fmt.format(d, temp, pos));
1113 SimpleDateFormat fmt("MM/dd/yy", Locale::getUS(), status);
1154 UDate actual = fmt.parse(str, status);
1198 DateFormat& fmt = *(DateFormat*)&sfmt; // Yuck: See j25
1204 Calendar* calx = (Calendar*)fmt.getCalendar(); // cast away const!
1208 fmt.format(d, s);
1212 d = fmt.parse(s, pos);
1243 DateFormat *fmt = DateFormat::createDateTimeInstance(DateFormat::NONE,
1246 if (fmt == NULL) {
1255 fmt->format (d,s);
1271 delete fmt;
1474 SimpleDateFormat fmt(pattern, status); // default locale
1493 fmt = fmtDE;
1496 fmt.format(0.0, resAssigned);