layout

Arranges text strings in order, using indices to specify where each particular argument should be positioned within the text. This is handy for collating I18N components, or as a simplistic and lightweight formatter. Indices range from zero through nine.

// write ordered text to the console
char[64] tmp;

Cout (layout (tmp, "%1 is after %0", "zero", "one")).newline;
T[]
layout
(
T
)
(
T[] output
,
const(T[])[] layout...
)

Meta