diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2025-01-24 08:52:57 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2025-02-06 06:42:37 +0000 |
| commit | 1181f74d19f6f9e881b539ed9fdb8cc17d03f7bf (patch) | |
| tree | d38f9c59090587e4037906195ae71881d4bfcd60 /composed.h | |
| parent | term: insert-mode: handle combining characters correctly (diff) | |
composed: re-factor: break out key calculation from vt.c
Diffstat (limited to 'composed.h')
| -rw-r--r-- | composed.h | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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); |
