phaser-1.0.0.1: Incremental multiple pass parser library.

Safe HaskellNone
LanguageHaskell2010

Codec.Phaser.UTF16

Synopsis

Documentation

utf16_char :: Monoid p => Phase p Word16 o Char Source #

Consume one or two 16 bit words and decode to a Char using UTF-16

utf16_stream_useBOM :: Monoid p => Phase p Word8 Char () Source #

Decode bytes to characters using UTF-16, using the byte order mark to detect endianness.

utf16_stream_le :: Monoid p => Automaton p Word8 Char () Source #

Decode bytes to characters using UTF-16, little endian mode

utf16_stream_be :: Monoid p => Automaton p Word8 Char () Source #

Decode bytes to characters using UTF-16, big endian mode

utf16_stream_unknown :: Monoid p => Phase p Word8 Char () Source #

Decode bytes to characters using UTF-16, using byte order mark if available, otherwise trying both byte orders. Downstream parser may be used to disambiguate.

utf16_encode_stream_be_nobom :: Monoid p => Automaton p Char Word8 () Source #

Encode a stream of characters to bytes using UTF-16, big endian without the byte order mark.

utf16_encode_stream_le_nobom :: Monoid p => Automaton p Char Word8 () Source #

Encode a stream of characters to bytes using UTF-16, little endian without the byte order mark.

utf16_encode_stream_be :: Monoid p => Automaton p Char Word8 () Source #

Encode a stream of characters to bytes using UTF-16, little endian including the byte order mark.

utf16_encode_stream_le :: Monoid p => Automaton p Char Word8 () Source #

Encode a stream of characters to bytes using UTF-16, big endian including the byte order mark.