How to escape control characters?

cy via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Mar 30 21:54:12 PDT 2016


On Thursday, 31 March 2016 at 03:23:52 UTC, Seb wrote:
> http://dlang.org/spec/lex.html#WysiwygString
>
> r"ab\n" or `ab\n`

Yes I know. But I mean like,

string a = r"ab\n";
writeln(escape(a)); // => ab\n



More information about the Digitalmars-d-learn mailing list