Binmoji: A 64-bit emoji encoding
6 months ago
- #emoji
- #C-library
- #unicode
- binmoji is a C library and command-line tool that encodes Unicode emojis into 64-bit integers.
- Features include compact storage, high performance, lossless conversion, and Unicode compliance.
- Emoji sequences are deconstructed and packed into a 64-bit integer with specific bit allocations.
- Includes a pre-computed lookup table for decoding Component Hashes back to original codepoints.
- Designed for efficient storage in databases without variable-length string handling.
- Supports complex emoji sequences, including those with skin tone modifiers and ZWJ sequences.
- Comes with a test suite for verifying correctness against Unicode standards.
- Simple integration into C projects with provided functions for encoding, decoding, and string conversion.