From 1181f74d19f6f9e881b539ed9fdb8cc17d03f7bf Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Fri, 24 Jan 2025 09:52:57 +0100 Subject: composed: re-factor: break out key calculation from vt.c --- composed.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'composed.h') diff --git a/composed.h b/composed.h index 17158407..fcaf87d4 100644 --- a/composed.h +++ b/composed.h @@ -12,6 +12,9 @@ struct composed { uint8_t width; }; +uint32_t composed_key_from_chars(const uint32_t chars[], size_t count); +uint32_t composed_key_from_key(uint32_t prev_key, uint32_t next_char); + struct composed *composed_lookup(struct composed *root, uint32_t key); void composed_insert(struct composed **root, struct composed *node); -- cgit v1.3