os-string-compat-1.0.0: Compatibility layer for os-string
Safe HaskellNone
LanguageHaskell2010

System.OsString.Encoding.Internal.Compat

Synopsis

Documentation

ucs2le :: TextEncoding #

mkUcs2le :: CodingFailureMode -> TextEncoding #

ucs2le_DF :: CodingFailureMode -> IO (TextDecoder ()) #

ucs2le_EF :: CodingFailureMode -> IO (TextEncoder ()) #

ucs2le_decode :: DecodeBuffer #

ucs2le_encode :: EncodeBuffer #

utf16le_b :: TextEncoding #

mkUTF16le_b :: CodingFailureMode -> TextEncoding #

utf16le_b_DF :: CodingFailureMode -> IO (TextDecoder ()) #

utf16le_b_EF :: CodingFailureMode -> IO (TextEncoder ()) #

utf16le_b_decode :: DecodeBuffer #

utf16le_b_encode :: EncodeBuffer #

cWcharsToChars_UCS2 :: [Word16] -> [Char] #

cWcharsToChars :: [Word16] -> [Char] #

charsToCWchars :: [Char] -> [Word16] #

withWindowsString :: String -> (Int -> Ptr Word16 -> IO a) -> IO a Source #

Synonym of withFilePathWin

withFilePathWin :: FilePath -> (Int -> Ptr Word16 -> IO a) -> IO a #

peekWindowsString :: (Ptr Word16, Int) -> IO FilePath Source #

Synonym of peekFilePathWin.

peekFilePathWin :: (Ptr Word16, Int) -> IO FilePath #

withPosixString :: FilePath -> (CStringLen -> IO a) -> IO a Source #

withFilePathPosix :: FilePath -> (CStringLen -> IO a) -> IO a #

withPosixString' :: String -> (CStringLen -> IO a) -> IO a Source #

Alternate version of withPosixString from newer versions of os-string.

withFilePathPosix' :: String -> (CStringLen -> IO a) -> IO a Source #

Synonym of withPosixString'.

peekPosixString :: CStringLen -> IO String Source #

peekPosixString' :: CStringLen -> IO String Source #

peekFilePathPosix :: CStringLen -> IO FilePath #

peekFilePathPosix' :: CStringLen -> IO String Source #

decodeWithTE :: TextEncoding -> ShortByteString -> Either EncodingException String #

encodeWithTE :: TextEncoding -> String -> Either EncodingException ShortByteString #

data EncodingException #

Constructors

EncodingError String (Maybe Word8) 

Instances

Instances details
Exception EncodingException 
Instance details

Defined in System.OsPath.Encoding.Internal.Hidden

Methods

toException :: EncodingException -> SomeException

fromException :: SomeException -> Maybe EncodingException

displayException :: EncodingException -> String

Show EncodingException 
Instance details

Defined in System.OsPath.Encoding.Internal.Hidden

Methods

showsPrec :: Int -> EncodingException -> ShowS

show :: EncodingException -> String

showList :: [EncodingException] -> ShowS

NFData EncodingException 
Instance details

Defined in System.OsPath.Encoding.Internal.Hidden

Methods

rnf :: EncodingException -> ()

Eq EncodingException 
Instance details

Defined in System.OsPath.Encoding.Internal.Hidden

wNUL :: Word16 #