hankcs / AhoCorasickDoubleArrayTrie

An extremely fast implementation of Aho Corasick algorithm based on Double Array Trie.
http://www.hankcs.com/program/algorithm/aho-corasick-double-array-trie.html
946 stars 289 forks source link

Support parse CharSequence #11

Closed turbanoff closed 6 years ago

turbanoff commented 6 years ago

Can you add parse methods for CharSequence? I need to search string in StringBuilder

hankcs commented 6 years ago

Hi, this is easy since String itself is a CharSequence. So, we only need to change the parameter type String to CharSequence, no need to add any extra methods.