Expand description
Β§base_emoji
Convert everything to Emojis (and back)!
π«π¦π₯π²π¬ππππ¬π²π¬ππππ§ππ₯πͺπππ¦πππ£π¦πππ€π
Reimplementation of base_emoji (JavaScript).
Β§Example
let input = [0xde, 0xad, 0xbe, 0xef];
let output = "βοΈπΌππ
";
assert_eq!(base_emoji::to_string(&input), output);
Β§Encoding (same as original implementation)
Citing the README:
The emojis used are in
emojis.json
. There are 843 emojis there, but the converter reads sequences of 8 bits at a time, and so only maps the value to the first 256 of them. To stay consistent with other renderings, make sure you donβt change the order of your emojis.json.
Β§Decoding
Decoding requires the use of only the same 256 emojis used above.
Β§License
MIT. See included LICENSE
file.
Enums§
Functions§
- Encode buffer as a base-emoji buffer
- Encode buffer as custom-mapped string
- Encode buffer as a string of emoji names
- Encode buffer as a base-emoji string
- Decode a base-emoji string slice to a vector of u8βs