FormatSpec.writeUpToNextSpec

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

See the description of format strings for more details about the format specifier.

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

Parameters

writer OutputRange

an output range, where the format string is written to

OutputRange

type of the output range

Return Value

Type: bool

True, if a format specifier is found and false, if the end of the format string has been reached.

Throws

A FormatException when parsing the format specifier did not succeed.

Meta