Public Types | |
typedef format | opCall |
Public Member Functions | |
this (int limit, char[] workspace=null, Format.DblFormat df=null) | |
char[] | format (char[] fmt,...) |
char[] | content () |
Private Attributes | |
int | count |
char[] | output |
Format Sprintf | sprintf |
// create a TextFormat instance TextFormat format = new TextFormat (256); // write text to Stdout Stdout (format ("%d green bottles, sitting on a wall\n", 10)); // or access the content, post formatting ... char[] text = format.content;
This can be really handy when you wish to format text in conjunction with a Logger. Please note that the class is stateful, and therefore is not shareable across multiple threads.
Definition at line 66 of file TextFormat.d.
|
Definition at line 68 of file TextFormat.d. |
|
Set the maximum buffer length Definition at line 80 of file TextFormat.d. |
|
format a set of arguments Definition at line 92 of file TextFormat.d. |
|
Address formatted output as a char[] Definition at line 104 of file TextFormat.d. Referenced by format(). |
|
Definition at line 70 of file TextFormat.d. |
|
Definition at line 71 of file TextFormat.d. |
|
Definition at line 72 of file TextFormat.d. |