CharacterEncodingSimple

Description

[ShutdownSurvive]
abstract class Tinman.Core.Formatting.CharacterEncodingSimple

Derived from

CharacterEncoding abstract

A character encoding that maps Unicode characters to 8-bit codes.

Public / Constants

ASCII


public static readonly attribute ASCII → (CharacterEncodingSimple)

Character encoding US-ASCII (7-bit).

Cp437


public static readonly attribute Cp437 → (CharacterEncodingSimple)

Character encoding CP437 (8-bit).

This is the character set of the famous VGA BIOS font, featuring the legendary box drawing characters.

ISO_8859_1


public static readonly attribute ISO_8859_1 → (CharacterEncodingSimple)

Character encoding ISO-8859-1 (8-bit).

Public / Methods

Decode​Character


public abstract method DecodeCharacter → (2)

code in : int32

The simple 8-bit code.

replacement opt : int32 = CharacterEncoding.DecodeReplacement

The replacement Unicode character to use for codes that cannot be represented.

returns → int32

The decoded Unicode character.

Decodes a single Unicode character.

Encode​Character


public abstract method EncodeCharacter → (1)

character in : int32

The Unicode character.

returns → int32

The simple 8-bit code. Will be -1 iff the given character in cannot be encoded.

Encodes the given Unicode character.