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