| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
System.OsString.Encoding.Internal.Compat
Synopsis
- 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
- withFilePathWin :: FilePath -> (Int -> Ptr Word16 -> IO a) -> IO a
- peekWindowsString :: (Ptr Word16, Int) -> IO FilePath
- peekFilePathWin :: (Ptr Word16, Int) -> IO FilePath
- withPosixString :: FilePath -> (CStringLen -> IO a) -> IO a
- withFilePathPosix :: FilePath -> (CStringLen -> IO a) -> IO a
- withPosixString' :: String -> (CStringLen -> IO a) -> IO a
- withFilePathPosix' :: String -> (CStringLen -> IO a) -> IO a
- peekPosixString :: CStringLen -> IO String
- peekPosixString' :: CStringLen -> IO String
- peekFilePathPosix :: CStringLen -> IO FilePath
- peekFilePathPosix' :: CStringLen -> IO String
- decodeWithTE :: TextEncoding -> ShortByteString -> Either EncodingException String
- encodeWithTE :: TextEncoding -> String -> Either EncodingException ShortByteString
- decodeWithBasePosix :: ShortByteString -> IO String
- decodeWithBasePosix' :: ShortByteString -> IO String
- encodeWithBasePosix :: String -> IO ShortByteString
- encodeWithBasePosix' :: String -> IO ShortByteString
- decodeWithBaseWindows :: ShortByteString -> IO String
- encodeWithBaseWindows :: String -> IO ShortByteString
- data EncodingException = EncodingError String (Maybe Word8)
- showEncodingException :: EncodingException -> String
- wNUL :: Word16
Documentation
ucs2le_decode :: DecodeBuffer #
ucs2le_encode :: EncodeBuffer #
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 #
Synonym of withFilePathPosix
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 #
decodeWithBasePosix :: ShortByteString -> IO String #
decodeWithBasePosix' :: ShortByteString -> IO String Source #
encodeWithBasePosix :: String -> IO ShortByteString #
encodeWithBasePosix' :: String -> IO ShortByteString Source #
decodeWithBaseWindows :: ShortByteString -> IO String #
encodeWithBaseWindows :: String -> IO ShortByteString #
data EncodingException #
Constructors
| EncodingError String (Maybe Word8) |
Instances
| Exception EncodingException | |
Defined in System.OsPath.Encoding.Internal.Hidden Methods toException :: EncodingException -> SomeException fromException :: SomeException -> Maybe EncodingException displayException :: EncodingException -> String | |
| Show EncodingException | |
Defined in System.OsPath.Encoding.Internal.Hidden Methods showsPrec :: Int -> EncodingException -> ShowS show :: EncodingException -> String showList :: [EncodingException] -> ShowS | |
| NFData EncodingException | |
Defined in System.OsPath.Encoding.Internal.Hidden Methods rnf :: EncodingException -> () | |
| Eq EncodingException | |
Defined in System.OsPath.Encoding.Internal.Hidden Methods (==) :: EncodingException -> EncodingException -> Bool (/=) :: EncodingException -> EncodingException -> Bool | |
showEncodingException :: EncodingException -> String #