/// <summary> /// Return all matches of the pattern in specified text using the Turbo Boyer-Moore algorithm /// </summary> /// <param name="text">text to be searched</param> /// <param name="pattern">pattern to match</param> /// <returns>IEnumerable which returns the indexes of pattern matches</returns> public static IEnumerable <int> TurboBoyerMooreMatch(this String text, String pattern) { var boyerMoor = new BoyerMoore(pattern); return(boyerMoor.TurboBoyerMooreMatch(text)); }