| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| Description | |||||||||||||||||||||||||||||||
Functions for converting Text values to and from ByteString, using several standard encodings. To make use of a much larger variety of encodings, use the text-icu package. | |||||||||||||||||||||||||||||||
| Synopsis | |||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||
| Decoding ByteStrings to Text | |||||||||||||||||||||||||||||||
| decodeASCII :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode a ByteString containing 7-bit ASCII encoded text. | |||||||||||||||||||||||||||||||
| decodeUtf8 :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode a ByteString containing UTF-8 encoded text. | |||||||||||||||||||||||||||||||
| decodeUtf16LE :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from little endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf16BE :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from big endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf32LE :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from little endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf32BE :: ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from big endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| Controllable error handling | |||||||||||||||||||||||||||||||
| decodeUtf8With :: OnDecodeError -> ByteString -> Text | |||||||||||||||||||||||||||||||
| decodeUtf16LEWith :: OnDecodeError -> ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from little endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf16BEWith :: OnDecodeError -> ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from big endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf32LEWith :: OnDecodeError -> ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from little endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| decodeUtf32BEWith :: OnDecodeError -> ByteString -> Text | |||||||||||||||||||||||||||||||
| Decode text from big endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| Encoding Text to ByteStrings | |||||||||||||||||||||||||||||||
| encodeUtf8 :: Text -> ByteString | |||||||||||||||||||||||||||||||
| Encode text using UTF-8 encoding. | |||||||||||||||||||||||||||||||
| encodeUtf16LE :: Text -> ByteString | |||||||||||||||||||||||||||||||
| Encode text using little endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| encodeUtf16BE :: Text -> ByteString | |||||||||||||||||||||||||||||||
| Encode text using big endian UTF-16 encoding. | |||||||||||||||||||||||||||||||
| encodeUtf32LE :: Text -> ByteString | |||||||||||||||||||||||||||||||
| Encode text using little endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| encodeUtf32BE :: Text -> ByteString | |||||||||||||||||||||||||||||||
| Encode text using big endian UTF-32 encoding. | |||||||||||||||||||||||||||||||
| Produced by Haddock version 2.7.2 |