public ISearchResult SearchChars(char[] text, int textStart, int textEnd) { if (charStateMachine == null) { KeywordTree tree = new KeywordTree(_keys); charStateMachine = tree.BuildStateMachine(); } return charStateMachine.Find(text); }
public ISearchResult[] FindAll(string text) { if (charStateMachine == null) { KeywordTree tree = new KeywordTree(_keys); charStateMachine = tree.BuildStateMachine(); } return charStateMachine.FindAll(text.ToCharArray()); }