class RuboCop::StringInterpreter
def interpret_string_escape(escape)
def interpret_string_escape(escape) case escape[1] when 'u'.freeze then interpret_unicode(escape) when 'x'.freeze then interpret_hex(escape) when /\d/ then interpret_octal(escape) else escape[1] # literal escaped char, like \\ end end