| Copyright | (c) Bryan O'Sullivan 2009 |
|---|---|
| License | BSD-style |
| Maintainer | [email protected] |
| Stability | experimental |
| Portability | GHC |
| Safe Haskell | None |
| Language | Haskell2010 |
Fast substring search for Text, based on work by Boyer, Moore, Horspool, Sunday, and Lundh.
References:
O(n+m) Find the offsets of all non-overlapping indices of needle within haystack. The offsets returned represent uncorrected indices in the low-level "needle" array, to which its offset must be added.
In (unlikely) bad cases, this algorithm's complexity degrades towards O(n*m).
© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/8.8.3/docs/html/libraries/text-1.2.4.0/Data-Text-Internal-Search.html