Escaper encapsulates escaping 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
◆ escapeWithDoubleQuotes()
static escapeWithDoubleQuotes |
( |
|
$value | ) |
|
|
static |
Escapes and surrounds a PHP value with double quotes.
- Parameters
-
- Returns
- string The quoted, escaped string
◆ escapeWithSingleQuotes()
static escapeWithSingleQuotes |
( |
|
$value | ) |
|
|
static |
Escapes and surrounds a PHP value with single quotes.
- Parameters
-
- Returns
- string The quoted, escaped string
◆ requiresDoubleQuoting()
static requiresDoubleQuoting |
( |
|
$value | ) |
|
|
static |
Determines if a PHP value would require double quoting in YAML.
- Parameters
-
- Returns
- bool True if the value would require double quotes
◆ requiresSingleQuoting()
static requiresSingleQuoting |
( |
|
$value | ) |
|
|
static |
Determines if a PHP value would require single quoting in YAML.
- Parameters
-
- Returns
- bool True if the value would require single quotes
◆ REGEX_CHARACTER_TO_ESCAPE
const REGEX_CHARACTER_TO_ESCAPE = "[\\x00-\\x1f]|\xc2\x85|\xc2\xa0|\xe2\x80\xa8|\xe2\x80\xa9" |
The documentation for this class was generated from the following file:
- C:/xoops2511b2/htdocs/class/libraries/vendor/symfony/yaml/Escaper.php