aboutsummaryrefslogtreecommitdiff
path: root/composed.h
blob: 17158407adb5d719370e30b2972cb1b9393aedaa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <stdint.h>
#include <uchar.h>

struct composed {
    char32_t *chars;
    struct composed *left;
    struct composed *right;
    uint32_t key;
    uint8_t count;
    uint8_t width;
};

struct composed *composed_lookup(struct composed *root, uint32_t key);
void composed_insert(struct composed **root, struct composed *node);

void composed_free(struct composed *root);