Layout

Contains methods for replacing format items in a string with string equivalents of each argument.

Members

Aliases

Sink
alias Sink = size_t delegate(const(T)[])
Undocumented in source.
opCall
alias opCall = convert
Undocumented in source.

Functions

convert
T[] convert(const(T)[] formatStr, ...)

Replaces the format item in a string with the string equivalent of each argument.

convert
uint convert(Sink sink, const(T)[] formatStr, ...)
convert
uint convert(OutputStream output, const(T)[] formatStr, ...)

Tentative convert using an OutputStream as sink - may still be removed.

convert
T[] convert(TypeInfo[] arguments, ArgList args, const(T)[] formatStr)
convert
uint convert(Sink sink, TypeInfo[] arguments, ArgList args, const(T)[] formatStr)
convertOne
T[] convertOne(T[] result, TypeInfo ti, Arg arg)
floater
T[] floater(T[] output, real v, const(T)[] format)

format a floating-point value. Defaults to 2 decimal places

integer
T[] integer(T[] output, long v, const(T)[] format, ulong mask, const(T)[] def)

Format an integer value

sprint
T[] sprint(T[] result, const(T)[] formatStr, ...)
unknown
T[] unknown(T[] result, const(T)[] format, const(TypeInfo) type, Arg p)

handle "unknown-type" errors

vprint
T[] vprint(T[] result, const(T)[] formatStr, TypeInfo[] arguments, ArgList args)

Properties

instance
Layout instance [@property getter]

Return shared instance

Meta