Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.
author |
Matthew Lewinski |
---|
unescapeSingleQuotedString(string $value) : string
string
A single quoted string.
string
The unescaped string.
unescapeDoubleQuotedString(string $value) : string
string
A double quoted string.
string
The unescaped string.
unescapeCharacter(string $value) : string
string
An escaped character
string
The unescaped character
convertEncoding(string $value, string $to, string $from) : string
throws |
if no suitable encoding function is found (iconv or mbstring) |
---|---|
string
The string to convert
string
The input encoding
string
The output encoding
string
The string with the new encoding
ENCODING
REGEX_ESCAPED_CHARACTER