Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- utf16_char :: Monoid p => Phase p Word16 o Char
- utf16_word16_stream :: Monoid p => Phase p Word16 Char ()
- utf16_stream_useBOM :: Monoid p => Phase p Word8 Char ()
- utf16_stream_le :: Monoid p => Automaton p Word8 Char ()
- utf16_stream_be :: Monoid p => Automaton p Word8 Char ()
- utf16_stream_unknown :: Monoid p => Phase p Word8 Char ()
- utf16_encode_stream_be_nobom :: Monoid p => Automaton p Char Word8 ()
- utf16_encode_stream_le_nobom :: Monoid p => Automaton p Char Word8 ()
- utf16_encode_stream_be :: Monoid p => Automaton p Char Word8 ()
- utf16_encode_stream_le :: Monoid p => Automaton p Char Word8 ()
- utf16_encode_char :: Char -> Phase p i Word16 ()
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.