Exemple #1
0
        public BranchNode FindBranch(string s)
        {
            if (string.IsNullOrEmpty(s))
            {
                return(null);
            }
            BranchNode n = root;
            int        i = 0;

            for (; i < s.Length; i++)
            {
                n = n.FindChild(s[i]);
                if (n == null)
                {
                    return(null);
                }
            }
            return(n);
        }