diff options
Diffstat (limited to 'enc/trans/single_byte.c')
-rw-r--r-- | enc/trans/single_byte.c | 87 |
1 files changed, 57 insertions, 30 deletions
diff --git a/enc/trans/single_byte.c b/enc/trans/single_byte.c index 9e132b8bed..59f6346364 100644 --- a/enc/trans/single_byte.c +++ b/enc/trans/single_byte.c @@ -1,5 +1,23 @@ +/* autogenerated. */ +/* src="single_byte.erb.c", len=2228, checksum=35690 */ +/* src="iso-8859-2-tbl.rb", len=1525, checksum=18386 */ +/* src="iso-8859-3-tbl.rb", len=1391, checksum=11560 */ +/* src="iso-8859-4-tbl.rb", len=1518, checksum=18050 */ +/* src="iso-8859-5-tbl.rb", len=1562, checksum=19680 */ +/* src="iso-8859-6-tbl.rb", len=841, checksum=46155 */ +/* src="iso-8859-7-tbl.rb", len=1505, checksum=17611 */ +/* src="iso-8859-8-tbl.rb", len=961, checksum=53500 */ +/* src="iso-8859-9-tbl.rb", len=1474, checksum=16589 */ +/* src="iso-8859-10-tbl.rb", len=1516, checksum=18011 */ +/* src="iso-8859-11-tbl.rb", len=1436, checksum=14115 */ +/* src="iso-8859-13-tbl.rb", len=1525, checksum=18280 */ +/* src="iso-8859-14-tbl.rb", len=1522, checksum=18993 */ +/* src="iso-8859-15-tbl.rb", len=1478, checksum=16787 */ + #include "transcode_data.h" + + static const unsigned char from_US_ASCII_offsets[256] = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -25,49 +43,43 @@ from_US_ASCII_infos[2] = { }; static const BYTE_LOOKUP from_US_ASCII = { - /* used from from_US_ASCII */ - /* used from to_US_ASCII */ - /* used from to_ASCII_8BIT */ - /* used from from_ASCII_8BIT */ from_US_ASCII_offsets, from_US_ASCII_infos }; + static const rb_transcoder rb_from_US_ASCII = { "US-ASCII", "UTF-8", &from_US_ASCII, 1, 0, NULL, NULL, }; + static const rb_transcoder rb_to_US_ASCII = { "UTF-8", "US-ASCII", &from_US_ASCII, 1, 1, NULL, NULL, }; + static const rb_transcoder rb_from_ASCII_8BIT = { "ASCII-8BIT", "UTF-8", &from_US_ASCII, 1, 0, NULL, NULL, }; + static const rb_transcoder rb_to_ASCII_8BIT = { "UTF-8", "ASCII-8BIT", &from_US_ASCII, 1, 1, NULL, NULL, }; + + + static const unsigned char from_ISO_8859_1_offsets[256] = { - /* used from from_ISO_8859_1 */ - /* used from from_ISO_8859_2 */ - /* used from from_ISO_8859_4 */ - /* used from from_ISO_8859_5 */ - /* used from from_ISO_8859_9 */ - /* used from from_ISO_8859_10 */ - /* used from from_ISO_8859_13 */ - /* used from from_ISO_8859_14 */ - /* used from from_ISO_8859_15 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -127,6 +139,7 @@ from_ISO_8859_1 = { from_ISO_8859_1_infos }; + static const rb_transcoder rb_from_ISO_8859_1 = { "ISO-8859-1", "UTF-8", &from_ISO_8859_1, 2, 0, @@ -135,8 +148,6 @@ rb_from_ISO_8859_1 = { static const unsigned char to_ISO_8859_1_C2_offsets[64] = { - /* used from to_ISO_8859_1_C2 */ - /* used from to_ISO_8859_1_C3 */ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 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, @@ -163,8 +174,6 @@ to_ISO_8859_1_C2_infos[64] = { }; static const BYTE_LOOKUP to_ISO_8859_1_C2 = { - /* used from to_ISO_8859_1 */ - /* used from to_ISO_8859_9 */ to_ISO_8859_1_C2_offsets, to_ISO_8859_1_C2_infos }; @@ -190,8 +199,6 @@ to_ISO_8859_1_C3_infos[64] = { }; static const BYTE_LOOKUP to_ISO_8859_1_C3 = { - /* used from to_ISO_8859_1 */ - /* used from to_ISO_8859_15 */ to_ISO_8859_1_C2_offsets, to_ISO_8859_1_C3_infos }; @@ -226,6 +233,7 @@ to_ISO_8859_1 = { to_ISO_8859_1_infos }; + static const rb_transcoder rb_to_ISO_8859_1 = { "UTF-8", "ISO-8859-1", &to_ISO_8859_1, 1, 1, @@ -274,6 +282,7 @@ from_ISO_8859_2 = { from_ISO_8859_2_infos }; + static const rb_transcoder rb_from_ISO_8859_2 = { "ISO-8859-2", "UTF-8", &from_ISO_8859_2, 2, 0, @@ -398,9 +407,6 @@ to_ISO_8859_2_CB = { static const unsigned char to_ISO_8859_2_offsets[256] = { - /* used from to_ISO_8859_2 */ - /* used from to_ISO_8859_3 */ - /* used from to_ISO_8859_4 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -431,6 +437,7 @@ to_ISO_8859_2 = { to_ISO_8859_2_infos }; + static const rb_transcoder rb_to_ISO_8859_2 = { "UTF-8", "ISO-8859-2", &to_ISO_8859_2, 1, 1, @@ -496,6 +503,7 @@ from_ISO_8859_3 = { from_ISO_8859_3_infos }; + static const rb_transcoder rb_from_ISO_8859_3 = { "ISO-8859-3", "UTF-8", &from_ISO_8859_3, 2, 0, @@ -628,6 +636,7 @@ to_ISO_8859_3 = { to_ISO_8859_3_infos }; + static const rb_transcoder rb_to_ISO_8859_3 = { "UTF-8", "ISO-8859-3", &to_ISO_8859_3, 1, 1, @@ -676,6 +685,7 @@ from_ISO_8859_4 = { from_ISO_8859_4_infos }; + static const rb_transcoder rb_from_ISO_8859_4 = { "ISO-8859-4", "UTF-8", &from_ISO_8859_4, 2, 0, @@ -737,8 +747,6 @@ to_ISO_8859_4_C3 = { static const unsigned char to_ISO_8859_4_C4_offsets[64] = { - /* used from to_ISO_8859_4_C4 */ - /* used from to_ISO_8859_10_C4 */ 0, 1, 27, 27, 2, 3, 27, 27, 27, 27, 27, 27, 4, 5, 27, 27, 6, 7, 8, 9, 27, 27, 10, 11, 12, 13, 27, 27, 27, 27, 27, 27, 27, 27, 14, 15, 27, 27, 27, 27, 16, 17, 18, 19, 27, 27, 20, 21, @@ -812,6 +820,7 @@ to_ISO_8859_4 = { to_ISO_8859_4_infos }; + static const rb_transcoder rb_to_ISO_8859_4 = { "UTF-8", "ISO-8859-4", &to_ISO_8859_4, 1, 1, @@ -892,6 +901,7 @@ from_ISO_8859_5 = { from_ISO_8859_5_infos }; + static const rb_transcoder rb_from_ISO_8859_5 = { "ISO-8859-5", "UTF-8", &from_ISO_8859_5, 3, 0, @@ -1044,6 +1054,7 @@ to_ISO_8859_5 = { to_ISO_8859_5_infos }; + static const rb_transcoder rb_to_ISO_8859_5 = { "UTF-8", "ISO-8859-5", &to_ISO_8859_5, 1, 1, @@ -1100,6 +1111,7 @@ from_ISO_8859_6 = { from_ISO_8859_6_infos }; + static const rb_transcoder rb_from_ISO_8859_6 = { "ISO-8859-6", "UTF-8", &from_ISO_8859_6, 2, 0, @@ -1207,6 +1219,7 @@ to_ISO_8859_6 = { to_ISO_8859_6_infos }; + static const rb_transcoder rb_to_ISO_8859_6 = { "UTF-8", "ISO-8859-6", &to_ISO_8859_6, 1, 1, @@ -1305,6 +1318,7 @@ from_ISO_8859_7 = { from_ISO_8859_7_infos }; + static const rb_transcoder rb_from_ISO_8859_7 = { "ISO-8859-7", "UTF-8", &from_ISO_8859_7, 3, 0, @@ -1492,6 +1506,7 @@ to_ISO_8859_7 = { to_ISO_8859_7_infos }; + static const rb_transcoder rb_to_ISO_8859_7 = { "UTF-8", "ISO-8859-7", &to_ISO_8859_7, 1, 1, @@ -1573,6 +1588,7 @@ from_ISO_8859_8 = { from_ISO_8859_8_infos }; + static const rb_transcoder rb_from_ISO_8859_8 = { "ISO-8859-8", "UTF-8", &from_ISO_8859_8, 3, 0, @@ -1670,9 +1686,6 @@ to_ISO_8859_8_E2_80 = { static const unsigned char to_ISO_8859_8_E2_offsets[64] = { - /* used from to_ISO_8859_8_E2 */ - /* used from to_ISO_8859_10_E2 */ - /* used from to_ISO_8859_13_E2 */ 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, @@ -1719,6 +1732,7 @@ to_ISO_8859_8 = { to_ISO_8859_8_infos }; + static const rb_transcoder rb_to_ISO_8859_8 = { "UTF-8", "ISO-8859-8", &to_ISO_8859_8, 1, 1, @@ -1767,6 +1781,7 @@ from_ISO_8859_9 = { from_ISO_8859_9_infos }; + static const rb_transcoder rb_from_ISO_8859_9 = { "ISO-8859-9", "UTF-8", &from_ISO_8859_9, 2, 0, @@ -1870,6 +1885,7 @@ to_ISO_8859_9 = { to_ISO_8859_9_infos }; + static const rb_transcoder rb_to_ISO_8859_9 = { "UTF-8", "ISO-8859-9", &to_ISO_8859_9, 1, 1, @@ -1950,6 +1966,7 @@ from_ISO_8859_10 = { from_ISO_8859_10_infos }; + static const rb_transcoder rb_from_ISO_8859_10 = { "ISO-8859-10", "UTF-8", &from_ISO_8859_10, 3, 0, @@ -2076,8 +2093,6 @@ to_ISO_8859_10_E2 = { static const unsigned char to_ISO_8859_10_offsets[256] = { - /* used from to_ISO_8859_10 */ - /* used from to_ISO_8859_13 */ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, @@ -2108,6 +2123,7 @@ to_ISO_8859_10 = { to_ISO_8859_10_infos }; + static const rb_transcoder rb_to_ISO_8859_10 = { "UTF-8", "ISO-8859-10", &to_ISO_8859_10, 1, 1, @@ -2203,6 +2219,7 @@ from_ISO_8859_11 = { from_ISO_8859_11_infos }; + static const rb_transcoder rb_from_ISO_8859_11 = { "ISO-8859-11", "UTF-8", &from_ISO_8859_11, 3, 0, @@ -2337,6 +2354,7 @@ to_ISO_8859_11 = { to_ISO_8859_11_infos }; + static const rb_transcoder rb_to_ISO_8859_11 = { "UTF-8", "ISO-8859-11", &to_ISO_8859_11, 1, 1, @@ -2417,6 +2435,7 @@ from_ISO_8859_13 = { from_ISO_8859_13_infos }; + static const rb_transcoder rb_from_ISO_8859_13 = { "ISO-8859-13", "UTF-8", &from_ISO_8859_13, 3, 0, @@ -2562,6 +2581,7 @@ to_ISO_8859_13 = { to_ISO_8859_13_infos }; + static const rb_transcoder rb_to_ISO_8859_13 = { "UTF-8", "ISO-8859-13", &to_ISO_8859_13, 1, 1, @@ -2642,6 +2662,7 @@ from_ISO_8859_14 = { from_ISO_8859_14_infos }; + static const rb_transcoder rb_from_ISO_8859_14 = { "ISO-8859-14", "UTF-8", &from_ISO_8859_14, 3, 0, @@ -2864,6 +2885,7 @@ to_ISO_8859_14 = { to_ISO_8859_14_infos }; + static const rb_transcoder rb_to_ISO_8859_14 = { "UTF-8", "ISO-8859-14", &to_ISO_8859_14, 1, 1, @@ -2944,6 +2966,7 @@ from_ISO_8859_15 = { from_ISO_8859_15_infos }; + static const rb_transcoder rb_from_ISO_8859_15 = { "ISO-8859-15", "UTF-8", &from_ISO_8859_15, 3, 0, @@ -3064,12 +3087,14 @@ to_ISO_8859_15 = { to_ISO_8859_15_infos }; + static const rb_transcoder rb_to_ISO_8859_15 = { "UTF-8", "ISO-8859-15", &to_ISO_8859_15, 1, 1, NULL, NULL, }; + void Init_single_byte(void) { @@ -3105,5 +3130,7 @@ Init_single_byte(void) rb_register_transcoder(&rb_to_ISO_8859_14); rb_register_transcoder(&rb_from_ISO_8859_15); rb_register_transcoder(&rb_to_ISO_8859_15); + } -/* Footprint (bytes): gross: 27876, saved: 4544, net: 23332 */ + + |