toEscape

Convert a dchar to a YAML escape.

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

Parameters

value
Type: dchar

The possibly escapable character.

Return Value

Type: dchar

If the character passed as parameter can be escaped, returns the matching escape, otherwise returns a null character.

Meta