JiebaNet.Segmenter.Common.Trie.ContainsPrefix C# (CSharp) Method

ContainsPrefix() public method

public ContainsPrefix ( string word ) : bool
word string
return bool
        public bool ContainsPrefix(string word)
        {
            CheckWord(word);

            var node = Root.Search(word.Trim(), 0);
            return node.IsNotNull();
        }