Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
:: ByteString | needle, strict bytestring |
-> ByteString | haystack, lazy bytestring |
-> (ByteString, ByteString) |
prepareBreakSubstring Source #
:: ByteString | needle |
-> ByteString | first n characters in haystack, where n is length of needle |
-> KarpRabinState |
data KarpRabinState Source #
data KarpRabinResult Source #
KarpRabinResultDone !Int !Int64 | The first number is the index into the current chunk. The second number is the total number of characters that were consumed. Note that since these both refer to the index of the beginning of the match, the first one is allowed to be negative, but the second is not. The third item is the bytes preceeding the match location. This is provided to help streaming providers that may have already discarded the old data. |
KarpRabinResultMore !KarpRabinState |