Hoogle Search

Within LTS Haskell 24.58 (ghc-9.10.3)

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

  1. stripPrefix :: OsString -> OsString -> Maybe OsString

    os-string System.OsString

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

  2. stripSuffix :: OsString -> OsString -> Maybe OsString

    os-string System.OsString

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

  3. isInfixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short

    Check whether one string is a substring of another.

  4. isPrefixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short

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

  5. isSuffixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short

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

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

  6. stripPrefix :: ShortByteString -> ShortByteString -> Maybe ShortByteString

    os-string System.OsString.Data.ByteString.Short

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

  7. stripSuffix :: ShortByteString -> ShortByteString -> Maybe ShortByteString

    os-string System.OsString.Data.ByteString.Short

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

  8. isInfixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short.Word16

    Check whether one string is a substring of another.

  9. isPrefixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short.Word16

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

  10. isSuffixOf :: ShortByteString -> ShortByteString -> Bool

    os-string System.OsString.Data.ByteString.Short.Word16

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

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

Page 139 of many | Previous | Next