mirror of
https://github.com/dlang/dmd.git
synced 2025-04-26 21:21:48 +03:00
24 lines
455 B
D
24 lines
455 B
D
// REQUIRED_ARGS: -inline
|
|
// PERMUTE_ARGS:
|
|
|
|
void doFormat(void delegate(dchar) putc, TypeInfo[] arguments)
|
|
{
|
|
void formatArg(char fc)
|
|
{
|
|
const(char)* prefix = "";
|
|
|
|
void putstr(const char[] s)
|
|
{
|
|
//if (flags & FL0pad)
|
|
{
|
|
while (*prefix)
|
|
putc(*prefix++);
|
|
}
|
|
|
|
foreach (dchar c; s)
|
|
putc(c);
|
|
}
|
|
|
|
putstr(null);
|
|
}
|
|
}
|