public function Unescaper::unescapeDoubleQuotedString in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/symfony/yaml/Unescaper.php \Symfony\Component\Yaml\Unescaper::unescapeDoubleQuotedString()
Unescapes a double quoted string.
Parameters
string $value A double quoted string.:
Return value
string The unescaped string.
File
- vendor/
symfony/ yaml/ Symfony/ Component/ Yaml/ Unescaper.php, line 50
Class
- Unescaper
- Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.
Namespace
Symfony\Component\YamlCode
public function unescapeDoubleQuotedString($value) {
$self = $this;
$callback = function ($match) use ($self) {
return $self
->unescapeCharacter($match[0]);
};
// evaluate the string
return preg_replace_callback('/' . self::REGEX_ESCAPED_CHARACTER . '/u', $callback, $value);
}