[phrases] adding a public get_data_node method for tries
This commit is contained in:
@@ -55,6 +55,8 @@ typedef struct trie_data_node {
|
||||
uint32_t data;
|
||||
} trie_data_node_t;
|
||||
|
||||
#define NULL_DATA_NODE (trie_data_node_t){0, 0};
|
||||
|
||||
VECTOR_INIT(trie_node_array, trie_node_t)
|
||||
VECTOR_INIT(trie_data_array, trie_data_node_t)
|
||||
|
||||
@@ -83,6 +85,8 @@ void trie_set_check(trie_t *self, uint32_t index, int32_t check);
|
||||
trie_node_t trie_get_root(trie_t *self);
|
||||
trie_node_t trie_get_free_list(trie_t *self);
|
||||
|
||||
trie_data_node_t trie_get_data_node(trie_t *self, trie_node_t node, char *str);
|
||||
|
||||
uint32_t trie_add_transition(trie_t *self, uint32_t node_id, unsigned char c);
|
||||
|
||||
void trie_make_room_for(trie_t *self, uint32_t next_id);
|
||||
|
||||
Reference in New Issue
Block a user