kolibrios-gitea/programs/fs/unzip60/theos/charconv.h

94 lines
4.5 KiB
C
Raw Normal View History

/*
Copyright (c) 1990-2000 Info-ZIP. All rights reserved.
See the accompanying file LICENSE, version 2000-Apr-09 or later
(the contents of which are also included in zip.h) for terms of use.
If, for some reason, all these files are missing, the Info-ZIP license
also may be found at: ftp://ftp.info-zip.org/pub/infozip/license.html
*/
#ifdef IZ_THS2ISO_ARRAY
ZCONST uch Far ths2iso[] = {
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, /* 80 - 87 */
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, /* 88 - 8F */
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, /* 90 - 97 */
0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, /* 98 - 9F */
0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, 0x2B, /* A0 - A7 */
0x2B, 0x2D, 0x7C, 0x2B, 0x2B, 0x2B, 0x2B, 0x23, /* A8 - AF */
0x23, 0x23, 0x23, 0x23, 0x23, 0x23, 0x23, 0x23, /* B0 - B7 */
0x3D, 0x23, 0xBA, 0xBB, 0xBC, 0xBD, 0xBE, 0xBF, /* B8 - BF */
0xC4, 0xE4, 0xE2, 0xE0, 0xE1, 0xC9, 0xEB, 0xEA, /* C0 - C7 */
0xE8, 0xE9, 0xEF, 0xEE, 0xEC, 0xED, 0xD6, 0xF6, /* C8 - CF */
0xF4, 0xF2, 0xF3, 0xDC, 0xFC, 0xFB, 0xF9, 0xFA, /* D0 - D7 */
0xC7, 0xE7, 0xD1, 0xF1, 0xC6, 0xE6, 0xC5, 0xE5, /* D8 - DF */
0xDF, 0xBF, 0xA1, 0xA2, 0xA3, 0xA5, 0xB5, 0xA4, /* E0 - E7 */
0xBC, 0xBD, 0xFF, 0xA7, 0xB0, 0xB2, 0x20, 0x20, /* E8 - EF */
0x20, 0xB1, 0x20, 0x20, 0x20, 0x20, 0x20, 0x20, /* F0 - F7 */
0x20, 0x20, 0xB7, 0x20, 0x20, 0x20, 0x20, 0x20 /* F8 - FF */
};
#endif /* IZ_THS2ISO_ARRAY */
#ifdef IZ_THS2OEM_ARRAY
ZCONST uch Far ths2oem[] = {
254,254,254,254, 254,254,134,135, /* 80 - 87 */
136,137,138,139, 140,141,142,143, /* 88 - 8F */
144,145,146,147, 148,149,150,151, /* 90 - 97 */
152,153,154,155, 156,157,158,159, /* 98 - 9F */
218,191,217,192, 197,195,180,194, /* A0 - A7 */
193,196,179,218, 191,217,192,201, /* A8 - AF */
183,188,200,206, 199,182,203,202, /* B0 - B7 */
205,186,186,187, 188,189,190,191, /* B8 - BF */
142,132,131,133, 160,144,137,136, /* C0 - C7 */
138,130,139,140, 141,161,153,148, /* C8 - CF */
147,149,162,154, 129,150,151,163, /* D0 - D7 */
128,135,165,164, 146,145,143,134, /* D8 - DF */
225,168,173,155, 156,157,158, 31, /* E0 - E7 */
172,171,152, 21, 248,253,238,239, /* E8 - EF */
240,241,242,243, 244,245,246,247, /* F0 - F7 */
248,249,250,251, 252,253,254,255 /* F8 - FF */
};
#endif /* IZ_THS2OEM_ARRAY */
#ifdef IZ_ISO2THS_ARRAY
ZCONST uch Far iso2ths[] = {
0x3F, 0x3F, 0x27, 0x3F, 0x22, 0x2E, 0xA4, 0xB3, /* 80 - 87 */
0x5E, 0x25, 0x53, 0x3C, 0x4F, 0x3F, 0x3F, 0x3F, /* 88 - 8F */
0x3F, 0x27, 0x27, 0x22, 0x22, 0x07, 0x2D, 0x2D, /* 90 - 97 */
0x7E, 0x54, 0x73, 0x3E, 0x6F, 0x3F, 0x3F, 0x59, /* 98 - 9F */
0x20, 0xE2, 0xE3, 0xE4, 0xE7, 0xE5, 0x7C, 0xEB, /* A0 - A7 */
0x20, 0x20, 0x20, 0x22, 0x20, 0x2D, 0x20, 0x2D, /* A8 - AF */
0xEC, 0xF1, 0xED, 0x20, 0x20, 0xE6, 0x20, 0xFA, /* B0 - B7 */
0x20, 0x20, 0x20, 0x22, 0xE8, 0xE9, 0x20, 0xE1, /* B8 - BF */
0xC3, 0xC4, 0xC2, 0x41, 0xC0, 0xDE, 0xDC, 0xD8, /* C0 - C7 */
0xC8, 0xC5, 0xC7, 0xC6, 0xCC, 0xCD, 0xCB, 0xCA, /* C8 - CF */
0x44, 0xDA, 0xD1, 0xD2, 0xD0, 0x4F, 0xCE, 0x78, /* D0 - D7 */
0x4F, 0xD6, 0xD7, 0xD5, 0xD3, 0x59, 0x20, 0xE0, /* D8 - DF */
0xC3, 0xC4, 0xC2, 0x61, 0xC1, 0xDF, 0xDD, 0xD9, /* E0 - E7 */
0xC8, 0xC9, 0xC7, 0xC6, 0xCC, 0xCD, 0xCB, 0xCA, /* E8 - EF */
0x64, 0xDB, 0xD1, 0xD2, 0xD0, 0x4F, 0xCF, 0xF1, /* F0 - F7 */
0x6F, 0xD6, 0xD7, 0xD5, 0xD4, 0x79, 0x20, 0xEA /* F8 - FF */
};
#endif /* IZ_ISO2THS_ARRAY */
#ifdef IZ_OEM2THS_ARRAY
ZCONST uch Far oem2ths[] = {
216,212,201,194, 193,195,223,217, /* 80 - 87 */
199,198,200,202, 203,204,192,222, /* 88 - 8F */
197,221,220,208, 207,209,213,214, /* 90 - 97 */
234,206,211,227, 228,229,230,159, /* 98 - 9F */
196,205,210,215, 219,218,254,254, /* A0 - A7 */
225,254,254,233, 232,226, 34, 34, /* A8 - AF */
254,254,254,170, 166,166,181,176, /* B0 - B7 */
161,181,185,176, 177,177,162,161, /* B8 - BF */
163,168,167,165, 169,164,165,180, /* C0 - C7 */
178,175,183,182, 180,184,179,168, /* C8 - CF */
183,167,182,178, 163,160,175,179, /* D0 - D7 */
164,162,160,254, 254,254,254,254, /* D8 - DF */
254,224,254,254, 254,254,254, 31, /* E0 - E7 */
254,254,254, 21, 254,254,238,239, /* E8 - EF */
240,241,242,243, 244,245,246,247, /* F0 - F7 */
236,249,250,251, 252,237,254,255 /* F8 - FF */
};
#endif /* IZ_OEM2THS_ARRAY */