oss/libs/symfony/yaml/Symfony/Component/Yaml/Unescaper.php
public function unescapeCharacter($value)
    {
        switch ($value{1}) {
            case '0':
                return "\x0";
            case 'a':
                return "\x7";
            case 'b':
                return "\x8";
            case 't':
                return "\t";
            case "\t":
                return "\t";
            case 'n':
                return "\n";
            case 'v':
                return "\xb";
            case 'f':
                return "\xc";
            case 'r':
                return "\xd";
            case 'e':
                return "\x1b";
            case ' ':
                return ' ';
            case '"':
                return '"';
            case '/':
                return '/';
            case '\\':
                return '\\';
            case 'N':
                // U+0085 NEXT LINE
                return $this->convertEncoding("\x00\x85", self::ENCODING, 'UCS-2BE');
            case '_':
                // U+00A0 NO-BREAK SPACE
                return $this->convertEncoding("\x00\xA0", self::ENCODING, 'UCS-2BE');
            case 'L':
                // U+2028 LINE SEPARATOR
                return $this->convertEncoding("\x20\x28", self::ENCODING, 'UCS-2BE');
            case 'P':
                // U+2029 PARAGRAPH SEPARATOR
                return $this->convertEncoding("\x20\x29", self::ENCODING, 'UCS-2BE');
            case 'x':
                $char = pack('n', hexdec(substr($value, 2, 2)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE');
            case 'u':
                $char = pack('n', hexdec(substr($value, 2, 4)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE');
            case 'U':
                $char = pack('N', hexdec(substr($value, 2, 8)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-4BE');
        }
    }
public function unescapeCharacter($value)
    {
        switch ($value{1}) {
            case '0':
                return "\x0";
            case 'a':
                return "\x7";
            case 'b':
                return "\x8";
            case 't':
                return "\t";
            case "\t":
                return "\t";
            case 'n':
                return "\n";
            case 'v':
                return "\xb";
            case 'f':
                return "\xc";
            case 'r':
                return "\xd";
            case 'e':
                return "\x1b";
            case ' ':
                return ' ';
            case '"':
                return '"';
            case '/':
                return '/';
            case '\\':
                return '\\';
            case 'N':
                // U+0085 NEXT LINE
                return $this->convertEncoding("\x00\x85", self::ENCODING, 'UCS-2BE');
            case '_':
                // U+00A0 NO-BREAK SPACE
                return $this->convertEncoding("\x00\xA0", self::ENCODING, 'UCS-2BE');
            case 'L':
                // U+2028 LINE SEPARATOR
                return $this->convertEncoding("\x20\x28", self::ENCODING, 'UCS-2BE');
            case 'P':
                // U+2029 PARAGRAPH SEPARATOR
                return $this->convertEncoding("\x20\x29", self::ENCODING, 'UCS-2BE');
            case 'x':
                $char = pack('n', hexdec(substr($value, 2, 2)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE');
            case 'u':
                $char = pack('n', hexdec(substr($value, 2, 4)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-2BE');
            case 'U':
                $char = pack('N', hexdec(substr($value, 2, 8)));

                return $this->convertEncoding($char, self::ENCODING, 'UCS-4BE');
        }
    }
public function unescapeCharacter ( $ value ) { switch ( $ value { 1 } ) { case '0' : return "\x0" ; case 'a' : return "\x7" ; case 'b' : return "\x8" ; case 't' : return "\t" ; case "\t" : return "\t" ; case 'n' : return "\n" ; case 'v' : return "\xb" ; case 'f' : return "\xc" ; case 'r' : return "\xd" ; case 'e' : return "\x1b" ; case ' ' : return ' ' ; case '"' : return '"' ; case '/' : return '/' ; case '\\' : return '\\' ; case 'N' : // U+0085 NEXT LINE return $ this -> convertEncoding ( "\x00\x85" , self :: ENCODING , 'UCS-2BE' ) ; case '_' : // U+00A0 NO-BREAK SPACE return $ this -> convertEncoding ( "\x00\xA0" , self :: ENCODING , 'UCS-2BE' ) ; case 'L' : // U+2028 LINE SEPARATOR return $ this -> convertEncoding ( "\x20\x28" , self :: ENCODING , 'UCS-2BE' ) ; case 'P' : // U+2029 PARAGRAPH SEPARATOR return $ this -> convertEncoding ( "\x20\x29" , self :: ENCODING , 'UCS-2BE' ) ; case 'x' : $ char = pack ( 'n' , hexdec ( substr ( $ value , 2 , 2 ) ) ) ; return $ this -> convertEncoding ( $ char , self :: ENCODING , 'UCS-2BE' ) ; case 'u' : $ char = pack ( 'n' , hexdec ( substr ( $ value , 2 , 4 ) ) ) ; return $ this -> convertEncoding ( $ char , self :: ENCODING , 'UCS-2BE' ) ; case 'U' : $ char = pack ( 'N' , hexdec ( substr ( $ value , 2 , 8 ) ) ) ; return $ this -> convertEncoding ( $ char , self :: ENCODING , 'UCS-4BE' ) ; } }
Unescapes a character that was found in a double-quoted string

@param string $value An escaped character

@return string The unescaped character
Unescapes a character that was found in a double - quoted string