[phrases] trie_get_data and trie_set_data interface for simpler dictionary-style trie get/set
This commit is contained in:
@@ -87,6 +87,10 @@ 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);
|
||||
bool trie_set_data_node(trie_t *self, uint32_t index, trie_data_node_t data_node);
|
||||
|
||||
bool trie_get_data(trie_t *self, char *key, uint32_t *data);
|
||||
bool trie_set_data(trie_t *self, char *key, uint32_t data);
|
||||
|
||||
bool trie_tail_match(trie_t *self, char *str, uint32_t tail_index);
|
||||
|
||||
uint32_t trie_add_transition(trie_t *self, uint32_t node_id, unsigned char c);
|
||||
|
||||
Reference in New Issue
Block a user