babel

2024-10-12

Babel, a charset conversion library.

Upstream URL

github.com/cl-babel/babel

Author

Luis Oliveira <loliveira@common-lisp.net>, Dr. Edmund Weitz, Attila Lendvai <attila.lendvai@gmail.com>

License

MIT
README

Build Status

Babel is a charset encoding/decoding library, not unlike GNU libiconv, but completely written in Common Lisp.

It strives to achieve decent performance. To that effect, we use OpenMCL's approach of calculating the destination buffer size in advance. Most of the encoding/decoding algorithms have been adapted from OpenMCL's source.

Another important goal is reusability. Similarly to SBCL, we define an interface wherein the algorithms can be reused between a variety of data types so long we're dealing with conversions between octets and unicode code points.

Babel comes with converters between strings and (unsigned-byte 8) vectors but can be easily extended to deal with, e.g., strings and foreign memory, vectors and Closure's runes, etc...

Dependencies (4)

  • alexandria
  • hu.dwim.stefil
  • trivial-features
  • trivial-gray-streams
  • GitHub
  • Quicklisp