Function: uuid-to-string
uuid-to-string is a byte-compiled function defined in uuid.el.gz.
Signature
(uuid-to-string ID)
Documentation
Convert the uuid object ID to a string.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/uuid.el.gz
(defun uuid-to-string (id)
"Convert the uuid object ID to a string."
(let ((low (uuid--low id))
(high (uuid--high id)))
(format "%08x-%04x-%04x-%04x-%012x"
(uuid--upper-bits high 32 48)
(uuid--lower-bits high 16)
(uuid--concat-bits
(uuid--ver id) 4
(uuid--mid id) 12)
(uuid--concat-bits
(uuid--var id) 2
(uuid--upper-bits low 14 62) 14)
(uuid--lower-bits low 48))))