dtext

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

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

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