Lines Matching refs:format
156 // ======= Test various format() methods
159 logln("Testing various format() methods");
168 res1 = fr->format(d, res1, pos1, status);
170 errln("ERROR: format() failed (French)");
174 res2 = it->format(d, res2, pos2);
177 res3 = de->format(d, res3);
273 * Test hiding of parse() and format() APIs in the Format hierarchy.
291 // DateFormat calling Format API
296 dateFmt->format(dateObj, str, status);
297 dateFmt->format(dateObj, str, fpos, status);
304 // SimpleDateFormat calling Format & DateFormat API
309 // Format API
310 sdf.format(dateObj, str, status);
311 sdf.format(dateObj, str, fpos, status);
313 sdf.format((UDate)0, str, fpos);
314 sdf.format((UDate)0, str);
320 // NumberFormat calling Format API
326 fmt->format(numObj, str, status);
327 fmt->format(numObj, str, fpos, status);
334 // DecimalFormat calling Format & NumberFormat API
340 // Format API
341 fmt.format(numObj, str, status);
342 fmt.format(numObj, str, fpos, status);
344 fmt.format(2.71828, str);
345 fmt.format((int32_t)1234567, str);
346 fmt.format(1.41421, str, fpos);
347 fmt.format((int32_t)9876543, str, fpos);
355 // ChoiceFormat calling Format & NumberFormat API
360 // Format API
361 fmt.format(numObj, str, status);
362 fmt.format(numObj, str, fpos, status);
364 fmt.format(2.71828, str);
365 fmt.format((int32_t)1234567, str);
366 fmt.format(1.41421, str, fpos);
367 fmt.format((int32_t)9876543, str, fpos);
372 // MessageFormat calling Format API
377 // Format API
379 // We're testing name hiding, not the format method.
380 fmt.format(dateObj, str, status);
381 fmt.format(dateObj, str, fpos, status);