Example #1
0
        private static void TrieSearch(List <string> list, string txt)
        {
            var tf1 = new TrieFilter();

            foreach (var item in list)
            {
                tf1.AddKey(item);
            }
        }
Example #2
0
        private static void RegexTreeSearch(List <string> list, string txt)
        {
            var tf1 = new TrieFilter();

            foreach (var item in list)
            {
                tf1.AddKey(item);
            }
            var str2 = tf1.ToString();
            var re2  = new Regex(str2);
        }