Cosmos/source/Cosmos.System2/Text/CP858Encoding.cs
fanoI c50b581d91 More work on Encoding
- Resolved problem with UTF8Enconding.BaseName property
- Started work to plug Hashtable to make the Encoding / Decoding more efficient
2018-01-10 20:29:05 +01:00

31 lines
1.5 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//#define COSMOSDEBUG
using Cosmos.Debug.Kernel;
namespace Cosmos.System.ExtendedASCII
{
internal class CP858Enconding : SingleByteEncoding
{
private static Debugger myDebugger = new Debugger("System", "CP858 Encoding");
internal CP858Enconding()
{
myDebugger.SendInternal($"CP858Enconding Setting CodePageTable only one time...");
CodePageTable = new char[]
{
'Ç', 'ü', 'é', 'â', 'ä', 'à', 'å', 'ç', 'ê', 'ë', 'è', 'ï', 'î', 'ì', 'Ä', 'Å',
'É', 'æ', 'Æ', 'ô', 'ö', 'ò', 'û', 'ù', 'ÿ', 'Ö', 'Ü', 'ø', '£', 'Ø', '×', 'ƒ',
'á', 'í', 'ó', 'ú', 'ñ', 'Ñ', 'ª', 'º', '¿', '®', '¬', '½', '¼', '¡', '«', '»',
'░', '▒', '▓', '│', '┤', 'Á', 'Â', 'À', '©', '╣', '║', '╗', '╝', '¢', '¥', '┐',
'└', '┴', '┬', '├', '─', '┼', 'ã', 'Ã', '╚', '╔', '╩', '╦', '╠', '═', '╬', '¤',
'ð', 'Ð', 'Ê', 'Ë', 'È', '€', 'Í', 'Î', 'Ï', '┘', '┌', '█', '▄', '¦', 'Ì', '▀',
'Ó', 'ß', 'Ô', 'Ò', 'õ', 'Õ', 'µ', 'þ', 'Þ', 'Ú', 'Û', 'Ù', 'ý', 'Ý', '¯', '´',
'\u00AD', '±', '‗', '¾', '¶', '§', '÷', '¸', '°', '¨', '·', '¹', '³', '²', '■', '\u00A0'
};
}
public override string BodyName => "IBM00858";
public override int CodePage => 858;
}
}