text

Convenience functions for converting one or more arguments of any type into text (the three character widths).

  1. string text(T args)
    string
    text
    (
    T...
    )
    ()
    if (
    T.length > 0
    )
  2. wstring wtext(T args)
  3. dstring dtext(T args)

Examples

assert( text(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"c);
assert(wtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"w);
assert(dtext(42, ' ', 1.5, ": xyz") == "42 1.5: xyz"d);

Meta

Suggestion Box / Bug Report