File: automaton_search_iter_set.rst

package info (click to toggle)
python-pyahocorasick 1.4.1-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 748 kB
  • sloc: ansic: 4,554; python: 2,823; sh: 312; makefile: 242
file content (7 lines) | stat: -rw-r--r-- 379 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
set(string, reset=False)
----------------------------------------------------------------------

Set a new string to search. When the reset argument is False (default)
then the Aho-Corasick procedure is continued and the internal state of the
Automaton and end index of the string being searched are not reset. This allow
to search for large strings in multiple smaller chunks.