License:
Version:
Author:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | auto print = new FormatOutput!(char) (...); print ("hello"); // => hello print (1); // => 1 print (3.14); // => 3.14 print ('b'); // => b print (1, 2, 3); // => 1, 2, 3 print ("abc", 1, 2, 3); // => abc, 1, 2, 3 print ("abc", 1, 2) ("foo"); // => abc, 1, 2foo print ("abc") ("def") (3.14); // => abcdef3.14 print.format ("abc {}", 1); // => abc 1 print.format ("abc {}:{}", 1, 2); // => abc 1:2 print.format ("abc {1}:{0}", 1, 2); // => abc 2:1 print.format ("abc ", 1); // => abc |
1 2 3 4 5 | print ("hello world") (); print ("hello world").flush; print.format ("hello {}", "world") (); print.format ("hello {}", "world").flush; |
1 2 3 | print ("hello ") ("world").newline; print.format ("hello {}", "world").newline; print.formatln ("hello {}", "world"); |
1 2 3 4 | import tango.text.locale.Locale; auto locale = new Locale (Culture.getCulture ("fr-FR")); auto print = new FormatOutput!(char) (locale, ...); |