Public Member Functions | |
this (int limit) | |
char[] | format (char[] fmt,...) |
char[] | format (char[] fmt, va_list args) |
char[] | content () |
Private Attributes | |
int | count |
char[] | output |
// create a TextFormat instance TextFormat p = new TextFormat (256); // write text to Stdout Stdout << p.format ("%d green bottles, sitting on a wall\n", 10); // or access the content, post formatting ... char[] text = p.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 67 of file TextFormat.d.
|
Set the maximum buffer length Definition at line 78 of file TextFormat.d. |
|
format a set of arguments Definition at line 89 of file TextFormat.d. Referenced by testFormat(). |
|
format a va_list of arguments Definition at line 104 of file TextFormat.d. |
|
Address formatted output as a char[] Definition at line 127 of file TextFormat.d. Referenced by format(). |
|
Definition at line 69 of file TextFormat.d. |
|
Definition at line 70 of file TextFormat.d. |