root/enc/trans/ebcdic.c

/* [previous][next][first][last][top][bottom][index][help] */

DEFINITIONS

This source file includes following definitions.
  1. TRANS_INIT

/* autogenerated. */
/* src="transcode-tblgen.rb", len=30695, checksum=51134 */
/* src="ebcdic.trans", len=4561, checksum=32501 */

#include "transcode_data.h"



static const unsigned char
ebcdic_byte_array[258] = {
#define from_IBM037_to_ISO_8859_1_offsets 0
0, 255,
      0,  0,  0,  0,  1,  2,  3,  4,    5,  6,  7,  0,  0,  0,  0,  0,
      0,  0,  0,  0,  8,  9, 10, 11,    0,  0, 12, 13,  0,  0,  0,  0,
     14, 15, 16, 17, 18, 19, 20, 21,   22, 23, 24, 25, 26, 27, 28, 29,
     30, 31, 32, 33, 34, 35, 36, 37,   38, 39, 40, 41, 42, 43, 44, 45,
     46, 47, 48, 49, 50, 51, 52, 53,   54, 55, 56, 57, 58, 59, 60, 61,
     62, 63, 64, 65, 66, 67, 68, 69,   70, 71, 72, 73, 74, 75, 76, 77,
     78, 79, 80, 81, 82, 83, 84, 85,   86, 87, 88, 89, 90, 91, 92, 93,
     94, 95, 96, 97, 98, 99,100,101,  102,103,104,105,106,107,108,109,
    110,111,112,113,114,115,116,117,  118,119,120,121,122,123,124,125,
    126,127,128,129,130,131,132,133,  134,135,136,137,138,139,140,141,
    142,143,144,145,146,147,148,149,  150,151,152,153,154,155,156,157,
    158,159,160,161,162,163,  0,164,  165,166,167,168,169,170,171,172,
    173,174,175,176,177,178,179,180,  181,182,183,184,185,186,187,188,
    189,190,191,192,193,194,195,196,  197,198,199,200,201,202,203,204,
    205,206,207,208,209,210,211,212,  213,214,215,216,217,218,219,220,
    221,222,223,224,225,226,227,228,  229,230,231,232,233,234,235,236,

};
static const unsigned int
ebcdic_word_array[478] = {
#define from_IBM037_to_ISO_8859_1_infos WORDINDEX2INFO(0)
        NOMAP, o1(0x9C), o1(0x09), o1(0x86),
     o1(0x7F), o1(0x97), o1(0x8D), o1(0x8E),
     o1(0x9D), o1(0x85), o1(0x08), o1(0x87),
     o1(0x92), o1(0x8F), o1(0x80), o1(0x81),
     o1(0x82), o1(0x83), o1(0x84), o1(0x0A),
     o1(0x17), o1(0x1B), o1(0x88), o1(0x89),
     o1(0x8A), o1(0x8B), o1(0x8C), o1(0x05),
     o1(0x06), o1(0x07), o1(0x90), o1(0x91),
     o1(0x16), o1(0x93), o1(0x94), o1(0x95),
     o1(0x96), o1(0x04), o1(0x98), o1(0x99),
     o1(0x9A), o1(0x9B), o1(0x14), o1(0x15),
     o1(0x9E), o1(0x1A), o1(0x20), o1(0xA0),
     o1(0xE2), o1(0xE4), o1(0xE0), o1(0xE1),
     o1(0xE3), o1(0xE5), o1(0xE7), o1(0xF1),
     o1(0xA2), o1(0x2E), o1(0x3C), o1(0x28),
     o1(0x2B), o1(0x7C), o1(0x26), o1(0xE9),
     o1(0xEA), o1(0xEB), o1(0xE8), o1(0xED),
     o1(0xEE), o1(0xEF), o1(0xEC), o1(0xDF),
     o1(0x21), o1(0x24), o1(0x2A), o1(0x29),
     o1(0x3B), o1(0xAC), o1(0x2D), o1(0x2F),
     o1(0xC2), o1(0xC4), o1(0xC0), o1(0xC1),
     o1(0xC3), o1(0xC5), o1(0xC7), o1(0xD1),
     o1(0xA6), o1(0x2C), o1(0x25), o1(0x5F),
     o1(0x3E), o1(0x3F), o1(0xF8), o1(0xC9),
     o1(0xCA), o1(0xCB), o1(0xC8), o1(0xCD),
     o1(0xCE), o1(0xCF), o1(0xCC), o1(0x60),
     o1(0x3A), o1(0x23), o1(0x40), o1(0x27),
     o1(0x3D), o1(0x22), o1(0xD8), o1(0x61),
     o1(0x62), o1(0x63), o1(0x64), o1(0x65),
     o1(0x66), o1(0x67), o1(0x68), o1(0x69),
     o1(0xAB), o1(0xBB), o1(0xF0), o1(0xFD),
     o1(0xFE), o1(0xB1), o1(0xB0), o1(0x6A),
     o1(0x6B), o1(0x6C), o1(0x6D), o1(0x6E),
     o1(0x6F), o1(0x70), o1(0x71), o1(0x72),
     o1(0xAA), o1(0xBA), o1(0xE6), o1(0xB8),
     o1(0xC6), o1(0xA4), o1(0xB5), o1(0x7E),
     o1(0x73), o1(0x74), o1(0x75), o1(0x76),
     o1(0x77), o1(0x78), o1(0x79), o1(0x7A),
     o1(0xA1), o1(0xBF), o1(0xD0), o1(0xDD),
     o1(0xDE), o1(0xAE), o1(0x5E), o1(0xA3),
     o1(0xA5), o1(0xB7), o1(0xA9), o1(0xA7),
     o1(0xBC), o1(0xBD), o1(0xBE), o1(0x5B),
     o1(0x5D), o1(0xAF), o1(0xA8), o1(0xB4),
     o1(0xD7), o1(0x7B), o1(0x41), o1(0x42),
     o1(0x43), o1(0x44), o1(0x45), o1(0x46),
     o1(0x47), o1(0x48), o1(0x49), o1(0xAD),
     o1(0xF4), o1(0xF6), o1(0xF2), o1(0xF3),
     o1(0xF5), o1(0x7D), o1(0x4A), o1(0x4B),
     o1(0x4C), o1(0x4D), o1(0x4E), o1(0x4F),
     o1(0x50), o1(0x51), o1(0x52), o1(0xB9),
     o1(0xFB), o1(0xFC), o1(0xF9), o1(0xFA),
     o1(0xFF), o1(0x5C), o1(0xF7), o1(0x53),
     o1(0x54), o1(0x55), o1(0x56), o1(0x57),
     o1(0x58), o1(0x59), o1(0x5A), o1(0xB2),
     o1(0xD4), o1(0xD6), o1(0xD2), o1(0xD3),
     o1(0xD5), o1(0x30), o1(0x31), o1(0x32),
     o1(0x33), o1(0x34), o1(0x35), o1(0x36),
     o1(0x37), o1(0x38), o1(0x39), o1(0xB3),
     o1(0xDB), o1(0xDC), o1(0xD9), o1(0xDA),
     o1(0x9F),

#define from_IBM037_to_ISO_8859_1 WORDINDEX2INFO(237)
    from_IBM037_to_ISO_8859_1_offsets,
    from_IBM037_to_ISO_8859_1_infos,

#define from_ISO_8859_1_to_IBM037_infos WORDINDEX2INFO(239)
        NOMAP, o1(0x37), o1(0x2D), o1(0x2E),
     o1(0x2F), o1(0x16), o1(0x05), o1(0x25),
     o1(0x3C), o1(0x3D), o1(0x32), o1(0x26),
     o1(0x3F), o1(0x27), o1(0x40), o1(0x5A),
     o1(0x7F), o1(0x7B), o1(0x5B), o1(0x6C),
     o1(0x50), o1(0x7D), o1(0x4D), o1(0x5D),
     o1(0x5C), o1(0x4E), o1(0x6B), o1(0x60),
     o1(0x4B), o1(0x61), o1(0xF0), o1(0xF1),
     o1(0xF2), o1(0xF3), o1(0xF4), o1(0xF5),
     o1(0xF6), o1(0xF7), o1(0xF8), o1(0xF9),
     o1(0x7A), o1(0x5E), o1(0x4C), o1(0x7E),
     o1(0x6E), o1(0x6F), o1(0x7C), o1(0xC1),
     o1(0xC2), o1(0xC3), o1(0xC4), o1(0xC5),
     o1(0xC6), o1(0xC7), o1(0xC8), o1(0xC9),
     o1(0xD1), o1(0xD2), o1(0xD3), o1(0xD4),
     o1(0xD5), o1(0xD6), o1(0xD7), o1(0xD8),
     o1(0xD9), o1(0xE2), o1(0xE3), o1(0xE4),
     o1(0xE5), o1(0xE6), o1(0xE7), o1(0xE8),
     o1(0xE9), o1(0xBA), o1(0xE0), o1(0xBB),
     o1(0xB0), o1(0x6D), o1(0x79), o1(0x81),
     o1(0x82), o1(0x83), o1(0x84), o1(0x85),
     o1(0x86), o1(0x87), o1(0x88), o1(0x89),
     o1(0x91), o1(0x92), o1(0x93), o1(0x94),
     o1(0x95), o1(0x96), o1(0x97), o1(0x98),
     o1(0x99), o1(0xA2), o1(0xA3), o1(0xA4),
     o1(0xA5), o1(0xA6), o1(0xA7), o1(0xA8),
     o1(0xA9), o1(0xC0), o1(0x4F), o1(0xD0),
     o1(0xA1), o1(0x07), o1(0x20), o1(0x21),
     o1(0x22), o1(0x23), o1(0x24), o1(0x15),
     o1(0x06), o1(0x17), o1(0x28), o1(0x29),
     o1(0x2A), o1(0x2B), o1(0x2C), o1(0x09),
     o1(0x0A), o1(0x1B), o1(0x30), o1(0x31),
     o1(0x1A), o1(0x33), o1(0x34), o1(0x35),
     o1(0x36), o1(0x08), o1(0x38), o1(0x39),
     o1(0x3A), o1(0x3B), o1(0x04), o1(0x14),
     o1(0x3E), o1(0xFF), o1(0x41), o1(0xAA),
     o1(0x4A), o1(0xB1), o1(0x9F), o1(0xB2),
     o1(0x6A), o1(0xB5), o1(0xBD), o1(0xB4),
     o1(0x9A), o1(0x8A), o1(0x5F), o1(0xCA),
     o1(0xAF), o1(0xBC), o1(0x90), o1(0x8F),
     o1(0xEA), o1(0xFA), o1(0xBE), o1(0xA0),
     o1(0xB3), o1(0x9D), o1(0xDA), o1(0x9B),
     o1(0x8B), o1(0xB7), o1(0xB8), o1(0xB9),
     o1(0xAB), o1(0x64), o1(0x65), o1(0x62),
     o1(0x66), o1(0x63), o1(0x67), o1(0x9E),
     o1(0x68), o1(0x74), o1(0x71), o1(0x72),
     o1(0x73), o1(0x78), o1(0x75), o1(0x76),
     o1(0x77), o1(0xAC), o1(0x69), o1(0xED),
     o1(0xEE), o1(0xEB), o1(0xEF), o1(0xEC),
     o1(0xBF), o1(0x80), o1(0xFD), o1(0xFE),
     o1(0xFB), o1(0xFC), o1(0xAD), o1(0xAE),
     o1(0x59), o1(0x44), o1(0x45), o1(0x42),
     o1(0x46), o1(0x43), o1(0x47), o1(0x9C),
     o1(0x48), o1(0x54), o1(0x51), o1(0x52),
     o1(0x53), o1(0x58), o1(0x55), o1(0x56),
     o1(0x57), o1(0x8C), o1(0x49), o1(0xCD),
     o1(0xCE), o1(0xCB), o1(0xCF), o1(0xCC),
     o1(0xE1), o1(0x70), o1(0xDD), o1(0xDE),
     o1(0xDB), o1(0xDC), o1(0x8D), o1(0x8E),
     o1(0xDF),

#define from_ISO_8859_1_to_IBM037 WORDINDEX2INFO(476)
    from_IBM037_to_ISO_8859_1_offsets,
    from_ISO_8859_1_to_IBM037_infos,

};
#define TRANSCODE_TABLE_INFO ebcdic_byte_array, 258, ebcdic_word_array, 478, ((int)sizeof(unsigned int))
static const rb_transcoder
rb_from_IBM037_to_ISO_8859_1 = {
    "IBM037", "ISO-8859-1", from_IBM037_to_ISO_8859_1,
    TRANSCODE_TABLE_INFO,
    1, /* input_unit_length */
    1, /* max_input */
    1, /* max_output */
    asciicompat_decoder, /* asciicompat_type */
    0, NULL, NULL, /* state_size, state_init, state_fini */
    NULL, NULL, NULL, NULL,
    NULL, NULL, NULL
};
static const rb_transcoder
rb_from_ISO_8859_1_to_IBM037 = {
    "ISO-8859-1", "IBM037", from_ISO_8859_1_to_IBM037,
    TRANSCODE_TABLE_INFO,
    1, /* input_unit_length */
    1, /* max_input */
    1, /* max_output */
    asciicompat_encoder, /* asciicompat_type */
    0, NULL, NULL, /* state_size, state_init, state_fini */
    NULL, NULL, NULL, NULL,
    NULL, NULL, NULL
};


TRANS_INIT(ebcdic)
{
    rb_register_transcoder(&rb_from_IBM037_to_ISO_8859_1);
    rb_register_transcoder(&rb_from_ISO_8859_1_to_IBM037);

}


/* [previous][next][first][last][top][bottom][index][help] */