multiline string literal with CRLF

anonymous via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Wed Aug 26 11:37:24 PDT 2015


On Wednesday 26 August 2015 20:28, Marek Janukowicz wrote:

> Is there any way to input such a literal? Both `...` and q"EOS...EOS" do
> not allow escape sequences. I'm on Linux, but I need precisely CRLF, not
> just \n.

I'm probably missing the point, but:

"Hello\r\nworld"

Or if you want to include the \n verbatim:

"Hello\r
world"



More information about the Digitalmars-d-learn mailing list