Function: casual-lib-unicode-db-get

casual-lib-unicode-db-get is a natively compiled function defined in casual-lib.el.

Signature

(casual-lib-unicode-db-get KEY DB)

Documentation

Lookup Unicode symbol for KEY in DB.

- KEY symbol used to lookup Unicode symbol in DB.
- DB alist containing Unicode symbol map.

 the value of customizable variable casual-lib-use-unicode
is non-nil, then the Unicode symbol is returned, otherwise a plain ASCII-range string.

Source Code

;; Defined in /nix/store/wimz22qbgb2rpqyjz09vm30wj4fkmiw4-emacs-packages-deps/share/emacs/site-lisp/elpa/casual-20260831.2129/casual-lib.el
(defun casual-lib-unicode-db-get (key db)
  "Lookup Unicode symbol for KEY in DB.

- KEY symbol used to lookup Unicode symbol in DB.
- DB alist containing Unicode symbol map.

 the value of customizable variable `casual-lib-use-unicode'
is non-nil, then the Unicode symbol is returned, otherwise a
plain ASCII-range string."
  (let* ((db db)
         (unicode casual-lib-use-unicode)
         (item (alist-get key db)))
    (if unicode
        (nth 0 (eval item))
      (nth 1 (eval item)))))