Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data EncodingException = EncodingError String (Maybe Word8)
- showEncodingException :: EncodingException -> String
- ucs2le :: TextEncoding
- mkUcs2le :: CodingFailureMode -> TextEncoding
- ucs2le_DF :: CodingFailureMode -> IO (TextDecoder ())
- ucs2le_EF :: CodingFailureMode -> IO (TextEncoder ())
- ucs2le_decode :: DecodeBuffer
- ucs2le_encode :: EncodeBuffer
- encodeWith :: TextEncoding -> String -> Either EncodingException ShortByteString
- decodeWith :: TextEncoding -> ShortByteString -> Either EncodingException String
- encodeWithBasePosix :: String -> IO ShortByteString
- decodeWithBasePosix :: ShortByteString -> IO String
- encodeWithBaseWindows :: String -> ShortByteString
- decodeWithBaseWindows :: ShortByteString -> String
Types
data EncodingException Source #
EncodingError String (Maybe Word8) | Could not decode a byte sequence because it was invalid under the given encoding, or ran out of input in mid-decode. |
Instances
Eq EncodingException Source # | |
Defined in System.OsPath.Encoding.Internal (==) :: EncodingException -> EncodingException -> Bool (/=) :: EncodingException -> EncodingException -> Bool | |
Show EncodingException Source # | |
Defined in System.OsPath.Encoding.Internal showsPrec :: Int -> EncodingException -> ShowS show :: EncodingException -> String showList :: [EncodingException] -> ShowS | |
Exception EncodingException Source # | |
Defined in System.OsPath.Encoding.Internal toException :: EncodingException -> SomeException fromException :: SomeException -> Maybe EncodingException displayException :: EncodingException -> String | |
NFData EncodingException Source # | |
Defined in System.OsPath.Encoding.Internal rnf :: EncodingException -> () |
showEncodingException :: EncodingException -> String Source #
UCS-2
ucs2le_decode :: DecodeBuffer Source #
ucs2le_encode :: EncodeBuffer Source #
base encoding
encodeWith :: TextEncoding -> String -> Either EncodingException ShortByteString Source #
decodeWith :: TextEncoding -> ShortByteString -> Either EncodingException String Source #
encodeWithBasePosix :: String -> IO ShortByteString Source #
decodeWithBasePosix :: ShortByteString -> IO String Source #
encodeWithBaseWindows :: String -> ShortByteString Source #
decodeWithBaseWindows :: ShortByteString -> String Source #