multiTypeString.multiTypeString

Undocumented in source.
template multiTypeString(string name, string data, string access = "public")
enum multiTypeString = access ~ " T[] " ~ name ~ "(T)()" ~ "{" ~ " static if(is(T == char)) { return \"" ~ data ~ "\"c; }" ~ " else static if(is(T == wchar)) { return \"" ~ data ~ "\"w; }" ~ " else static if(is(T == dchar)) { return \"" ~ data ~ "\"d; }" ~ " else static assert(\"T must be char, wchar, or dchar\");" ~ "}";

Meta