OutBuffer.writef

Formats and writes its arguments in text format to the OutBuffer.

  1. void writef(const(Char)[] fmt, A args)
    class OutBuffer
    void
    writef
    (
    Char
    A...
    )
    (
    scope const(Char)[] fmt
    ,)
  2. void writef(A args)

Parameters

fmt const(Char)[]

format string as described in std.format.formattedWrite

args A

arguments to be formatted

Examples

OutBuffer b = new OutBuffer();
b.writef("a%sb", 16);
assert(b.toString() == "a16b");
OutBuffer b = new OutBuffer();
b.writef!"a%sb"(16);
assert(b.toString() == "a16b");

See Also

Meta