private char escapeChar ( ) { int ofs = image . length ( ) - 1 ; switch ( image . charAt ( ofs ) ) { case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; case ' ' : return ' ' ; } // Otherwise, it's an octal number. Find the backslash and convert. while ( image . charAt ( -- ofs ) != ' ' ) { } int value = 0 ; while ( ++ ofs < image . length ( ) ) value = ( value << 3 ) | ( image . charAt ( ofs ) - ' ' ) ; return ( char ) value ; }
Converts an escape sequence into a character value .