ExLisp.Character (exlisp v0.1.4)

Copy Markdown

Struct representing Common Lisp character (#...).

Summary

Functions

Returns the integer codepoint of the character.

Returns the name of a character code, or nil if not named (e.g. ASCII graphic chars 33..126).

Resolves a character name string to integer codepoint, or nil if unknown.

Creates a new character from a codepoint integer or single-character UTF-8 binary.

Types

t()

@type t() :: %ExLisp.Character{code: non_neg_integer()}

Functions

code(character)

Returns the integer codepoint of the character.

code_to_name(code)

Returns the name of a character code, or nil if not named (e.g. ASCII graphic chars 33..126).

name_to_code(name)

Resolves a character name string to integer codepoint, or nil if unknown.

new(code)

Creates a new character from a codepoint integer or single-character UTF-8 binary.

to_integer(character)