LibreOffice Module editeng (master) 1
|
Public Member Functions | |
TrieNode (sal_Unicode aCharacter='\0') | |
void | markWord () |
TrieNode * | findChild (sal_Unicode aCharacter) |
TrieNode * | traversePath (std::u16string_view sPath) |
void | addNewChild (TrieNode *pChild) |
void | collectSuggestions (std::u16string_view sPath, std::vector< OUString > &rSuggestionList) |
Static Public Member Functions | |
static void | collectSuggestionsForCurrentNode (TrieNode *pCurrent, std::u16string_view sPath, std::vector< OUString > &rSuggestionList) |
Public Attributes | |
sal_Unicode | mCharacter |
bool | mMarker |
std::vector< std::unique_ptr< TrieNode > > | mChildren |
std::unique_ptr< TrieNode > | mLatinArray [LATIN_ARRAY_SIZE] |
Static Public Attributes | |
static const int | LATIN_ARRAY_SIZE = 26 |
|
explicit |
Definition at line 40 of file Trie.cxx.
References i, and mLatinArray.
void editeng::TrieNode::addNewChild | ( | TrieNode * | pChild | ) |
Definition at line 55 of file Trie.cxx.
References mCharacter, mChildren, mLatinArray, and u.
Referenced by editeng::Trie::insert().
void editeng::TrieNode::collectSuggestions | ( | std::u16string_view | sPath, |
std::vector< OUString > & | rSuggestionList | ||
) |
Definition at line 85 of file Trie.cxx.
References collectSuggestionsForCurrentNode(), mChildren, and mLatinArray.
Referenced by collectSuggestionsForCurrentNode(), and editeng::Trie::findSuggestions().
|
static |
Definition at line 102 of file Trie.cxx.
References collectSuggestions(), mCharacter, and mMarker.
Referenced by collectSuggestions().
TrieNode * editeng::TrieNode::findChild | ( | sal_Unicode | aCharacter | ) |
Definition at line 68 of file Trie.cxx.
References mChildren, mLatinArray, and u.
Referenced by editeng::Trie::insert(), and traversePath().
void editeng::TrieNode::markWord | ( | ) |
TrieNode * editeng::TrieNode::traversePath | ( | std::u16string_view | sPath | ) |
Definition at line 113 of file Trie.cxx.
References findChild().
sal_Unicode editeng::TrieNode::mCharacter |
Definition at line 25 of file Trie.cxx.
Referenced by addNewChild(), and collectSuggestionsForCurrentNode().
std::vector<std::unique_ptr<TrieNode> > editeng::TrieNode::mChildren |
Definition at line 27 of file Trie.cxx.
Referenced by addNewChild(), collectSuggestions(), and findChild().
std::unique_ptr<TrieNode> editeng::TrieNode::mLatinArray[LATIN_ARRAY_SIZE] |
Definition at line 28 of file Trie.cxx.
Referenced by addNewChild(), collectSuggestions(), findChild(), and TrieNode().
bool editeng::TrieNode::mMarker |
Definition at line 26 of file Trie.cxx.
Referenced by collectSuggestionsForCurrentNode(), and markWord().