Function: hexl-hex-char-to-integer
hexl-hex-char-to-integer is a byte-compiled function defined in
hexl.el.gz.
Signature
(hexl-hex-char-to-integer CHARACTER)
Documentation
Take a char and return its value as if it was a hex digit.
Source Code
;; Defined in /usr/src/emacs/lisp/hexl.el.gz
(defun hexl-hex-char-to-integer (character)
"Take a char and return its value as if it was a hex digit."
(if (and (>= character ?0) (<= character ?9))
(- character ?0)
(let ((ch (logior character 32)))
(if (and (>= ch ?a) (<= ch ?f))
(- ch (- ?a 10))
(error "Invalid hex digit `%c'" ch)))))