Escaper encapsulates escaping rules for single and double-quoted YAML strings.
author |
Matthew Lewinski |
---|
requiresDoubleQuoting(string $value) : Boolean
string
A PHP value
Boolean
True if the value would require double quotes.
escapeWithDoubleQuotes(string $value) : string
string
A PHP value
string
The quoted, escaped string
requiresSingleQuoting(string $value) : Boolean
string
A PHP value
Boolean
True if the value would require single quotes.
escapeWithSingleQuotes(string $value) : string
string
A PHP value
string
The quoted, escaped string
REGEX_CHARACTER_TO_ESCAPE
escapees :
escaped :