Raxol.Terminal.CharacterSets.Translator (Raxol v0.2.0)

View Source

Provides translation logic for different character sets.

Uses map lookups for efficient character translation based on the active set. Maps only store differences from the base character set (implicitly US-ASCII).

Summary

Functions

Translates a single codepoint based on the specified character set atom.

Functions

translate_codepoint(codepoint, charset_atom)

@spec translate_codepoint(non_neg_integer(), atom()) :: non_neg_integer()

Translates a single codepoint based on the specified character set atom.

If the charset is unknown or the codepoint has no specific mapping in that charset, the original codepoint is returned.