canRawQuote

private fnbool canRawQuote(string s, char q) @safe pure

Checks whether content can be written verbatim as a raw string.

Raw string literals cannot contain their own quote character or any line break.

Parameters

sThe string content
qThe quote character of the style

Returns

true if the content is safe for raw-quoting.