Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
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
Encoding UTF16 Source # | |
Defined in Data.Encoding.UTF16 Methods decodeChar :: ByteSource m => UTF16 -> m Char Source # encodeChar :: ByteSink m => UTF16 -> Char -> m () Source # decode :: ByteSource m => UTF16 -> m String Source # encode :: ByteSink m => UTF16 -> String -> m () Source # encodeable :: UTF16 -> Char -> Bool Source # | |
Show UTF16 Source # | |
Eq UTF16 Source # | |