toEscape

fndchar toEscape(dchar value) @safe pure nothrow @nogc

Convert a dchar to a YAML escape.

Parameters

valueThe possibly escapable character.

Returns

If the character passed as parameter can be escaped, returns the matching

escape, otherwise returns a null character.