[phrases] Adding trie_get_data/trie_set_data + at_index methods

This commit is contained in:
Al
2015-07-20 16:39:58 -04:00
parent b9771921fc
commit 7f96726e82
2 changed files with 15 additions and 4 deletions

View File

@@ -88,7 +88,9 @@ 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_at_index(trie_t *self, uint32_t index, uint32_t *data);
bool trie_get_data(trie_t *self, char *key, uint32_t *data);
bool trie_set_data_at_index(trie_t *self, uint32_t index, 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);