encoding-0.8.5: A library for various character encodings

Safe HaskellNone
LanguageHaskell2010

Data.Encoding.UTF16

Description

This module implements UTF-16 encoding and decoding as in RFC 2781. See http://en.wikipedia.org/wiki/UTF-16 for more information.

Documentation

data UTF16 Source #

Constructors

UTF16

Decodes big and little endian, encodes big endian.

UTF16BE

Big endian decoding and encoding, fails if the string isn't actually big endian.

UTF16LE

Little endian decoding and encoding.

Instances
Eq UTF16 Source # 
Instance details

Defined in Data.Encoding.UTF16

Methods

(==) :: UTF16 -> UTF16 -> Bool #

(/=) :: UTF16 -> UTF16 -> Bool #

Show UTF16 Source # 
Instance details

Defined in Data.Encoding.UTF16

Methods

showsPrec :: Int -> UTF16 -> ShowS #

show :: UTF16 -> String #

showList :: [UTF16] -> ShowS #

Encoding UTF16 Source # 
Instance details

Defined in Data.Encoding.UTF16