*
* Parts of this file are based on tables published by Unicode, Inc.
* Original tables are freely available at
- * ftp://ftp.unicode.org/MAPPINGS
+ * ftp://ftp.unicode.org/Public/MAPPINGS
*
* Original copyright info as present in mapping tables follows:
*
* based on file mappings/8859-1.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_1[128] = {
+static const wxUint16 encoding_table__ISO8859_1[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-10.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_10[128] = {
+static const wxUint16 encoding_table__ISO8859_10[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-13.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_13[128] = {
+static const wxUint16 encoding_table__ISO8859_13[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-14.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_14[128] = {
+static const wxUint16 encoding_table__ISO8859_14[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-15.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_15[128] = {
+static const wxUint16 encoding_table__ISO8859_15[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-2.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_2[128] = {
+static const wxUint16 encoding_table__ISO8859_2[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-3.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_3[128] = {
+static const wxUint16 encoding_table__ISO8859_3[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-4.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_4[128] = {
+static const wxUint16 encoding_table__ISO8859_4[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-5.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_5[128] = {
+static const wxUint16 encoding_table__ISO8859_5[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-6.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_6[128] = {
+static const wxUint16 encoding_table__ISO8859_6[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-7.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_7[128] = {
+static const wxUint16 encoding_table__ISO8859_7[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-8.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_8[128] = {
+static const wxUint16 encoding_table__ISO8859_8[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/8859-9.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__ISO8859_9[128] = {
+static const wxUint16 encoding_table__ISO8859_9[128] = {
0x0080, 0x0081, 0x0082, 0x0083, 0x0084, 0x0085, 0x0086, 0x0087,
0x0088, 0x0089, 0x008A, 0x008B, 0x008C, 0x008D, 0x008E, 0x008F,
0x0090, 0x0091, 0x0092, 0x0093, 0x0094, 0x0095, 0x0096, 0x0097,
* based on file mappings/CP1250.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1250[128] = {
+static const wxUint16 encoding_table__CP1250[128] = {
0x20AC, 0x0000, 0x201A, 0x0000, 0x201E, 0x2026, 0x2020, 0x2021,
0x0000, 0x2030, 0x0160, 0x2039, 0x015A, 0x0164, 0x017D, 0x0179,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1251.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1251[128] = {
+static const wxUint16 encoding_table__CP1251[128] = {
0x0402, 0x0403, 0x201A, 0x0453, 0x201E, 0x2026, 0x2020, 0x2021,
0x20AC, 0x2030, 0x0409, 0x2039, 0x040A, 0x040C, 0x040B, 0x040F,
0x0452, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1252.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1252[128] = {
+static const wxUint16 encoding_table__CP1252[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021,
0x02C6, 0x2030, 0x0160, 0x2039, 0x0152, 0x0000, 0x017D, 0x0000,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1253.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1253[128] = {
+static const wxUint16 encoding_table__CP1253[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021,
0x0000, 0x2030, 0x0000, 0x2039, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1254.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1254[128] = {
+static const wxUint16 encoding_table__CP1254[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021,
0x02C6, 0x2030, 0x0160, 0x2039, 0x0152, 0x0000, 0x0000, 0x0000,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1255.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1255[128] = {
+static const wxUint16 encoding_table__CP1255[128] = {
0x20AC, 0x0000, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021,
0x02C6, 0x2030, 0x0000, 0x2039, 0x0000, 0x0000, 0x0000, 0x0000,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1256.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1256[128] = {
+static const wxUint16 encoding_table__CP1256[128] = {
0x20AC, 0x067E, 0x201A, 0x0192, 0x201E, 0x2026, 0x2020, 0x2021,
0x02C6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688,
0x06AF, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/CP1257.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__CP1257[128] = {
+static const wxUint16 encoding_table__CP1257[128] = {
0x20AC, 0x0000, 0x201A, 0x0000, 0x201E, 0x2026, 0x2020, 0x2021,
0x0000, 0x2030, 0x0000, 0x2039, 0x0000, 0x00A8, 0x02C7, 0x00B8,
0x0000, 0x2018, 0x2019, 0x201C, 0x201D, 0x2022, 0x2013, 0x2014,
* based on file mappings/KOI8-R.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__KOI8[128] = {
+static const wxUint16 encoding_table__KOI8[128] = {
0x2500, 0x2502, 0x250C, 0x2510, 0x2514, 0x2518, 0x251C, 0x2524,
0x252C, 0x2534, 0x253C, 0x2580, 0x2584, 0x2588, 0x258C, 0x2590,
0x2591, 0x2592, 0x2593, 0x2320, 0x25A0, 0x2219, 0x221A, 0x2248,
* based on file mappings/KOI8-U.TXT by Unicode Consortium
*/
-static wxUint16 encoding_table__KOI8_U[128] = {
+static const wxUint16 encoding_table__KOI8_U[128] = {
0x2500, 0x2502, 0x250C, 0x2510, 0x2514, 0x2518, 0x251C, 0x2524,
0x252C, 0x2534, 0x253C, 0x2580, 0x2584, 0x2588, 0x258C, 0x2590,
0x2591, 0x2592, 0x2593, 0x2320, 0x25A0, 0x2219, 0x221A, 0x2248,
*
*/
-static struct {
+static const struct {
wxUint16 c /*code*/;
wxUint8 s /*inaccurate substitution*/;
} encoding_unicode_fallback[] = {
{0, 0}
};
-static unsigned encoding_unicode_fallback_count = 200;
+static const unsigned encoding_unicode_fallback_count = 200;
*
*/
-static struct {
+static const struct {
wxFontEncoding encoding; // encoding identifier
- wxUint16 *table; // 8bit to unicode table
+ const wxUint16 *table; // 8bit to unicode table
} encodings_list[] = {
{ wxFONTENCODING_ISO8859_1, encoding_table__ISO8859_1},