Property | Type | Description | |
---|---|---|---|
root |
Method | Description | |
---|---|---|
AddWord ( String word ) : void |
Append word to the prefix tree
|
|
GetNode ( String argString ) : |
Get node for given word or prefix
|
|
GetPrefix ( String prefix ) : |
Get node for given prefix if exists
|
|
GetWord ( String word ) : |
Get node for given word if exists
|
|
Trie ( ) : System |
Init empty prefix tree
|
|
Trie ( IEnumerable |
Init prefix tree for given lexicon
|
|
СontainsPrefix ( String prefix ) : bool |
Check if trie contains given prefix
|
|
СontainsWord ( String word ) : bool |
Check if trie contains given word
|
Method | Description | |
---|---|---|
Сontains ( String argString, bool word ) : bool |
Check if trie contains given word or prefix
|
public GetNode ( String argString ) : |
||
argString | String | |
return |
public GetPrefix ( String prefix ) : |
||
prefix | String | |
return |
public СontainsPrefix ( String prefix ) : bool | ||
prefix | String | |
return | bool |