Function: list-block-of-chars
list-block-of-chars is a byte-compiled function defined in
mule-diag.el.gz.
Signature
(list-block-of-chars CHARSET ROW MIN MAX)
Source Code
;; Defined in /usr/src/emacs/lisp/international/mule-diag.el.gz
;; List characters of the range MIN and MAX of CHARSET. If dimension
;; of CHARSET is two (i.e. 2-byte charset), ROW is the first byte
;; (block index) of the characters, and MIN and MAX are the second
;; bytes of the characters. If the dimension is one, ROW should be 0.
(defun list-block-of-chars (charset row min max)
(let (i ch)
(insert-char ?- (+ 7 (* 4 16)))
(insert "\n ")
(setq i 0)
(while (< i 16)
(insert (format "%4X" i))
(setq i (1+ i)))
(setq i (* (/ min 16) 16))
(while (<= i max)
(if (= (% i 16) 0)
(insert (format "\n%6Xx" (/ (+ (* row 256) i) 16))))
(setq ch (if (< i min)
32
(or (decode-char charset (+ (* row 256) i))
32))) ; gap in mapping
;; Don't insert control codes, non-Unicode characters.
(if (or (< ch 32) (= ch 127))
(setq ch (single-key-description ch))
(if (and (>= ch 128) (< ch 160))
(setq ch (format "%02Xh" ch))
(if (> ch #x10FFFF)
(setq ch 32))))
(insert "\t" ch)
(setq i (1+ i))))
(insert "\n"))