Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.
- Auteur
- 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.
- Paramètres
-
string | $value | An escaped character |
- Renvoie
- string The unescaped character
◆ unescapeDoubleQuotedString()
unescapeDoubleQuotedString |
( |
|
$value | ) |
|
Unescapes a double quoted string.
- Paramètres
-
string | $value | A double quoted string |
- Renvoie
- string The unescaped string
◆ unescapeSingleQuotedString()
unescapeSingleQuotedString |
( |
|
$value | ) |
|
Unescapes a single quoted string.
- Paramètres
-
string | $value | A single quoted string |
- Renvoie
- string The unescaped string
◆ utf8chr()
Get the UTF-8 character for the given code point.
- Paramètres
-
int | $c | The unicode code point |
- Renvoie
- string The corresponding UTF-8 character
◆ ENCODING
Parser and Inline assume UTF-8 encoding, so escaped Unicode characters must be converted to that encoding.
- Obsolète:
- 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.
La documentation de cette classe a été générée à partir du fichier suivant :
- XoopsCore25-2.5.11-Beta1/htdocs/class/libraries/vendor/symfony/yaml/Unescaper.php