예제 #1
0
        public bool Associate(char nextChar)
        {
            if (currNode.ContainsKey(nextChar))
            {
                step++;
                this.currNode = currNode.GetChildren(nextChar);
                if (currNode.IsWordEnd)
                {
                    this.isOccurWord = true;
                }

                return(true);
            }
            else
            {
                return(false);
            }
        }