Esempio n. 1
0
 public static int? BoyerMooreFirstIndex(string text, string search)
 {
     BoyerMoore objSearch = new BoyerMoore(search);
     IEnumerable<int> objResult = objSearch.BoyerMooreMatch(text);
     if (objResult != null)
     return objResult.GetEnumerator().Current;
     else
     return null;
 }
Esempio n. 2
0
        public static int?BoyerMooreFirstIndex(string text, string search)
        {
            BoyerMoore        objSearch = new BoyerMoore(search);
            IEnumerable <int> objResult = objSearch.BoyerMooreMatch(text);

            if (objResult != null)
            {
                return(objResult.GetEnumerator().Current);
            }
            else
            {
                return(null);
            }
        }
Esempio n. 3
0
 public static IEnumerable<int> BoyerMooreSearch(string text, string search)
 {
     BoyerMoore objSearch = new BoyerMoore(search);
     return objSearch.BoyerMooreMatch(text);
 }
Esempio n. 4
0
        public static IEnumerable <int> BoyerMooreSearch(string text, string search)
        {
            BoyerMoore objSearch = new BoyerMoore(search);

            return(objSearch.BoyerMooreMatch(text));
        }