string -> string literal
Ellery Newcomer via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sun Apr 20 10:55:24 PDT 2014
is there a function in phobos anywhere that takes a string and
escapes it into a string literal suitable for string mixins?
something like
assert (f("abc\ndef") == "\"abc\\ndef\"");
More information about the Digitalmars-d-learn
mailing list