Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.
- Author
- Matthew Lewinski matth.nosp@m.ew@l.nosp@m.ewins.nosp@m.ki.o.nosp@m.rg
◆ unescapeCharacter()
unescapeCharacter |
( |
|
$value | ) |
|
Unescapes a character that was found in a double-quoted string.
- Parameters
-
string | $value | An escaped character |
- Returns
- string The unescaped character
◆ unescapeDoubleQuotedString()
unescapeDoubleQuotedString |
( |
|
$value | ) |
|
Unescapes a double quoted string.
- Parameters
-
string | $value | A double quoted string |
- Returns
- string The unescaped string
◆ unescapeSingleQuotedString()
unescapeSingleQuotedString |
( |
|
$value | ) |
|
Unescapes a single quoted string.
- Parameters
-
string | $value | A single quoted string |
- Returns
- string The unescaped string
◆ ENCODING
Parser and Inline assume UTF-8 encoding, so escaped Unicode characters must be converted to that encoding.
- Deprecated:
- since version 2.5, to be removed in 3.0
◆ REGEX_ESCAPED_CHARACTER
const REGEX_ESCAPED_CHARACTER = '\\\\(x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8}|.)' |
Regex fragment that matches an escaped character in a double quoted string.
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/symfony/yaml/Unescaper.php