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; }
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); } }
public static IEnumerable<int> BoyerMooreSearch(string text, string search) { BoyerMoore objSearch = new BoyerMoore(search); return objSearch.BoyerMooreMatch(text); }
public static IEnumerable <int> BoyerMooreSearch(string text, string search) { BoyerMoore objSearch = new BoyerMoore(search); return(objSearch.BoyerMooreMatch(text)); }