-- Hoogle documentation, generated by Haddock
-- See Hoogle, http://www.haskell.org/hoogle/
-- | UTF-7 encoding/decoding for Data.Text
--
@package text-utf7
@version 0.1.0.0
module Data.Text.Encoding.UTF7.IMAP
-- | 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 -> Text
-- | 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.
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 ()