quoteString

fnstring quoteString(string s, CdmFormat.QuoteStyle style) @safe pure

Quotes a string with the specified style.

Styles the content cannot represent verbatim (single-line triple-quoted strings, raw strings containing their quote or newlines, backticks) fall back to escaped double quotes so the output always re-parses.

Parameters

sThe string to quote
styleThe quote style to use

Returns

The quoted string.