A set of dependency-free basic internationalization tools
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

19 lines
3.4 KiB

<?php
/** @license MIT
* Copyright 2018 J. King et al.
* See LICENSE and AUTHORS files for details */
declare(strict_types=1);
namespace MensBeam\Intl\Encoding;
class XMacCyrillic extends SingleByteEncoding {
public const NAME = "x-mac-cyrillic";
public const LABELS = [
"x-mac-cyrillic",
"x-mac-ukrainian",
];
protected const TABLE_DEC_CHAR = ["\u{410}","\u{411}","\u{412}","\u{413}","\u{414}","\u{415}","\u{416}","\u{417}","\u{418}","\u{419}","\u{41a}","\u{41b}","\u{41c}","\u{41d}","\u{41e}","\u{41f}","\u{420}","\u{421}","\u{422}","\u{423}","\u{424}","\u{425}","\u{426}","\u{427}","\u{428}","\u{429}","\u{42a}","\u{42b}","\u{42c}","\u{42d}","\u{42e}","\u{42f}","\u{2020}","\u{b0}","\u{490}","\u{a3}","\u{a7}","\u{2022}","\u{b6}","\u{406}","\u{ae}","\u{a9}","\u{2122}","\u{402}","\u{452}","\u{2260}","\u{403}","\u{453}","\u{221e}","\u{b1}","\u{2264}","\u{2265}","\u{456}","\u{b5}","\u{491}","\u{408}","\u{404}","\u{454}","\u{407}","\u{457}","\u{409}","\u{459}","\u{40a}","\u{45a}","\u{458}","\u{405}","\u{ac}","\u{221a}","\u{192}","\u{2248}","\u{2206}","\u{ab}","\u{bb}","\u{2026}","\u{a0}","\u{40b}","\u{45b}","\u{40c}","\u{45c}","\u{455}","\u{2013}","\u{2014}","\u{201c}","\u{201d}","\u{2018}","\u{2019}","\u{f7}","\u{201e}","\u{40e}","\u{45e}","\u{40f}","\u{45f}","\u{2116}","\u{401}","\u{451}","\u{44f}","\u{430}","\u{431}","\u{432}","\u{433}","\u{434}","\u{435}","\u{436}","\u{437}","\u{438}","\u{439}","\u{43a}","\u{43b}","\u{43c}","\u{43d}","\u{43e}","\u{43f}","\u{440}","\u{441}","\u{442}","\u{443}","\u{444}","\u{445}","\u{446}","\u{447}","\u{448}","\u{449}","\u{44a}","\u{44b}","\u{44c}","\u{44d}","\u{44e}","\u{20ac}"];
protected const TABLE_DEC_CODE = [1040,1041,1042,1043,1044,1045,1046,1047,1048,1049,1050,1051,1052,1053,1054,1055,1056,1057,1058,1059,1060,1061,1062,1063,1064,1065,1066,1067,1068,1069,1070,1071,8224,176,1168,163,167,8226,182,1030,174,169,8482,1026,1106,8800,1027,1107,8734,177,8804,8805,1110,181,1169,1032,1028,1108,1031,1111,1033,1113,1034,1114,1112,1029,172,8730,402,8776,8710,171,187,8230,160,1035,1115,1036,1116,1109,8211,8212,8220,8221,8216,8217,247,8222,1038,1118,1039,1119,8470,1025,1105,1103,1072,1073,1074,1075,1076,1077,1078,1079,1080,1081,1082,1083,1084,1085,1086,1087,1088,1089,1090,1091,1092,1093,1094,1095,1096,1097,1098,1099,1100,1101,1102,8364];
protected const TABLE_ENC = [160=>"\xCA",163=>"\xA3",167=>"\xA4",169=>"\xA9",171=>"\xC7","\xC2",174=>"\xA8",176=>"\xA1","\xB1",181=>"\xB5","\xA6",187=>"\xC8",247=>"\xD6",402=>"\xC4",1025=>"\xDD","\xAB","\xAE","\xB8","\xC1","\xA7","\xBA","\xB7","\xBC","\xBE","\xCB","\xCD",1038=>"\xD8","\xDA","\x80","\x81","\x82","\x83","\x84","\x85","\x86","\x87","\x88","\x89","\x8A","\x8B","\x8C","\x8D","\x8E","\x8F","\x90","\x91","\x92","\x93","\x94","\x95","\x96","\x97","\x98","\x99","\x9A","\x9B","\x9C","\x9D","\x9E","\x9F","\xE0","\xE1","\xE2","\xE3","\xE4","\xE5","\xE6","\xE7","\xE8","\xE9","\xEA","\xEB","\xEC","\xED","\xEE","\xEF","\xF0","\xF1","\xF2","\xF3","\xF4","\xF5","\xF6","\xF7","\xF8","\xF9","\xFA","\xFB","\xFC","\xFD","\xFE","\xDF",1105=>"\xDE","\xAC","\xAF","\xB9","\xCF","\xB4","\xBB","\xC0","\xBD","\xBF","\xCC","\xCE",1118=>"\xD9","\xDB",1168=>"\xA2","\xB6",8211=>"\xD0","\xD1",8216=>"\xD4","\xD5",8220=>"\xD2","\xD3","\xD7",8224=>"\xA0",8226=>"\xA5",8230=>"\xC9",8364=>"\xFF",8470=>"\xDC",8482=>"\xAA",8710=>"\xC6",8730=>"\xC3",8734=>"\xB0",8776=>"\xC5",8800=>"\xAD",8804=>"\xB2","\xB3"];
}