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\"");

Reply via email to