Class AsciiCodec.

Inherits Codec

The AsciiCodec class maps between US-ASCII and Unicode.

US-ASCII Character codes 1 to 127 are accepted, all other byte values trigger invalidity (see valid() for details).

AsciiCodec::AsciiCodec()

Constructs an empty US-ASCII Codec.

Reimplements Garbage::Garbage().

EString AsciiCodec::fromUnicode( const UString & u )

Maps u to US-ASCII. Code point 0 and all codecpoints greater than 127 are mapped to '?'.

Reimplements Codec::fromUnicode().

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