Basic constructor macro for unicode structures.
(make-unicode [:codepoint <codepoint>])
This is the usual way to construct unicode structures. It simply conses together a structure with the specified fields.
This macro generates a new unicode structure from scratch. See also change-unicode, which can "change" an existing structure, instead.
This is an ordinary
Macro:
(defmacro make-unicode (&rest args) (std::make-aggregate 'unicode args '((:codepoint)) 'make-unicode nil))
Function:
(defun unicode (codepoint) (declare (xargs :guard (natp codepoint))) (declare (xargs :guard (<= codepoint 1114111))) (let ((__function__ 'unicode)) (declare (ignorable __function__)) (b* ((codepoint (mbe :logic (nfix codepoint) :exec codepoint))) (let ((codepoint (mbe :logic (if (<= codepoint 1114111) codepoint 0) :exec codepoint))) (cons :unicode (list (cons 'codepoint codepoint)))))))