text-utf8-1.2.3.0: An efficient packed UTF-8 backed Unicode text type.

Copyright(c) Tom Harper 2008-2009
(c) Bryan O'Sullivan 2009
(c) Duncan Coutts 2009
LicenseBSD-style
Maintainerbos@serpentine.com
Stabilityexperimental
Portabilityportable
Safe HaskellNone
LanguageHaskell2010

Data.Text.Internal.Encoding.Fusion

Contents

Description

Warning: this is an internal module, and does not have a stable API or name. Functions in this module may not check or enforce preconditions expected by public modules. Use at your own risk!

Fusible Stream-oriented functions for converting between Text and several common encodings.

Synopsis

Streaming

streamASCII :: ByteString -> Stream Char Source #

Deprecated: Do not use this function

streamUtf8 :: OnDecodeError -> ByteString -> Stream Char Source #

O(n) Convert a ByteString into a 'Stream Char', using UTF-8 encoding.

streamUtf16LE :: OnDecodeError -> ByteString -> Stream Char Source #

O(n) Convert a ByteString into a 'Stream Char', using little endian UTF-16 encoding.

streamUtf16BE :: OnDecodeError -> ByteString -> Stream Char Source #

O(n) Convert a ByteString into a 'Stream Char', using big endian UTF-16 encoding.

streamUtf32LE :: OnDecodeError -> ByteString -> Stream Char Source #

O(n) Convert a ByteString into a 'Stream Char', using little endian UTF-32 encoding.

streamUtf32BE :: OnDecodeError -> ByteString -> Stream Char Source #

O(n) Convert a ByteString into a 'Stream Char', using big endian UTF-32 encoding.

Unstreaming