combine

Combine a series of text segments together, each prefixed and/or postfixed with optional strings. An optional output buffer can be provided to avoid heap activity - which should be large enough to contain the entire output, otherwise the heap will be used instead.

Note that, unlike join(), the output buffer is specified first such that a set of trailing strings can be provided.

Returns a valid slice of the output, containing the concatenated text.

mstring
combine
(
mstring dst
,
cstring prefix
,
cstring postfix
,
const(char[])[] src...
)

Meta