encoding-0.10.2: A library for various character encodings

Safe Haskell | None
Language | Haskell2010

Data.Encoding.UTF32

Description

This module implements UTF-32 encoding and decoding. See http://en.wikipedia.org/wiki/UTF-32 for more information.

# Documentation

data UTF32 Source #

Constructors

UTF32 | Detects big or little endian through the use of the BOM (Byte Order Mask) character. Defaults to big endian if not present.
UTF32BE | Encodes and decodes using the big endian encoding.
UTF32LE | Encodes and decodes using the little endian encoding.

#### Instances

Instances details

Encoding UTF32 Source # |
Instance details Defined in Data.Encoding.UTF32 Methods decodeChar :: ByteSource m => UTF32 -> m Char Source # encodeChar :: ByteSink m => UTF32 -> Char -> m () Source # decode :: ByteSource m => UTF32 -> m String Source # encode :: ByteSink m => UTF32 -> String -> m () Source # encodeable :: UTF32 -> Char -> Bool Source #
Show UTF32 Source # |
Instance details Defined in Data.Encoding.UTF32 Methods showsPrec :: Int -> UTF32 -> ShowS Source # show :: UTF32 -> String Source # showList :: [UTF32] -> ShowS Source #
Eq UTF32 Source # |
Instance details Defined in Data.Encoding.UTF32 Methods (==) :: UTF32 -> UTF32 -> Bool Source # (/=) :: UTF32 -> UTF32 -> Bool Source #