Hoogle Search

Within LTS Haskell 24.6 (ghc-9.10.2)

Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.

  1. stripSuffix :: ByteString -> ByteString -> Maybe ByteString

    bytestring Data.ByteString.Char8

    O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.

  2. isPrefixOf :: ByteString -> ByteString -> Bool

    bytestring Data.ByteString.Lazy

    O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.

  3. isSuffixOf :: ByteString -> ByteString -> Bool

    bytestring Data.ByteString.Lazy

    O(n) The isSuffixOf function takes two ByteStrings and returns True iff the first is a suffix of the second. The following holds:

    isSuffixOf x y == reverse x `isPrefixOf` reverse y
    

  4. stripPrefix :: ByteString -> ByteString -> Maybe ByteString

    bytestring Data.ByteString.Lazy

    O(n) The stripPrefix function takes two ByteStrings and returns Just the remainder of the second iff the first is its prefix, and otherwise Nothing.

  5. stripSuffix :: ByteString -> ByteString -> Maybe ByteString

    bytestring Data.ByteString.Lazy

    O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.

  6. isPrefixOf :: ByteString -> ByteString -> Bool

    bytestring Data.ByteString.Lazy.Char8

    O(n) The isPrefixOf function takes two ByteStrings and returns True iff the first is a prefix of the second.

  7. isSuffixOf :: ByteString -> ByteString -> Bool

    bytestring Data.ByteString.Lazy.Char8

    O(n) The isSuffixOf function takes two ByteStrings and returns True iff the first is a suffix of the second. The following holds:

    isSuffixOf x y == reverse x `isPrefixOf` reverse y
    

  8. stripPrefix :: ByteString -> ByteString -> Maybe ByteString

    bytestring Data.ByteString.Lazy.Char8

    O(n) The stripPrefix function takes two ByteStrings and returns Just the remainder of the second iff the first is its prefix, and otherwise Nothing.

  9. stripSuffix :: ByteString -> ByteString -> Maybe ByteString

    bytestring Data.ByteString.Lazy.Char8

    O(n) The stripSuffix function takes two ByteStrings and returns Just the remainder of the second iff the first is its suffix, and otherwise Nothing.

  10. isInfixOf :: ShortByteString -> ShortByteString -> Bool

    bytestring Data.ByteString.Short

    Check whether one string is a substring of another.

Page 29 of many | Previous | Next