| Portability | portable |
|---|---|
| Stability | experimental |
| Maintainer | bos@serpentine.com, rtomharper@googlemail.com, duncan@haskell.org |
| Safe Haskell | Safe-Infered |
Data.Text.Encoding.Fusion
Contents
Description
Fusible Stream-oriented functions for converting between Text
and several common encodings.
- streamASCII :: ByteString -> Stream Char
- streamUtf8 :: OnDecodeError -> ByteString -> Stream Char
- streamUtf16LE :: OnDecodeError -> ByteString -> Stream Char
- streamUtf16BE :: OnDecodeError -> ByteString -> Stream Char
- streamUtf32LE :: OnDecodeError -> ByteString -> Stream Char
- streamUtf32BE :: OnDecodeError -> ByteString -> Stream Char
- unstream :: Stream Word8 -> ByteString
- module Data.Text.Encoding.Fusion.Common
Streaming
streamUtf8 :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a ByteString into a 'Stream Char', using UTF-8
encoding.
streamUtf16LE :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a ByteString into a 'Stream Char', using little
endian UTF-16 encoding.
streamUtf16BE :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a ByteString into a 'Stream Char', using big
endian UTF-16 encoding.
streamUtf32LE :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a ByteString into a 'Stream Char', using little
endian UTF-32 encoding.
streamUtf32BE :: OnDecodeError -> ByteString -> Stream CharSource
O(n) Convert a ByteString into a 'Stream Char', using big
endian UTF-32 encoding.
Unstreaming
unstream :: Stream Word8 -> ByteStringSource
O(n) Convert a Stream Word8 to a ByteString.