FormatSpec.writeUpToNextSpec

Write the format string to an output range until the next format specifier is found and parse that format specifier.

See FormatSpec for an example, how to use writeUpToNextSpec.

struct FormatSpec(Char)
scope
bool
writeUpToNextSpec
(
OutputRange
)
(
ref OutputRange writer
)
if (
is(Unqual!Char == Char)
)

Parameters

writer OutputRange

Return Value

Type: bool

True, when a format specifier is found.

Throws

A FormatException when the found format specifier could not be parsed.

Meta

Suggestion Box / Bug Report