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.
stripPrefix :: OsString -> OsString -> Maybe OsStringos-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.
stripSuffix :: OsString -> OsString -> Maybe OsStringos-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.
isInfixOf :: ShortByteString -> ShortByteString -> Boolos-string System.OsString.Data.ByteString.Short Check whether one string is a substring of another.
isPrefixOf :: ShortByteString -> ShortByteString -> Boolos-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.
isSuffixOf :: ShortByteString -> ShortByteString -> Boolos-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
stripPrefix :: ShortByteString -> ShortByteString -> Maybe ShortByteStringos-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.
stripSuffix :: ShortByteString -> ShortByteString -> Maybe ShortByteStringos-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.
isInfixOf :: ShortByteString -> ShortByteString -> Boolos-string System.OsString.Data.ByteString.Short.Word16 Check whether one string is a substring of another.
isPrefixOf :: ShortByteString -> ShortByteString -> Boolos-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.
isSuffixOf :: ShortByteString -> ShortByteString -> Boolos-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