Function: dbus-unescape-from-identifier

dbus-unescape-from-identifier is a byte-compiled function defined in dbus.el.gz.

Signature

(dbus-unescape-from-identifier STRING)

Documentation

Retrieve the original string from the encoded STRING as unibyte string.

STRING must have been encoded with dbus-escape-as-identifier.

Source Code

;; Defined in /usr/src/emacs/lisp/net/dbus.el.gz
(defun dbus-unescape-from-identifier (string)
  "Retrieve the original string from the encoded STRING as unibyte string.
STRING must have been encoded with `dbus-escape-as-identifier'."
  (if (string-equal string "_")
      ""
    (replace-regexp-in-string
     "_.."
     (lambda (x) (byte-to-string (string-to-number (substring x 1) 16)))
     string nil t)))