Function: rfc2368-unhexify-string

rfc2368-unhexify-string is a byte-compiled function defined in rfc2368.el.gz.

Signature

(rfc2368-unhexify-string STRING)

Documentation

Unhexify STRING -- e.g. hello%20there -> hello there.

Probably introduced at or before Emacs version 28.1.

Source Code

;; Defined in /usr/src/emacs/lisp/obsolete/rfc2368.el.gz
(defun rfc2368-unhexify-string (string)
  "Unhexify STRING -- e.g. `hello%20there' -> `hello there'."
  (replace-regexp-in-string "%[[:xdigit:]]\\{2\\}"
			    (lambda (match)
			      (string (string-to-number (substring match 1)
							16)))
			    string t t))