1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 09:34:59 +00:00

LibUnicode: Generate the path to emoji images alongside emoji data

This will provide for quicker emoji lookups, rather than having to
discover and allocate these paths at runtime before we find out if they
even exist.
This commit is contained in:
Timothy Flynn 2023-02-22 20:51:26 -05:00 committed by Linus Groh
parent 4212010ebd
commit 8c38d46c1a
3 changed files with 24 additions and 12 deletions

View file

@ -32,6 +32,7 @@ enum class EmojiGroup : u8 {
struct Emoji {
StringView name;
Optional<StringView> image_path;
EmojiGroup group { EmojiGroup::Unknown };
u32 display_order { 0 };
ReadonlySpan<u32> code_points;