Format

Formats constants into a string at compile time. Analogous to std.string.format.

Members

Manifest constants

Format
enum Format;
Undocumented in source.
Format
enum Format;
Undocumented in source.
Format
enum Format;
Undocumented in source.

Parameters

A

tuple of constants, which can be strings, characters, or integral values.

Formats: The formats supported are %s for strings, and %% for the % character.

Examples

import std.metastrings;
import std.stdio;

void main()
{
  string s = Format!("Arg %s = %s", "foo", 27);
  writefln(s); // "Arg foo = 27"
}

Meta