• Home
  • Raw
  • Download

Lines Matching refs:FORMAT

168 #define FORMAT(f,v,exp) \  macro
453 FORMAT("{3} {1} {2}", 1 % 2 % 3,"3 1 2"); in test_format()
454 FORMAT("{1} {2}", "hello" % 2,"hello 2"); in test_format()
455 FORMAT("{1}",1200.1,"1200.1"); in test_format()
456 FORMAT("Test {1,num}",1200.1,"Test 1,200.1"); in test_format()
457 FORMAT("{{}} {1,number}",1200.1,"{} 1,200.1"); in test_format()
460 FORMAT("{1,num=sci,p=3}",13.1,"1.310E1"); in test_format()
461 FORMAT("{1,num=scientific,p=3}",13.1,"1.310E1"); in test_format()
463 FORMAT("{1,num=fix,p=3}",13.1,"13.100"); in test_format()
464 FORMAT("{1,num=fixed,p=3}",13.1,"13.100"); in test_format()
465 FORMAT("{1,<,w=3,num}",-1,"-1 "); in test_format()
466 FORMAT("{1,>,w=3,num}",1," 1"); in test_format()
467 FORMAT("{per,1}",0.1,"10%"); in test_format()
468 FORMAT("{percent,1}",0.1,"10%"); in test_format()
469 FORMAT("{1,cur}",1234,"$1,234.00"); in test_format()
470 FORMAT("{1,currency}",1234,"$1,234.00"); in test_format()
473 FORMAT("{1,cur,locale=de_DE}",10,"10,00\xC2\xA0€"); in test_format()
475 FORMAT("{1,cur,locale=de_DE}",10,"10,00 €"); in test_format()
478 FORMAT("{1,cur=nat}",1234,"$1,234.00"); in test_format()
479 FORMAT("{1,cur=national}",1234,"$1,234.00"); in test_format()
480 FORMAT("{1,cur=iso}",1234,"USD1,234.00"); in test_format()
482 FORMAT("{1,spell}",10,"ten"); in test_format()
483 FORMAT("{1,spellout}",10,"ten"); in test_format()
486 FORMAT("{1,ord}",1,"1\xcb\xa2\xe1\xb5\x97"); in test_format()
487 FORMAT("{1,ordinal}",1,"1\xcb\xa2\xe1\xb5\x97"); in test_format()
490 FORMAT("{1,ord}",1,"1st"); in test_format()
491 FORMAT("{1,ordinal}",1,"1st"); in test_format()
501 FORMAT("{1,ftime='''%H:%M:%S'''}",now,local_time_str); in test_format()
502 FORMAT("{1,local,ftime='''%H:%M:%S'''}",now,local_time_str); in test_format()
503 FORMAT("{1,ftime='''%H:%M:%S'''}",now,local_time_str); in test_format()
509 FORMAT("{1,date,gmt};{1,time,gmt};{1,datetime,gmt};{1,dt,gmt}",a_datetime, in test_format()
512 FORMAT("{1,time=short,gmt};{1,time=medium,gmt};{1,time=long,gmt};{1,date=full,gmt}",a_datetime, in test_format()
514 FORMAT("{1,time=s,gmt};{1,time=m,gmt};{1,time=l,gmt};{1,date=f,gmt}",a_datetime, in test_format()
517 FORMAT("{1,time=short,gmt};{1,time=medium,gmt};{1,time=long,gmt};{1,date=full,gmt}",a_datetime, in test_format()
519 FORMAT("{1,time=s,gmt};{1,time=m,gmt};{1,time=l,gmt};{1,date=f,gmt}",a_datetime, in test_format()
522 FORMAT("{1,time=s,tz=GMT+01:00}",a_datetime,"4:33 PM"); in test_format()
523 FORMAT("{1,time=s,timezone=GMT+01:00}",a_datetime,"4:33 PM"); in test_format()
525 FORMAT("{1,gmt,ftime='%H'''}",a_datetime,"15'"); in test_format()
526 FORMAT("{1,gmt,ftime='''%H'}",a_datetime,"'15"); in test_format()
527 FORMAT("{1,gmt,ftime='%H o''clock'}",a_datetime,"15 o'clock"); in test_format()
532 FORMAT("{1,gmt,ftime='%Y'}",a_datetime,"2013"); in test_format()
533 FORMAT("{1,gmt,ftime='%y'}",a_datetime,"13"); in test_format()
534 FORMAT("{1,gmt,ftime='%D'}",a_datetime,"12/31/13"); in test_format()