10 #ifndef __XTRA_TRIE_H__
11 #define __XTRA_TRIE_H__
14 static int xtTrieNumOfLetters = 26;
16 #include <xtra/common.h>
30 TrieNode * TrieNodeInit(
wchar_t data,
int numOfLetters);
39 bool TriePrintSearch(
TrieNode *root,
wchar_t *word);
New functions and types related to string and string manipulation.
TrieNode * TrieInsert(TrieNode *root, wchar_t *word)
Inserts word onto the trie.
Definition: trie.c:43
bool TrieSearch(TrieNode *root, wchar_t *word)
Searches for a given word.
Definition: trie.c:91
TrieNode * TrieDelete(TrieNode *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:72