class Bundler::URI::RFC2396_Parser

def unescape(str, escaped = @regexp[:ESCAPED])


Removes escapes from +str+.

== Description

Regexp to apply. Defaults to +self.regexp[:ESCAPED]+
+escaped+::
String to remove escapes from
+str+::

== Args

unescape( str, escaped )
unescape( str )
:call-seq:
def unescape(str, escaped = @regexp[:ESCAPED])
  enc = str.encoding
  enc = Encoding::UTF_8 if enc == Encoding::US_ASCII
  str.gsub(escaped) { [$&[1, 2]].pack('H2').force_encoding(enc) }
end