pike.git / src / modules / _Charset / misc.c

version» Context lines:

pike.git/src/modules/_Charset/misc.c:1:   /*   || 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.12 2002/10/11 01:39:49 nilsson Exp $ + || $Id: misc.c,v 1.13 2003/04/06 14:37:31 nilsson Exp $   */      #include "global.h"      const p_wchar1 map_DEC_MCS[] = {    0xfffd, 0x00a1, 0x00a2, 0x00a3, 0xfffd, 0x00a5, 0xfffd, 0x00a7,    0x00a4, 0x00a9, 0x00aa, 0x00ab, 0xfffd, 0xfffd, 0xfffd, 0xfffd,    0x00b0, 0x00b1, 0x00b2, 0x00b3, 0xfffd, 0x00b5, 0x00b6, 0x00b7,    0xfffd, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0xfffd, 0x00bf,    0x00c0, 0x00c1, 0x00c2, 0x00c3, 0x00c4, 0x00c5, 0x00c6, 0x00c7,
pike.git/src/modules/_Charset/misc.c:1892:    0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0301, 0x00ed, 0x00ee, 0x00ef,    0x0111, 0x00f1, 0x0323, 0x00f3, 0x00f4, 0x01a1, 0x00f6, 0x00f7,    0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x01b0, 0x20ab, 0x00ff, };         static const struct {    char *name;    p_wchar1 const * table;    int lo, hi;   } charset_map[] = { -  { "037", map_IBM037, 32, 255 }, /* :: ibm037 */ -  { "038", map_IBM038, 32, 255 }, /* :: ibm038 */ +     { "1026", map_IBM1026, 32, 255 }, /* :: ibm1026 */    { "1250", map_windows_1250, 128, 255 }, /* :: cp1250 */    { "1251", map_windows_1251, 128, 255 }, /* :: cp1251 */    { "1252", map_windows_1252, 128, 255 }, /* :: cp1252 */    { "1253", map_windows_1253, 128, 255 }, /* :: cp1253 */    { "1254", map_windows_1254, 128, 255 }, /* :: cp1254 */    { "1255", map_windows_1255, 128, 255 }, /* :: cp1255 */    { "1256", map_windows_1256, 128, 255 }, /* :: cp1256 */    { "1257", map_windows_1257, 128, 255 }, /* :: cp1257 */    { "1258", map_windows_1258, 128, 255 }, /* :: cp1258 */
pike.git/src/modules/_Charset/misc.c:1915:    { "274", map_IBM274, 32, 255 }, /* :: ibm274 */    { "275", map_IBM275, 32, 255 }, /* :: ibm275 */    { "277", map_IBM277, 32, 255 }, /* :: ibm277 */    { "278", map_IBM278, 32, 255 }, /* :: ibm278 */    { "280", map_IBM280, 32, 255 }, /* :: ibm280 */    { "281", map_IBM281, 32, 255 }, /* :: ibm281 */    { "284", map_IBM284, 32, 255 }, /* :: ibm284 */    { "285", map_IBM285, 32, 255 }, /* :: ibm285 */    { "290", map_IBM290, 32, 255 }, /* :: ibm290 */    { "297", map_IBM297, 32, 255 }, /* :: ibm297 */ +  { "37", map_IBM037, 32, 255 }, /* :: ibm037 */ +  { "38", map_IBM038, 32, 255 }, /* :: ibm038 */    { "420", map_IBM420, 32, 255 }, /* :: ibm420 */    { "423", map_IBM423, 32, 255 }, /* :: ibm423 */    { "424", map_IBM424, 32, 255 }, /* :: ibm424 */    { "437", map_IBM437, 128, 255 }, /* :: ibm437 */    { "500", map_IBM500, 32, 255 }, /* :: ibm500 */    { "850", map_IBM850, 128, 255 }, /* :: ibm850 */    { "851", map_IBM851, 128, 255 }, /* :: ibm851 */    { "852", map_IBM852, 128, 255 }, /* :: ibm852 */    { "855", map_IBM855, 128, 255 }, /* :: ibm855 */    { "857", map_IBM857, 128, 255 }, /* :: ibm857 */
pike.git/src/modules/_Charset/misc.c:1943:    { "869", map_IBM869, 128, 255 }, /* :: ibm869 */    { "870", map_IBM870, 32, 255 }, /* :: ibm870 */    { "871", map_IBM871, 32, 255 }, /* :: ibm871 */    { "880", map_IBM880, 32, 255 }, /* :: ibm880 */    { "891", map_IBM891, 128, 255 }, /* :: ibm891 */    { "903", map_IBM903, 128, 255 }, /* :: ibm903 */    { "904", map_IBM904, 128, 255 }, /* :: ibm904 */    { "905", map_IBM905, 32, 255 }, /* :: ibm905 */    { "918", map_IBM918, 32, 255 }, /* :: ibm918 */    { "ansix31101983", map_ANSI_X3_110_1983, 33, 255 }, /* :: ansi_x3.110-1983 */ +  { "at5001983", map_ANSI_X3_110_1983, 33, 255 }, /* :: csa_t500-1983 */    { "cpar", map_IBM868, 128, 255 }, /* :: cp-ar */    { "cpgr", map_IBM869, 128, 255 }, /* :: cp-gr */    { "cpis", map_IBM861, 128, 255 }, /* :: cp-is */ -  { "csat5001983", map_ANSI_X3_110_1983, 33, 255 }, /* :: csa_t500-1983 */ +     { "cuba", map_NC_NC00_10_81, 36, 127 }, /* :: cuba */    { "dec", map_DEC_MCS, 160, 255 }, /* :: dec */    { "decmcs", map_DEC_MCS, 160, 255 }, /* :: dec-mcs */    { "dk", map_DS_2089, 91, 127 }, /* :: dk */    { "ds2089", map_DS_2089, 91, 127 }, /* :: ds_2089 */    { "ebcdicatde", map_EBCDIC_AT_DE, 32, 255 }, /* :: ebcdic-at-de */    { "ebcdicatdea", map_EBCDIC_AT_DE_A, 32, 255 }, /* :: ebcdic-at-de-a */    { "ebcdicbe", map_IBM274, 32, 255 }, /* :: ebcdic-be */    { "ebcdicbr", map_IBM275, 32, 255 }, /* :: ebcdic-br */    { "ebcdiccafr", map_EBCDIC_CA_FR, 32, 255 }, /* :: ebcdic-ca-fr */
pike.git/src/modules/_Charset/misc.c:1996:    { "ebcdicfisea", map_EBCDIC_FI_SE_A, 32, 255 }, /* :: ebcdic-fi-se-a */    { "ebcdicfr", map_EBCDIC_FR, 32, 255 }, /* :: ebcdic-fr */    { "ebcdicint", map_IBM038, 32, 255 }, /* :: ebcdic-int */    { "ebcdicit", map_EBCDIC_IT, 32, 255 }, /* :: ebcdic-it */    { "ebcdicjpe", map_IBM281, 32, 255 }, /* :: ebcdic-jp-e */    { "ebcdicjpkana", map_IBM290, 32, 255 }, /* :: ebcdic-jp-kana */    { "ebcdicpt", map_EBCDIC_PT, 32, 255 }, /* :: ebcdic-pt */    { "ebcdicuk", map_EBCDIC_UK, 32, 255 }, /* :: ebcdic-uk */    { "ebcdicus", map_EBCDIC_US, 32, 255 }, /* :: ebcdic-us */    { "greekccitt", map_greek_ccitt, 36, 127 }, /* :: greek-ccitt */ +  { "halfwidthkatakana", map_JIS_X0201, 92, 255 },    { "hproman8", map_hp_roman8, 161, 255 }, /* :: hp-roman8 */ -  +  { "ibmebcdicatde", map_EBCDIC_AT_DE, 32, 255 },    { "invariant", map_INVARIANT, 35, 127 }, /* :: invariant */ -  +  { "iso103t618bit", map_T_61_8bit, 33, 255 }, +  { "iso128t101g2", map_T_101_G2, 33, 255 }, +  { "iso150", map_greek_ccitt, 36, 127 }, +  { "iso150greekccitt", map_greek_ccitt, 36, 127 }, +  { "iso151cuba", map_NC_NC00_10_81, 36, 127 },    { "iso646basic1983", map_ISO_646_basic_1983, 35, 122 }, /* :: iso_646.basic:1983 */    { "iso646cu", map_NC_NC00_10_81, 36, 127 }, /* :: iso646-cu */ -  +  { "iso646danish", map_DS_2089, 91, 127 },    { "iso646dk", map_DS_2089, 91, 127 }, /* :: iso646-dk */    { "iso646kr", map_KSC5636, 92, 127 }, /* :: iso646-kr */ -  +  { "iso70videotexsuppl", map_videotex_suppl, 33, 255 }, +  { "iso90", map_iso_ir_90, 33, 255 }, +  { "iso99naplps", map_ANSI_X3_110_1983, 33, 255 },    { "isoir103", map_T_61_8bit, 33, 255 }, /* :: iso-ir-103 */    { "isoir128", map_T_101_G2, 33, 255 }, /* :: iso-ir-128 */    { "isoir150", map_greek_ccitt, 36, 127 }, /* :: iso-ir-150 */    { "isoir151", map_NC_NC00_10_81, 36, 127 }, /* :: iso-ir-151 */    { "isoir70", map_videotex_suppl, 33, 255 }, /* :: iso-ir-70 */    { "isoir90", map_iso_ir_90, 33, 255 }, /* :: iso-ir-90 */    { "isoir99", map_ANSI_X3_110_1983, 33, 255 }, /* :: iso-ir-99 */    { "jisx0201", map_JIS_X0201, 92, 255 }, /* :: jis_x0201 */    { "koi8r", map_koi8_r, 128, 255 }, /* :: koi8-r */    { "koi8u", map_koi8_u, 128, 255 }, /* :: koi8-u */    { "ksc5636", map_KSC5636, 92, 127 }, /* :: ksc5636 */    { "mac", map_macintosh, 128, 255 }, /* :: mac */    { "maccyr", map_macintosh_cyr, 128, 255 }, /* :: mac-cyr */    { "macintosh", map_macintosh, 128, 255 }, /* :: macintosh */    { "macintoshcyr", map_macintosh_cyr, 128, 255 }, /* :: macintosh-cyr */    { "msansi", map_windows_1252, 128, 255 }, /* :: ms-ansi */    { "naplps", map_ANSI_X3_110_1983, 33, 255 }, /* :: naplps */    { "ncnc001081", map_NC_NC00_10_81, 36, 127 }, /* :: nc_nc00-10:81 */ -  +  { "pc850multilingual", map_IBM850, 128, 255 }, +  { "pc862latinhebrew", map_IBM862, 128, 255 }, +  { "pc8codepage437", map_IBM437, 128, 255 }, +  { "pcp852", map_IBM852, 128, 255 },    { "r8", map_hp_roman8, 161, 255 }, /* :: r8 */    { "ref", map_ISO_646_basic_1983, 35, 122 }, /* :: ref */    { "roman8", map_hp_roman8, 161, 255 }, /* :: roman8 */    { "t101g2", map_T_101_G2, 33, 255 }, /* :: t.101-g2 */    { "t61", map_T_61_8bit, 33, 255 }, /* :: t.61 */    { "t618bit", map_T_61_8bit, 33, 255 }, /* :: t.61-8bit */    { "videotexsuppl", map_videotex_suppl, 33, 255 }, /* :: videotex-suppl */    { "windows1250", map_windows_1250, 128, 255 }, /* :: windows-1250 */    { "windows1251", map_windows_1251, 128, 255 }, /* :: windows-1251 */    { "windows1252", map_windows_1252, 128, 255 }, /* :: windows-1252 */