teleshell-0.1.0.0: Telnet client and other things

Safe HaskellNone
LanguageHaskell2010

Data.ByteString.Substring

Documentation

breakSubstringLazy Source #

Arguments

:: ByteString

needle, strict bytestring

-> ByteString

haystack, lazy bytestring

-> (ByteString, ByteString) 

prepareBreakSubstring Source #

Arguments

:: ByteString

needle

-> ByteString

first n characters in haystack, where n is length of needle

-> KarpRabinState 

data KarpRabinResult Source #

Constructors

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