Class Utf16LeCodec.

Inherits Codec

The Utf16LeCodec implements UTF-16LE as specified in RFC 2781.

Utf16LeCodec removes a BOM while decoding and does not add one while encoding.

Utf16LeCodec::Utf16LeCodec()

Constructs a simple UTF-16LE encoder/decoder.

Reimplements Garbage::Garbage().

UString Utf16LeCodec::toUnicode( const EString & s )

toUnicode() is probably a little lax. No. It IS a little lax. We may tighten this later. At least, we can check that s has an even length.

Reimplements Codec::toUnicode().

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.