Hoogle Search
Within LTS Haskell 24.69 (ghc-9.10.3)
Note that Stackage only displays results for the latest LTS and Nightly snapshot. Learn more.
encodeWithBasePosix' :: String -> IO ShortByteStringos-string System.OsString.Encoding.Internal This mimics the string encoder base uses on unix, with the small distinction that we're not truncating at NUL bytes (because we're not at the outer FFI layer).
peekPosixString :: CStringLen -> IO Stringos-string System.OsString.Encoding.Internal No documentation available.
peekPosixString' :: CStringLen -> IO Stringos-string System.OsString.Encoding.Internal No documentation available.
withPosixString :: String -> (CStringLen -> IO a) -> IO aos-string System.OsString.Encoding.Internal No documentation available.
withPosixString' :: String -> (CStringLen -> IO a) -> IO aos-string System.OsString.Encoding.Internal No documentation available.
isInfixOf :: OsString -> OsString -> Boolos-string System.OsString.Internal Check whether one string is a substring of another.
isPrefixOf :: OsString -> OsString -> Boolos-string System.OsString.Internal O(n) The isPrefixOf function takes two OsStrings and returns True
isSuffixOf :: OsString -> OsString -> Boolos-string System.OsString.Internal O(n) The isSuffixOf function takes two OsStrings and returns True iff the first is a suffix of the second. The following holds:
isSuffixOf x y == reverse x `isPrefixOf` reverse y
stripPrefix :: OsString -> OsString -> Maybe OsStringos-string System.OsString.Internal 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.Internal 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.