Branch: Tag:

2007-06-19

2007-06-19 16:47:01 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Updated to the new use of the private character space.

Rev: src/modules/_Charset/misc.c:1.20

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: misc.c,v 1.19 2006/08/12 01:57:30 mast Exp $ + || $Id: misc.c,v 1.20 2007/06/19 16:47:01 grubba Exp $   */      #include "global.h"    -  + /* Note: See tables.c for how the private space is used. */ +    static const p_wchar1 map_DEC_MCS[] = {    0xfffd, 0x00a1, 0x00a2, 0x00a3, 0xfffd, 0x00a5, 0xfffd, 0x00a7,    0x00a4, 0x00a9, 0x00aa, 0x00ab, 0xfffd, 0xfffd, 0xfffd, 0xfffd,
512:    0x00c0, 0x00c2, 0x00c8, 0x00ca, 0x00cb, 0x00ce, 0x00cf, 0x00b4,    0x2035, 0x2227, 0x00a8, 0x223c, 0x00d9, 0x00db, 0x20a4, 0x203e,    0x00dd, 0x00fd, 0x00b0, 0x00c7, 0x00e7, 0x00d1, 0x00f1, 0x00a1, -  0x00bf, 0x00a4, 0x00a3, 0x00a5, 0x00a7, 0xe023, 0x00a2, 0x00e2, +  0x00bf, 0x00a4, 0x00a3, 0x00a5, 0x00a7, 0x0192, 0x00a2, 0x00e2,    0x00ea, 0x00f4, 0x00fb, 0x00e1, 0x00e9, 0x00f3, 0x00fa, 0x00e0,    0x00e8, 0x00f2, 0x00f9, 0x00e4, 0x00eb, 0x00f6, 0x00fc, 0x00c5,    0x00ee, 0x00d8, 0x00c6, 0x00e5, 0x00ed, 0x00f8, 0x00e6, 0x00c4,
1018:    0x00c7, 0x00fc, 0x00e9, 0x00e2, 0x00e4, 0x00e0, 0x00e5, 0x00e7,    0x00ea, 0x00eb, 0x00e8, 0x00ef, 0x00ee, 0x00ec, 0x00c4, 0x00c5,    0x00c9, 0x00e6, 0x00c6, 0x00f4, 0x00f6, 0x00f2, 0x00fb, 0x00f9, -  0x00ff, 0x00d6, 0x00dc, 0x00a2, 0x00a3, 0x00a5, 0x20a7, 0xe023, +  0x00ff, 0x00d6, 0x00dc, 0x00a2, 0x00a3, 0x00a5, 0x20a7, 0x0192,    0x00e1, 0x00ed, 0x00f3, 0x00fa, 0x00f1, 0x00d1, 0x00aa, 0x00ba,    0x00bf, 0x2310, 0x00ac, 0x00bd, 0x00bc, 0x00a1, 0x00ab, 0x00bb,    0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2525, 0x2528, 0x2512,
1064:    0x00c7, 0x00fc, 0x00e9, 0x00e2, 0x00e4, 0x00e0, 0x00e5, 0x00e7,    0x00ea, 0x00eb, 0x00e8, 0x00ef, 0x00ee, 0x00ec, 0x00c4, 0x00c5,    0x00c9, 0x00e6, 0x00c6, 0x00f4, 0x00f6, 0x00f2, 0x00fb, 0x00f9, -  0x00ff, 0x00d6, 0x00dc, 0x00f8, 0x00a3, 0x00d8, 0x00d7, 0xe023, +  0x00ff, 0x00d6, 0x00dc, 0x00f8, 0x00a3, 0x00d8, 0x00d7, 0x0192,    0x00e1, 0x00ed, 0x00f3, 0x00fa, 0x00f1, 0x00d1, 0x00aa, 0x00ba,    0x00bf, 0x00ae, 0x00ac, 0x00bd, 0x00bc, 0x00a1, 0x00ab, 0x00bb,    0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x00c1, 0x00c2, 0x00c0,
1200:    0x00c7, 0x00fc, 0x00e9, 0x00e2, 0x00c2, 0x00e0, 0x00b6, 0x00e7,    0x00ea, 0x00eb, 0x00e8, 0x00ef, 0x00ee, 0x00ec, 0x00c0, 0x00a7,    0x00c9, 0x00c8, 0x00ca, 0x00f4, 0x00cb, 0x00cf, 0x00fb, 0x00f9, -  0x00a4, 0x00d4, 0x00dc, 0x00a2, 0x00a3, 0x00d9, 0x00db, 0xe023, +  0x00a4, 0x00d4, 0x00dc, 0x00a2, 0x00a3, 0x00d9, 0x00db, 0x0192,    0x00a6, 0x00b4, 0x00f3, 0x00fa, 0x00a8, 0x00b8, 0x00b3, 0x203e,    0x00ce, 0x2310, 0x00ac, 0x00bd, 0x00bc, 0x00be, 0x00ab, 0x00bb,    0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2525, 0x2528, 0x2512,
1217:    0x00b0, 0x00b7, 0x2218, 0x221a, 0x2592, 0x2500, 0x2502, 0x253c,    0x2524, 0x252c, 0x251c, 0x2534, 0x2510, 0x250c, 0x2514, 0x2518,    0x00df, 0x221e, 0x00f8, 0x00b1, 0x00bd, 0x00bc, 0x2248, 0x00ab, -  0x00bb, 0xfef7, 0xfef8, 0xfffd, 0xfffd, 0xfefb, 0xfefc, 0xe022, +  0x00bb, 0xfef7, 0xfef8, 0xfffd, 0xfffd, 0xfefb, 0xfefc, 0xfe8e,    0xfffd, 0x00ad, 0xfe82, 0x00a3, 0x00a4, 0xfe84, 0xfffd, 0xfffd,    0xfe8e, 0x0628, 0x062a, 0x062b, 0x060c, 0x062c, 0x062d, 0x062e,    0x06f0, 0x06f1, 0x06f2, 0x06f3, 0x06f4, 0x06f5, 0x06f6, 0x06f7,
1234:    0x00c7, 0x00fc, 0x00e9, 0x00e2, 0x00e4, 0x00e0, 0x00e5, 0x00e7,    0x00ea, 0x00eb, 0x00e8, 0x00ef, 0x00ee, 0x00ec, 0x00c4, 0x00c5,    0x00c9, 0x00e6, 0x00c6, 0x00f4, 0x00f6, 0x00f2, 0x00fb, 0x00f9, -  0x00ff, 0x00d6, 0x00dc, 0x00f8, 0x00a3, 0x00d8, 0x20a7, 0xe023, +  0x00ff, 0x00d6, 0x00dc, 0x00f8, 0x00a3, 0x00d8, 0x20a7, 0x0192,    0x00e1, 0x00ed, 0x00f3, 0x00fa, 0x00f1, 0x00d1, 0x00aa, 0x00ba,    0x00bf, 0x2310, 0x00ac, 0x00bd, 0x00bc, 0x00a1, 0x00ab, 0x00bb,    0x2591, 0x2592, 0x2593, 0x2502, 0x2524, 0x2525, 0x2528, 0x2512,
1267:   static const p_wchar1 map_IBM868[] = {    0x06f0, 0x06f1, 0x06f2, 0x06f3, 0x06f4, 0x06f5, 0x06f6, 0x06f7,    0x06f8, 0x06f9, 0x060c, 0x061b, 0x061f, 0x0622, 0x0627, 0xfe8e, -  0xe022, 0x0628, 0xfe90, 0x067e, 0xfffd, 0x0629, 0x062a, 0xfe96, +  0xfe8e, 0x0628, 0xfe90, 0x067e, 0xfffd, 0x0629, 0x062a, 0xfe96,    0xfffd, 0xfffd, 0x062b, 0xfe9a, 0x062c, 0xfe9e, 0xfffd, 0xfffd,    0x062d, 0xfea2, 0x062e, 0xfea6, 0x062f, 0xfffd, 0x0630, 0x0631,    0xfffd, 0x0632, 0xfffd, 0x0633, 0xfeb2, 0x0634, 0x00ab, 0x00bb,
1556:    0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8,    0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211,    0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x00e6, 0x00f8, -  0x00bf, 0x00a1, 0x00ac, 0x221a, 0xe023, 0x2248, 0x0394, 0x00ab, +  0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x0394, 0x00ab,    0x00bb, 0x22ef, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153,    0x2014, 0x2013, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25c6,    0x00ff, 0x0178, 0x2044, 0x00a4, 0x2039, 0x203a, 0xfb01, 0xfb02,
1615:    0x2018, 0x201c, 0x00ab, 0x2190, 0x2191, 0x2192, 0x2193, 0x00b0,    0x00b1, 0x00b2, 0x00b3, 0x00d7, 0x00b5, 0x00b6, 0x00b7, 0x00f7,    0x2019, 0x201d, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xfffd, -  0xe006, 0xe007, 0xe008, 0xe009, 0xe00a, 0xe00b, 0xe00c, 0xe00d, -  0xe015, 0xe00e, 0xe011, 0xe013, 0xe00f, 0xe012, 0xe010, 0x2014, +  0xe300, 0xe301, 0xe302, 0xe303, 0xe304, 0xe306, 0xe307, 0xe308, +  0xe338, 0xe30a, 0xe327, 0xe332, 0xe30b, 0xe328, 0xe30c, 0x2014,    0x00b9, 0x00ae, 0x00a9, 0x2122, 0x2669, 0x2501, 0x2503, 0x2571,    0x2572, 0x25e2, 0x25e3, 0x215b, 0x215c, 0x215d, 0x215e, 0x2126,    0x00c6, 0x00d0, 0x00aa, 0x0126, 0x254b, 0x0132, 0x013f, 0x0141,
1644:    0x2018, 0x201c, 0x00ab, 0x2190, 0x2191, 0x2192, 0x2193, 0x00b0,    0x00b1, 0x00b2, 0x00b3, 0x00d7, 0x00b5, 0x00b6, 0x00b7, 0x00f7,    0x2019, 0x201d, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xfffd, -  0xe006, 0xe007, 0xe008, 0xe009, 0xe00a, 0xe00b, 0xe00c, 0xe00d, -  0xfffd, 0xe00e, 0xe011, 0xe013, 0xe00f, 0xe012, 0xe010, 0x2014, +  0xe300, 0xe301, 0xe302, 0xe303, 0xe304, 0xe306, 0xe307, 0xe308, +  0xfffd, 0xe30a, 0xe327, 0xe332, 0xe30b, 0xe328, 0xe30c, 0x2014,    0x00b9, 0x00ae, 0x00a9, 0x2122, 0x2669, 0xfffd, 0xfffd, 0xfffd,    0xfffd, 0xfffd, 0xfffd, 0x215b, 0x215c, 0x215d, 0x215e, 0x2126,    0x00c6, 0x00d0, 0x00aa, 0x0126, 0xfffd, 0x0132, 0x013f, 0x0141,
1673:    0x2018, 0x201c, 0x00ab, 0x2190, 0x2191, 0x2192, 0x2193, 0x00b0,    0x00b1, 0x00b2, 0x00b3, 0x00d7, 0x00b5, 0x00b6, 0x00b7, 0x00f7,    0x2019, 0x201d, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xfffd, -  0xe006, 0xe007, 0xe008, 0xe009, 0xe00a, 0xe00b, 0xe00c, 0xe00d, -  0xe015, 0xe00e, 0xe011, 0xe013, 0xe00f, 0xe012, 0xe010, 0x2014, +  0xe300, 0xe301, 0xe302, 0xe303, 0xe304, 0xe306, 0xe307, 0xe308, +  0xe338, 0xe30a, 0xe327, 0xe332, 0xe30b, 0xe328, 0xe30c, 0x2014,    0x00b9, 0x00ae, 0x00a9, 0x2122, 0x2669, 0x2501, 0x2503, 0x2571,    0x2572, 0x25e2, 0x25e3, 0x215b, 0x215c, 0x215d, 0x215e, 0x2126,    0x00c6, 0x00d0, 0x00aa, 0x0126, 0x254b, 0x0132, 0x013f, 0x0141,
1702:    0xfffd, 0xfffd, 0x00ab, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x00b0,    0x00b1, 0x00b2, 0x00b3, 0x00d7, 0x00b5, 0x00b6, 0x00b7, 0x00f7,    0xfffd, 0xfffd, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xfffd, -  0xe006, 0xe007, 0xe008, 0xe009, 0xe00a, 0xe00b, 0xe00c, 0xe00d, -  0xfffd, 0xe00e, 0xe011, 0xe013, 0xe00f, 0xe012, 0xe010, 0xfffd, +  0xe300, 0xe301, 0xe302, 0xe303, 0xe304, 0xe306, 0xe307, 0xe308, +  0xfffd, 0xe30a, 0xe327, 0xe332, 0xe30b, 0xe328, 0xe30c, 0xfffd,    0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd,    0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2126,    0x00c6, 0x00d0, 0x00aa, 0x0126, 0xfffd, 0x0132, 0x013f, 0x0141,
1730:    0x00a1, 0x00a2, 0x00a3, 0x0024, 0x00a5, 0x0023, 0x00a7, 0x00a4,    0x2018, 0x201c, 0x00ab, 0x2190, 0x2191, 0x2192, 0x2193, 0x00b0,    0x00b1, 0x00b2, 0x00b3, 0x00d7, 0x00b5, 0x00b6, 0x00b7, 0x00f7, -  0x2019, 0x201d, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xe005, -  0xe006, 0xe007, 0xe008, 0xe009, 0xe00a, 0xe00b, 0xe00c, 0xe00d, -  0xfffd, 0xe00e, 0xe011, 0xfffd, 0xe00f, 0xe012, 0xe010, 0x2014, +  0x2019, 0x201d, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, 0xe344, +  0xe300, 0xe301, 0xe302, 0xe303, 0xe304, 0xe306, 0xe307, 0xe308, +  0xfffd, 0xe30a, 0xe327, 0xfffd, 0xe30b, 0xe328, 0xe30c, 0x2014,    0x00b9, 0x00ae, 0x00a9, 0x2122, 0x2669, 0xfffd, 0xfffd, 0xfffd,    0xfffd, 0xfffd, 0xfffd, 0x215b, 0x215c, 0x215d, 0x215e, 0x2126,    0x00c6, 0x00d0, 0x00aa, 0x0126, 0xfffd, 0x0132, 0x013f, 0x0141,