40        return str_replace(
'\'\
'', 
'\'', $value);
 
   52        $callback = 
function ($match) {
 
   57        return preg_replace_callback(
'/'.self::REGEX_ESCAPED_CHARACTER.
'/u', $callback, $value);
 
  106                return "\xE2\x80\xA8";
 
  109                return "\xE2\x80\xA9";
 
  117                throw new ParseException(sprintf(
'Found unknown escape character "%s".', $value));
 
  130        if (0x80 > 
$c %= 0x200000) {
 
  134            return chr(0xC0 | 
$c >> 6).chr(0x80 | 
$c & 0x3F);
 
  137            return chr(0xE0 | 
$c >> 12).chr(0x80 | 
$c >> 6 & 0x3F).chr(0x80 | 
$c & 0x3F);
 
  140        return chr(0xF0 | 
$c >> 18).chr(0x80 | 
$c >> 12 & 0x3F).chr(0x80 | 
$c >> 6 & 0x3F).chr(0x80 | 
$c & 0x3F);
 
An exception for terminatinating execution or to throw for unit testing.
Exception class thrown when an error occurs during parsing.
Unescaper encapsulates unescaping rules for single and double-quoted YAML strings.
static utf8chr($c)
Get the UTF-8 character for the given code point.
unescapeCharacter($value)
Unescapes a character that was found in a double-quoted string.
const REGEX_ESCAPED_CHARACTER
Regex fragment that matches an escaped character in a double quoted string.
unescapeSingleQuotedString($value)
Unescapes a single quoted string.
unescapeDoubleQuotedString($value)
Unescapes a double quoted string.