1 #ifndef __REIS_TRIE_H__
2 #define __REIS_TRIE_H__
11 static int rsTrieAlphabetSize = 26;
20 trie_t* rsTrieInit(
wchar_t data,
int numOfLetters);
21 void rsTrieFree(
trie_t *node);
28 void rsTriePrint(
trie_t *root);
29 bool rsTriePrintSearch(
trie_t *root,
wchar_t *word);
Shared types and functions, accounts for GNU Linux and MacOS specifications.
bool rsTrieSearch(trie_t *root, wchar_t *word)
Searches for a given word.
Definition: trie.c:85
trie_t * rsTrieInsert(trie_t *root, wchar_t *word)
Inserts word onto the trie.
Definition: trie.c:43
trie_t * rsTrieDelete(trie_t *root, wchar_t *word)
Deletes words from trie. Will try to delete the word sequence from trie only if it ends up in a leaf ...
Definition: trie.c:67