Safe Haskell | None |
---|---|
Language | Haskell2010 |
- decodeUtf7 :: ByteString -> Text
- decodeUtf7' :: ByteString -> Either UnicodeException Text
- decodeUtf7With :: OnDecodeError -> ByteString -> Text
- encodeUtf7 :: Text -> ByteString
- c_decode_utf7 :: MutableByteArray# s -> Ptr CSize -> Ptr Word8 -> Ptr Word8 -> IO (Ptr Word8)
- c_encode_utf7 :: Ptr (Ptr Word8) -> ByteArray# -> CSize -> CSize -> IO ()
Documentation
decodeUtf7 :: ByteString -> Text Source
Decode a ByteString
containing UTF-7 encoded text that is known
to be valid.
If the input contains any invalid UTF-7 data, an exception will be
thrown that cannot be caught in pure code. For more control over
the handling of invalid data, use decodeUtf7'
or
decodeUtf7With
.
decodeUtf7' :: ByteString -> Either UnicodeException Text Source
Decode a ByteString
containing UTF-7 encoded text.
If the input contains any invalid UTF-7 data, the relevant exception will be returned, otherwise the decoded text.
decodeUtf7With :: OnDecodeError -> ByteString -> Text Source
encodeUtf7 :: Text -> ByteString Source
c_decode_utf7 :: MutableByteArray# s -> Ptr CSize -> Ptr Word8 -> Ptr Word8 -> IO (Ptr Word8) Source
c_encode_utf7 :: Ptr (Ptr Word8) -> ByteArray# -> CSize -> CSize -> IO () Source