nokolexbor 0.3.4 → 0.3.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nokolexbor/nl_attribute.c +46 -0
  3. data/ext/nokolexbor/nl_cdata.c +8 -0
  4. data/ext/nokolexbor/nl_comment.c +6 -0
  5. data/ext/nokolexbor/nl_document.c +53 -7
  6. data/ext/nokolexbor/nl_document_fragment.c +9 -0
  7. data/ext/nokolexbor/nl_error.c +21 -19
  8. data/ext/nokolexbor/nl_node.c +255 -49
  9. data/ext/nokolexbor/nl_node_set.c +56 -1
  10. data/ext/nokolexbor/nl_processing_instruction.c +6 -0
  11. data/ext/nokolexbor/nl_text.c +6 -0
  12. data/ext/nokolexbor/nokolexbor.h +1 -0
  13. data/lib/nokolexbor/document.rb +52 -5
  14. data/lib/nokolexbor/document_fragment.rb +11 -0
  15. data/lib/nokolexbor/node.rb +367 -18
  16. data/lib/nokolexbor/node_set.rb +56 -0
  17. data/lib/nokolexbor/version.rb +1 -1
  18. metadata +2 -24
  19. data/vendor/lexbor/source/lexbor/encoding/base.h +0 -218
  20. data/vendor/lexbor/source/lexbor/encoding/big5.c +0 -42839
  21. data/vendor/lexbor/source/lexbor/encoding/config.cmake +0 -12
  22. data/vendor/lexbor/source/lexbor/encoding/const.h +0 -65
  23. data/vendor/lexbor/source/lexbor/encoding/decode.c +0 -3193
  24. data/vendor/lexbor/source/lexbor/encoding/decode.h +0 -370
  25. data/vendor/lexbor/source/lexbor/encoding/encode.c +0 -1931
  26. data/vendor/lexbor/source/lexbor/encoding/encode.h +0 -377
  27. data/vendor/lexbor/source/lexbor/encoding/encoding.c +0 -252
  28. data/vendor/lexbor/source/lexbor/encoding/encoding.h +0 -475
  29. data/vendor/lexbor/source/lexbor/encoding/euc_kr.c +0 -53883
  30. data/vendor/lexbor/source/lexbor/encoding/gb18030.c +0 -47905
  31. data/vendor/lexbor/source/lexbor/encoding/iso_2022_jp_katakana.c +0 -159
  32. data/vendor/lexbor/source/lexbor/encoding/jis0208.c +0 -22477
  33. data/vendor/lexbor/source/lexbor/encoding/jis0212.c +0 -15787
  34. data/vendor/lexbor/source/lexbor/encoding/multi.h +0 -53
  35. data/vendor/lexbor/source/lexbor/encoding/range.c +0 -71
  36. data/vendor/lexbor/source/lexbor/encoding/range.h +0 -34
  37. data/vendor/lexbor/source/lexbor/encoding/res.c +0 -222
  38. data/vendor/lexbor/source/lexbor/encoding/res.h +0 -34
  39. data/vendor/lexbor/source/lexbor/encoding/single.c +0 -13748
  40. data/vendor/lexbor/source/lexbor/encoding/single.h +0 -116
@@ -1,53 +0,0 @@
1
- /*
2
- * Copyright (C) 2019 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- /*
8
- * Caution!
9
- * This file generated by the script "utils/lexbor/encoding/multi-byte.py"!
10
- * Do not change this file!
11
- */
12
-
13
-
14
- #ifndef LEXBOR_ENCODING_MULTI_H
15
- #define LEXBOR_ENCODING_MULTI_H
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- #include "lexbor/encoding/base.h"
22
-
23
- #include "lexbor/core/shs.h"
24
-
25
-
26
- #define LXB_ENCODING_MULTI_HASH_BIG5_SIZE 20172
27
- #define LXB_ENCODING_MULTI_HASH_EUC_KR_SIZE 28041
28
- #define LXB_ENCODING_MULTI_HASH_GB18030_SIZE 19950
29
- #define LXB_ENCODING_MULTI_HASH_ISO_2022_JP_KATAKANA_SIZE 52
30
- #define LXB_ENCODING_MULTI_HASH_JIS0208_SIZE 9253
31
- #define LXB_ENCODING_MULTI_HASH_JIS0212_SIZE 6923
32
-
33
-
34
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_big5[19782];
35
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_euc_kr[23750];
36
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_gb18030[23940];
37
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_iso_2022_jp_katakana[63];
38
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_jis0208[11104];
39
- LXB_EXTERN const lxb_encoding_multi_index_t lxb_encoding_multi_index_jis0212[7211];
40
-
41
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_big5[23033];
42
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_euc_kr[30109];
43
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_gb18030[23941];
44
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_iso_2022_jp_katakana[72];
45
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_jis0208[11349];
46
- LXB_EXTERN const lexbor_shs_hash_t lxb_encoding_multi_hash_jis0212[8552];
47
-
48
-
49
- #ifdef __cplusplus
50
- } /* extern "C" */
51
- #endif
52
-
53
- #endif /* LEXBOR_ENCODING_MULTI_H */
@@ -1,71 +0,0 @@
1
- /*
2
- * Copyright (C) 2019 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- /*
8
- * Caution!
9
- * This file generated by the script "utils/lexbor/encoding/range-byte.py"!
10
- * Do not change this file!
11
- */
12
-
13
- #include "lexbor/encoding/base.h"
14
-
15
-
16
- LXB_API const lxb_encoding_range_index_t lxb_encoding_range_index_gb18030[207] =
17
- {
18
- {0, 0x0080}, {36, 0x00A5}, {38, 0x00A9}, {45, 0x00B2},
19
- {50, 0x00B8}, {81, 0x00D8}, {89, 0x00E2}, {95, 0x00EB},
20
- {96, 0x00EE}, {100, 0x00F4}, {103, 0x00F8}, {104, 0x00FB},
21
- {105, 0x00FD}, {109, 0x0102}, {126, 0x0114}, {133, 0x011C},
22
- {148, 0x012C}, {172, 0x0145}, {175, 0x0149}, {179, 0x014E},
23
- {208, 0x016C}, {306, 0x01CF}, {307, 0x01D1}, {308, 0x01D3},
24
- {309, 0x01D5}, {310, 0x01D7}, {311, 0x01D9}, {312, 0x01DB},
25
- {313, 0x01DD}, {341, 0x01FA}, {428, 0x0252}, {443, 0x0262},
26
- {544, 0x02C8}, {545, 0x02CC}, {558, 0x02DA}, {741, 0x03A2},
27
- {742, 0x03AA}, {749, 0x03C2}, {750, 0x03CA}, {805, 0x0402},
28
- {819, 0x0450}, {820, 0x0452}, {7922, 0x2011}, {7924, 0x2017},
29
- {7925, 0x201A}, {7927, 0x201E}, {7934, 0x2027}, {7943, 0x2031},
30
- {7944, 0x2034}, {7945, 0x2036}, {7950, 0x203C}, {8062, 0x20AD},
31
- {8148, 0x2104}, {8149, 0x2106}, {8152, 0x210A}, {8164, 0x2117},
32
- {8174, 0x2122}, {8236, 0x216C}, {8240, 0x217A}, {8262, 0x2194},
33
- {8264, 0x219A}, {8374, 0x2209}, {8380, 0x2210}, {8381, 0x2212},
34
- {8384, 0x2216}, {8388, 0x221B}, {8390, 0x2221}, {8392, 0x2224},
35
- {8393, 0x2226}, {8394, 0x222C}, {8396, 0x222F}, {8401, 0x2238},
36
- {8406, 0x223E}, {8416, 0x2249}, {8419, 0x224D}, {8424, 0x2253},
37
- {8437, 0x2262}, {8439, 0x2268}, {8445, 0x2270}, {8482, 0x2296},
38
- {8485, 0x229A}, {8496, 0x22A6}, {8521, 0x22C0}, {8603, 0x2313},
39
- {8936, 0x246A}, {8946, 0x249C}, {9046, 0x254C}, {9050, 0x2574},
40
- {9063, 0x2590}, {9066, 0x2596}, {9076, 0x25A2}, {9092, 0x25B4},
41
- {9100, 0x25BE}, {9108, 0x25C8}, {9111, 0x25CC}, {9113, 0x25D0},
42
- {9131, 0x25E6}, {9162, 0x2607}, {9164, 0x260A}, {9218, 0x2641},
43
- {9219, 0x2643}, {11329, 0x2E82}, {11331, 0x2E85}, {11334, 0x2E89},
44
- {11336, 0x2E8D}, {11346, 0x2E98}, {11361, 0x2EA8}, {11363, 0x2EAB},
45
- {11366, 0x2EAF}, {11370, 0x2EB4}, {11372, 0x2EB8}, {11375, 0x2EBC},
46
- {11389, 0x2ECB}, {11682, 0x2FFC}, {11686, 0x3004}, {11687, 0x3018},
47
- {11692, 0x301F}, {11694, 0x302A}, {11714, 0x303F}, {11716, 0x3094},
48
- {11723, 0x309F}, {11725, 0x30F7}, {11730, 0x30FF}, {11736, 0x312A},
49
- {11982, 0x322A}, {11989, 0x3232}, {12102, 0x32A4}, {12336, 0x3390},
50
- {12348, 0x339F}, {12350, 0x33A2}, {12384, 0x33C5}, {12393, 0x33CF},
51
- {12395, 0x33D3}, {12397, 0x33D6}, {12510, 0x3448}, {12553, 0x3474},
52
- {12851, 0x359F}, {12962, 0x360F}, {12973, 0x361B}, {13738, 0x3919},
53
- {13823, 0x396F}, {13919, 0x39D1}, {13933, 0x39E0}, {14080, 0x3A74},
54
- {14298, 0x3B4F}, {14585, 0x3C6F}, {14698, 0x3CE1}, {15583, 0x4057},
55
- {15847, 0x4160}, {16318, 0x4338}, {16434, 0x43AD}, {16438, 0x43B2},
56
- {16481, 0x43DE}, {16729, 0x44D7}, {17102, 0x464D}, {17122, 0x4662},
57
- {17315, 0x4724}, {17320, 0x472A}, {17402, 0x477D}, {17418, 0x478E},
58
- {17859, 0x4948}, {17909, 0x497B}, {17911, 0x497E}, {17915, 0x4984},
59
- {17916, 0x4987}, {17936, 0x499C}, {17939, 0x49A0}, {17961, 0x49B8},
60
- {18664, 0x4C78}, {18703, 0x4CA4}, {18814, 0x4D1A}, {18962, 0x4DAF},
61
- {19043, 0x9FA6}, {33469, 0xE76C}, {33470, 0xE7C8}, {33471, 0xE7E7},
62
- {33484, 0xE815}, {33485, 0xE819}, {33490, 0xE81F}, {33497, 0xE827},
63
- {33501, 0xE82D}, {33505, 0xE833}, {33513, 0xE83C}, {33520, 0xE844},
64
- {33536, 0xE856}, {33550, 0xE865}, {37845, 0xF92D}, {37921, 0xF97A},
65
- {37948, 0xF996}, {38029, 0xF9E8}, {38038, 0xF9F2}, {38064, 0xFA10},
66
- {38065, 0xFA12}, {38066, 0xFA15}, {38069, 0xFA19}, {38075, 0xFA22},
67
- {38076, 0xFA25}, {38078, 0xFA2A}, {39108, 0xFE32}, {39109, 0xFE45},
68
- {39113, 0xFE53}, {39114, 0xFE58}, {39115, 0xFE67}, {39116, 0xFE6C},
69
- {39265, 0xFF5F}, {39394, 0xFFE6}, {189000, 0x10000}
70
- };
71
-
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright (C) 2019 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- /*
8
- * Caution!
9
- * This file generated by the script "utils/lexbor/encoding/range-byte.py"!
10
- * Do not change this file!
11
- */
12
-
13
-
14
- #ifndef LEXBOR_ENCODING_RANGE_H
15
- #define LEXBOR_ENCODING_RANGE_H
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
- #include "lexbor/encoding/base.h"
22
-
23
-
24
- #define LXB_ENCODING_RANGE_INDEX_GB18030_SIZE 207
25
-
26
-
27
- LXB_EXTERN const lxb_encoding_range_index_t lxb_encoding_range_index_gb18030[207];
28
-
29
-
30
- #ifdef __cplusplus
31
- } /* extern "C" */
32
- #endif
33
-
34
- #endif /* LEXBOR_ENCODING_RANGE_H */
@@ -1,222 +0,0 @@
1
- /*
2
- * Copyright (C) 2019 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- /*
8
- * Caution!
9
- * This file generated by the script "utils/lexbor/encoding/res.py"!
10
- * Do not change this file!
11
- */
12
-
13
- #include "lexbor/encoding/base.h"
14
- #include "lexbor/encoding/encode.h"
15
- #include "lexbor/encoding/decode.h"
16
-
17
- #include "lexbor/core/shs.h"
18
-
19
-
20
- LXB_API const lxb_encoding_data_t lxb_encoding_res_map[LXB_ENCODING_LAST_ENTRY] =
21
- {
22
- {LXB_ENCODING_DEFAULT, lxb_encoding_encode_default, lxb_encoding_decode_default,
23
- lxb_encoding_encode_default_single, lxb_encoding_decode_default_single, (lxb_char_t *) "DEFAULT"},
24
- {LXB_ENCODING_AUTO, lxb_encoding_encode_auto, lxb_encoding_decode_auto,
25
- lxb_encoding_encode_auto_single, lxb_encoding_decode_auto_single, (lxb_char_t *) "AUTO"},
26
- {LXB_ENCODING_UNDEFINED, lxb_encoding_encode_undefined, lxb_encoding_decode_undefined,
27
- lxb_encoding_encode_undefined_single, lxb_encoding_decode_undefined_single, (lxb_char_t *) "UNDEFINED"},
28
- {LXB_ENCODING_BIG5, lxb_encoding_encode_big5, lxb_encoding_decode_big5,
29
- lxb_encoding_encode_big5_single, lxb_encoding_decode_big5_single, (lxb_char_t *) "Big5"},
30
- {LXB_ENCODING_EUC_JP, lxb_encoding_encode_euc_jp, lxb_encoding_decode_euc_jp,
31
- lxb_encoding_encode_euc_jp_single, lxb_encoding_decode_euc_jp_single, (lxb_char_t *) "EUC-JP"},
32
- {LXB_ENCODING_EUC_KR, lxb_encoding_encode_euc_kr, lxb_encoding_decode_euc_kr,
33
- lxb_encoding_encode_euc_kr_single, lxb_encoding_decode_euc_kr_single, (lxb_char_t *) "EUC-KR"},
34
- {LXB_ENCODING_GBK, lxb_encoding_encode_gbk, lxb_encoding_decode_gbk,
35
- lxb_encoding_encode_gbk_single, lxb_encoding_decode_gbk_single, (lxb_char_t *) "GBK"},
36
- {LXB_ENCODING_IBM866, lxb_encoding_encode_ibm866, lxb_encoding_decode_ibm866,
37
- lxb_encoding_encode_ibm866_single, lxb_encoding_decode_ibm866_single, (lxb_char_t *) "IBM866"},
38
- {LXB_ENCODING_ISO_2022_JP, lxb_encoding_encode_iso_2022_jp, lxb_encoding_decode_iso_2022_jp,
39
- lxb_encoding_encode_iso_2022_jp_single, lxb_encoding_decode_iso_2022_jp_single, (lxb_char_t *) "ISO-2022-JP"},
40
- {LXB_ENCODING_ISO_8859_10, lxb_encoding_encode_iso_8859_10, lxb_encoding_decode_iso_8859_10,
41
- lxb_encoding_encode_iso_8859_10_single, lxb_encoding_decode_iso_8859_10_single, (lxb_char_t *) "ISO-8859-10"},
42
- {LXB_ENCODING_ISO_8859_13, lxb_encoding_encode_iso_8859_13, lxb_encoding_decode_iso_8859_13,
43
- lxb_encoding_encode_iso_8859_13_single, lxb_encoding_decode_iso_8859_13_single, (lxb_char_t *) "ISO-8859-13"},
44
- {LXB_ENCODING_ISO_8859_14, lxb_encoding_encode_iso_8859_14, lxb_encoding_decode_iso_8859_14,
45
- lxb_encoding_encode_iso_8859_14_single, lxb_encoding_decode_iso_8859_14_single, (lxb_char_t *) "ISO-8859-14"},
46
- {LXB_ENCODING_ISO_8859_15, lxb_encoding_encode_iso_8859_15, lxb_encoding_decode_iso_8859_15,
47
- lxb_encoding_encode_iso_8859_15_single, lxb_encoding_decode_iso_8859_15_single, (lxb_char_t *) "ISO-8859-15"},
48
- {LXB_ENCODING_ISO_8859_16, lxb_encoding_encode_iso_8859_16, lxb_encoding_decode_iso_8859_16,
49
- lxb_encoding_encode_iso_8859_16_single, lxb_encoding_decode_iso_8859_16_single, (lxb_char_t *) "ISO-8859-16"},
50
- {LXB_ENCODING_ISO_8859_2, lxb_encoding_encode_iso_8859_2, lxb_encoding_decode_iso_8859_2,
51
- lxb_encoding_encode_iso_8859_2_single, lxb_encoding_decode_iso_8859_2_single, (lxb_char_t *) "ISO-8859-2"},
52
- {LXB_ENCODING_ISO_8859_3, lxb_encoding_encode_iso_8859_3, lxb_encoding_decode_iso_8859_3,
53
- lxb_encoding_encode_iso_8859_3_single, lxb_encoding_decode_iso_8859_3_single, (lxb_char_t *) "ISO-8859-3"},
54
- {LXB_ENCODING_ISO_8859_4, lxb_encoding_encode_iso_8859_4, lxb_encoding_decode_iso_8859_4,
55
- lxb_encoding_encode_iso_8859_4_single, lxb_encoding_decode_iso_8859_4_single, (lxb_char_t *) "ISO-8859-4"},
56
- {LXB_ENCODING_ISO_8859_5, lxb_encoding_encode_iso_8859_5, lxb_encoding_decode_iso_8859_5,
57
- lxb_encoding_encode_iso_8859_5_single, lxb_encoding_decode_iso_8859_5_single, (lxb_char_t *) "ISO-8859-5"},
58
- {LXB_ENCODING_ISO_8859_6, lxb_encoding_encode_iso_8859_6, lxb_encoding_decode_iso_8859_6,
59
- lxb_encoding_encode_iso_8859_6_single, lxb_encoding_decode_iso_8859_6_single, (lxb_char_t *) "ISO-8859-6"},
60
- {LXB_ENCODING_ISO_8859_7, lxb_encoding_encode_iso_8859_7, lxb_encoding_decode_iso_8859_7,
61
- lxb_encoding_encode_iso_8859_7_single, lxb_encoding_decode_iso_8859_7_single, (lxb_char_t *) "ISO-8859-7"},
62
- {LXB_ENCODING_ISO_8859_8, lxb_encoding_encode_iso_8859_8, lxb_encoding_decode_iso_8859_8,
63
- lxb_encoding_encode_iso_8859_8_single, lxb_encoding_decode_iso_8859_8_single, (lxb_char_t *) "ISO-8859-8"},
64
- {LXB_ENCODING_ISO_8859_8_I, lxb_encoding_encode_iso_8859_8_i, lxb_encoding_decode_iso_8859_8_i,
65
- lxb_encoding_encode_iso_8859_8_i_single, lxb_encoding_decode_iso_8859_8_i_single, (lxb_char_t *) "ISO-8859-8-I"},
66
- {LXB_ENCODING_KOI8_R, lxb_encoding_encode_koi8_r, lxb_encoding_decode_koi8_r,
67
- lxb_encoding_encode_koi8_r_single, lxb_encoding_decode_koi8_r_single, (lxb_char_t *) "KOI8-R"},
68
- {LXB_ENCODING_KOI8_U, lxb_encoding_encode_koi8_u, lxb_encoding_decode_koi8_u,
69
- lxb_encoding_encode_koi8_u_single, lxb_encoding_decode_koi8_u_single, (lxb_char_t *) "KOI8-U"},
70
- {LXB_ENCODING_SHIFT_JIS, lxb_encoding_encode_shift_jis, lxb_encoding_decode_shift_jis,
71
- lxb_encoding_encode_shift_jis_single, lxb_encoding_decode_shift_jis_single, (lxb_char_t *) "Shift_JIS"},
72
- {LXB_ENCODING_UTF_16BE, lxb_encoding_encode_utf_16be, lxb_encoding_decode_utf_16be,
73
- lxb_encoding_encode_utf_16be_single, lxb_encoding_decode_utf_16be_single, (lxb_char_t *) "UTF-16BE"},
74
- {LXB_ENCODING_UTF_16LE, lxb_encoding_encode_utf_16le, lxb_encoding_decode_utf_16le,
75
- lxb_encoding_encode_utf_16le_single, lxb_encoding_decode_utf_16le_single, (lxb_char_t *) "UTF-16LE"},
76
- {LXB_ENCODING_UTF_8, lxb_encoding_encode_utf_8, lxb_encoding_decode_utf_8,
77
- lxb_encoding_encode_utf_8_single, lxb_encoding_decode_utf_8_single, (lxb_char_t *) "UTF-8"},
78
- {LXB_ENCODING_GB18030, lxb_encoding_encode_gb18030, lxb_encoding_decode_gb18030,
79
- lxb_encoding_encode_gb18030_single, lxb_encoding_decode_gb18030_single, (lxb_char_t *) "gb18030"},
80
- {LXB_ENCODING_MACINTOSH, lxb_encoding_encode_macintosh, lxb_encoding_decode_macintosh,
81
- lxb_encoding_encode_macintosh_single, lxb_encoding_decode_macintosh_single, (lxb_char_t *) "macintosh"},
82
- {LXB_ENCODING_REPLACEMENT, lxb_encoding_encode_replacement, lxb_encoding_decode_replacement,
83
- lxb_encoding_encode_replacement_single, lxb_encoding_decode_replacement_single, (lxb_char_t *) "replacement"},
84
- {LXB_ENCODING_WINDOWS_1250, lxb_encoding_encode_windows_1250, lxb_encoding_decode_windows_1250,
85
- lxb_encoding_encode_windows_1250_single, lxb_encoding_decode_windows_1250_single, (lxb_char_t *) "windows-1250"},
86
- {LXB_ENCODING_WINDOWS_1251, lxb_encoding_encode_windows_1251, lxb_encoding_decode_windows_1251,
87
- lxb_encoding_encode_windows_1251_single, lxb_encoding_decode_windows_1251_single, (lxb_char_t *) "windows-1251"},
88
- {LXB_ENCODING_WINDOWS_1252, lxb_encoding_encode_windows_1252, lxb_encoding_decode_windows_1252,
89
- lxb_encoding_encode_windows_1252_single, lxb_encoding_decode_windows_1252_single, (lxb_char_t *) "windows-1252"},
90
- {LXB_ENCODING_WINDOWS_1253, lxb_encoding_encode_windows_1253, lxb_encoding_decode_windows_1253,
91
- lxb_encoding_encode_windows_1253_single, lxb_encoding_decode_windows_1253_single, (lxb_char_t *) "windows-1253"},
92
- {LXB_ENCODING_WINDOWS_1254, lxb_encoding_encode_windows_1254, lxb_encoding_decode_windows_1254,
93
- lxb_encoding_encode_windows_1254_single, lxb_encoding_decode_windows_1254_single, (lxb_char_t *) "windows-1254"},
94
- {LXB_ENCODING_WINDOWS_1255, lxb_encoding_encode_windows_1255, lxb_encoding_decode_windows_1255,
95
- lxb_encoding_encode_windows_1255_single, lxb_encoding_decode_windows_1255_single, (lxb_char_t *) "windows-1255"},
96
- {LXB_ENCODING_WINDOWS_1256, lxb_encoding_encode_windows_1256, lxb_encoding_decode_windows_1256,
97
- lxb_encoding_encode_windows_1256_single, lxb_encoding_decode_windows_1256_single, (lxb_char_t *) "windows-1256"},
98
- {LXB_ENCODING_WINDOWS_1257, lxb_encoding_encode_windows_1257, lxb_encoding_decode_windows_1257,
99
- lxb_encoding_encode_windows_1257_single, lxb_encoding_decode_windows_1257_single, (lxb_char_t *) "windows-1257"},
100
- {LXB_ENCODING_WINDOWS_1258, lxb_encoding_encode_windows_1258, lxb_encoding_decode_windows_1258,
101
- lxb_encoding_encode_windows_1258_single, lxb_encoding_decode_windows_1258_single, (lxb_char_t *) "windows-1258"},
102
- {LXB_ENCODING_WINDOWS_874, lxb_encoding_encode_windows_874, lxb_encoding_decode_windows_874,
103
- lxb_encoding_encode_windows_874_single, lxb_encoding_decode_windows_874_single, (lxb_char_t *) "windows-874"},
104
- {LXB_ENCODING_X_MAC_CYRILLIC, lxb_encoding_encode_x_mac_cyrillic, lxb_encoding_decode_x_mac_cyrillic,
105
- lxb_encoding_encode_x_mac_cyrillic_single, lxb_encoding_decode_x_mac_cyrillic_single, (lxb_char_t *) "x-mac-cyrillic"},
106
- {LXB_ENCODING_X_USER_DEFINED, lxb_encoding_encode_x_user_defined, lxb_encoding_decode_x_user_defined,
107
- lxb_encoding_encode_x_user_defined_single, lxb_encoding_decode_x_user_defined_single, (lxb_char_t *) "x-user-defined"}
108
- };
109
-
110
- LXB_API const lexbor_shs_entry_t lxb_encoding_res_shs_entities[220] =
111
- {
112
- {NULL, NULL, 202, 0}, {"koi8", (void *) &lxb_encoding_res_map[22], 4, 4},
113
- {"iso8859-2", (void *) &lxb_encoding_res_map[14], 9, 0}, {"iso-8859-2", (void *) &lxb_encoding_res_map[14], 10, 15},
114
- {"iso88592", (void *) &lxb_encoding_res_map[14], 8, 8}, {"gb2312", (void *) &lxb_encoding_res_map[6], 6, 17},
115
- {"gb_2312", (void *) &lxb_encoding_res_map[6], 7, 28}, {"euc-jp", (void *) &lxb_encoding_res_map[4], 6, 30},
116
- {"gb_2312-80", (void *) &lxb_encoding_res_map[6], 10, 0}, {"ecma-114", (void *) &lxb_encoding_res_map[18], 8, 37},
117
- {"ibm819", (void *) &lxb_encoding_res_map[33], 6, 39}, {"x-sjis", (void *) &lxb_encoding_res_map[24], 6, 40},
118
- {"iso88599", (void *) &lxb_encoding_res_map[35], 8, 42}, {"cp1254", (void *) &lxb_encoding_res_map[35], 6, 43},
119
- {"iso-ir-149", (void *) &lxb_encoding_res_map[5], 10, 44}, {"iso_8859-2", (void *) &lxb_encoding_res_map[14], 10, 0},
120
- {"windows-31j", (void *) &lxb_encoding_res_map[24], 11, 0}, {"cp1252", (void *) &lxb_encoding_res_map[33], 6, 0},
121
- {"csisolatin4", (void *) &lxb_encoding_res_map[16], 11, 49}, {"iso_8859-9:1989", (void *) &lxb_encoding_res_map[35], 15, 0},
122
- {"cp866", (void *) &lxb_encoding_res_map[7], 5, 0}, {"cp1256", (void *) &lxb_encoding_res_map[37], 6, 0},
123
- {"sjis", (void *) &lxb_encoding_res_map[24], 4, 50}, {"l6", (void *) &lxb_encoding_res_map[9], 2, 51},
124
- {"csmacintosh", (void *) &lxb_encoding_res_map[29], 11, 0}, {"x-cp1258", (void *) &lxb_encoding_res_map[39], 8, 0},
125
- {"csisolatin6", (void *) &lxb_encoding_res_map[9], 11, 0}, {"latin6", (void *) &lxb_encoding_res_map[9], 6, 58},
126
- {"csiso58gb231280", (void *) &lxb_encoding_res_map[6], 15, 0}, {"l2", (void *) &lxb_encoding_res_map[14], 2, 61},
127
- {"euc-kr", (void *) &lxb_encoding_res_map[5], 6, 31}, {"csgb2312", (void *) &lxb_encoding_res_map[6], 8, 0},
128
- {"windows-1251", (void *) &lxb_encoding_res_map[32], 12, 0}, {"latin2", (void *) &lxb_encoding_res_map[14], 6, 70},
129
- {"iso885914", (void *) &lxb_encoding_res_map[11], 9, 73}, {"iso8859-14", (void *) &lxb_encoding_res_map[11], 10, 77},
130
- {"iso-8859-14", (void *) &lxb_encoding_res_map[11], 11, 0}, {"ecma-118", (void *) &lxb_encoding_res_map[19], 8, 38},
131
- {"elot_928", (void *) &lxb_encoding_res_map[19], 8, 0}, {"csisolatin2", (void *) &lxb_encoding_res_map[14], 11, 0},
132
- {"windows-1250", (void *) &lxb_encoding_res_map[31], 12, 0}, {"x-euc-jp", (void *) &lxb_encoding_res_map[4], 8, 0},
133
- {"unicode-1-1-utf-8", (void *) &lxb_encoding_res_map[27], 17, 0}, {"iso8859-9", (void *) &lxb_encoding_res_map[35], 9, 0},
134
- {"iso-ir-109", (void *) &lxb_encoding_res_map[15], 10, 45}, {"iso-8859-9", (void *) &lxb_encoding_res_map[35], 10, 46},
135
- {"iso_8859-9", (void *) &lxb_encoding_res_map[35], 10, 0}, {"koi", (void *) &lxb_encoding_res_map[22], 3, 0},
136
- {"logical", (void *) &lxb_encoding_res_map[21], 7, 0}, {"iso-2022-kr", (void *) &lxb_encoding_res_map[30], 11, 0},
137
- {"replacement", (void *) &lxb_encoding_res_map[30], 11, 0}, {"csibm866", (void *) &lxb_encoding_res_map[7], 8, 52},
138
- {"x-cp1251", (void *) &lxb_encoding_res_map[32], 8, 0}, {"x-x-big5", (void *) &lxb_encoding_res_map[3], 8, 83},
139
- {"iso-2022-cn-ext", (void *) &lxb_encoding_res_map[30], 15, 0}, {"ksc5601", (void *) &lxb_encoding_res_map[5], 7, 0},
140
- {"ksc_5601", (void *) &lxb_encoding_res_map[5], 8, 90}, {"hz-gb-2312", (void *) &lxb_encoding_res_map[30], 10, 0},
141
- {"shift-jis", (void *) &lxb_encoding_res_map[24], 9, 59}, {"shift_jis", (void *) &lxb_encoding_res_map[24], 9, 0},
142
- {"cseuckr", (void *) &lxb_encoding_res_map[5], 7, 91}, {"greek8", (void *) &lxb_encoding_res_map[19], 6, 62},
143
- {"cp1258", (void *) &lxb_encoding_res_map[39], 6, 0}, {"ibm866", (void *) &lxb_encoding_res_map[7], 6, 0},
144
- {"csiso2022kr", (void *) &lxb_encoding_res_map[30], 11, 0}, {"iso88596", (void *) &lxb_encoding_res_map[18], 8, 0},
145
- {"iso8859-6", (void *) &lxb_encoding_res_map[18], 9, 0}, {"iso-8859-6", (void *) &lxb_encoding_res_map[18], 10, 93},
146
- {"iso-8859-16", (void *) &lxb_encoding_res_map[13], 11, 0}, {"l9", (void *) &lxb_encoding_res_map[12], 2, 0},
147
- {"iso88594", (void *) &lxb_encoding_res_map[16], 8, 0}, {"koi8-r", (void *) &lxb_encoding_res_map[22], 6, 100},
148
- {"866", (void *) &lxb_encoding_res_map[7], 3, 0}, {"iso8859-4", (void *) &lxb_encoding_res_map[16], 9, 0},
149
- {"windows-1253", (void *) &lxb_encoding_res_map[34], 12, 0}, {"l5", (void *) &lxb_encoding_res_map[35], 2, 0},
150
- {"arabic", (void *) &lxb_encoding_res_map[18], 6, 105}, {"iso-8859-4", (void *) &lxb_encoding_res_map[16], 10, 80},
151
- {"koi8-u", (void *) &lxb_encoding_res_map[23], 6, 106}, {"latin5", (void *) &lxb_encoding_res_map[35], 6, 108},
152
- {"iso_8859-4", (void *) &lxb_encoding_res_map[16], 10, 82}, {"l1", (void *) &lxb_encoding_res_map[33], 2, 117},
153
- {"iso-ir-144", (void *) &lxb_encoding_res_map[17], 10, 0}, {"x-cp1255", (void *) &lxb_encoding_res_map[36], 8, 84},
154
- {"windows-1252", (void *) &lxb_encoding_res_map[33], 12, 0}, {"latin1", (void *) &lxb_encoding_res_map[33], 6, 0},
155
- {"iso88591", (void *) &lxb_encoding_res_map[33], 8, 0}, {"iso8859-1", (void *) &lxb_encoding_res_map[33], 9, 122},
156
- {"iso-ir-101", (void *) &lxb_encoding_res_map[14], 10, 125}, {"iso-8859-11", (void *) &lxb_encoding_res_map[40], 11, 0},
157
- {"csiso2022jp", (void *) &lxb_encoding_res_map[8], 11, 0}, {"cskoi8r", (void *) &lxb_encoding_res_map[22], 7, 92},
158
- {"dos-874", (void *) &lxb_encoding_res_map[40], 7, 0}, {"iso_8859-6", (void *) &lxb_encoding_res_map[18], 10, 96},
159
- {"windows-874", (void *) &lxb_encoding_res_map[40], 11, 0}, {"utf-16", (void *) &lxb_encoding_res_map[26], 6, 135},
160
- {"iso-ir-126", (void *) &lxb_encoding_res_map[19], 10, 0}, {"asmo-708", (void *) &lxb_encoding_res_map[18], 8, 136},
161
- {"iso-ir-58", (void *) &lxb_encoding_res_map[6], 9, 138}, {"iso-8859-8", (void *) &lxb_encoding_res_map[20], 10, 140},
162
- {"koi8_r", (void *) &lxb_encoding_res_map[22], 6, 0}, {"x-mac-cyrillic", (void *) &lxb_encoding_res_map[41], 14, 0},
163
- {"cp1251", (void *) &lxb_encoding_res_map[32], 6, 144}, {"ansi_x3.4-1968", (void *) &lxb_encoding_res_map[33], 14, 0},
164
- {"iso_8859-3:1988", (void *) &lxb_encoding_res_map[15], 15, 146}, {"ks_c_5601-1987", (void *) &lxb_encoding_res_map[5], 14, 0},
165
- {"sun_eu_greek", (void *) &lxb_encoding_res_map[19], 12, 0}, {"csisolatin1", (void *) &lxb_encoding_res_map[33], 11, 0},
166
- {"koi8-ru", (void *) &lxb_encoding_res_map[23], 7, 0}, {"chinese", (void *) &lxb_encoding_res_map[6], 7, 0},
167
- {"cp1253", (void *) &lxb_encoding_res_map[34], 6, 154}, {"visual", (void *) &lxb_encoding_res_map[20], 6, 160},
168
- {"csisolatincyrillic", (void *) &lxb_encoding_res_map[17], 18, 0}, {"csiso88596e", (void *) &lxb_encoding_res_map[18], 11, 161},
169
- {"iso-8859-6-e", (void *) &lxb_encoding_res_map[18], 12, 162}, {"csisolatin3", (void *) &lxb_encoding_res_map[15], 11, 0},
170
- {"windows-1255", (void *) &lxb_encoding_res_map[36], 12, 0}, {"x-cp1252", (void *) &lxb_encoding_res_map[33], 8, 0},
171
- {"csbig5", (void *) &lxb_encoding_res_map[3], 6, 163}, {"cn-big5", (void *) &lxb_encoding_res_map[3], 7, 166},
172
- {"iso8859-13", (void *) &lxb_encoding_res_map[10], 10, 175}, {"iso-8859-13", (void *) &lxb_encoding_res_map[10], 11, 180},
173
- {"iso885911", (void *) &lxb_encoding_res_map[40], 9, 0}, {"csisolatin5", (void *) &lxb_encoding_res_map[35], 11, 0},
174
- {"us-ascii", (void *) &lxb_encoding_res_map[33], 8, 0}, {"iso-8859-1", (void *) &lxb_encoding_res_map[33], 10, 128},
175
- {"cp1257", (void *) &lxb_encoding_res_map[38], 6, 0}, {"l4", (void *) &lxb_encoding_res_map[16], 2, 0},
176
- {"iso_8859-1", (void *) &lxb_encoding_res_map[33], 10, 132}, {"gbk", (void *) &lxb_encoding_res_map[6], 3, 181},
177
- {"x-mac-roman", (void *) &lxb_encoding_res_map[29], 11, 0}, {"greek", (void *) &lxb_encoding_res_map[19], 5, 187},
178
- {"iso8859-11", (void *) &lxb_encoding_res_map[40], 10, 0}, {"cp819", (void *) &lxb_encoding_res_map[33], 5, 191},
179
- {"x-mac-ukrainian", (void *) &lxb_encoding_res_map[41], 15, 0}, {"windows-1254", (void *) &lxb_encoding_res_map[35], 12, 0},
180
- {"iso88598", (void *) &lxb_encoding_res_map[20], 8, 0}, {"big5-hkscs", (void *) &lxb_encoding_res_map[3], 10, 192},
181
- {"iso8859-8", (void *) &lxb_encoding_res_map[20], 9, 0}, {"x-cp1253", (void *) &lxb_encoding_res_map[34], 8, 193},
182
- {"iso-ir-138", (void *) &lxb_encoding_res_map[20], 10, 142}, {"csisolatingreek", (void *) &lxb_encoding_res_map[19], 15, 0},
183
- {"iso_8859-8", (void *) &lxb_encoding_res_map[20], 10, 143}, {"iso-ir-148", (void *) &lxb_encoding_res_map[35], 10, 0},
184
- {"tis-620", (void *) &lxb_encoding_res_map[40], 7, 145}, {"cyrillic", (void *) &lxb_encoding_res_map[17], 8, 0},
185
- {"iso_8859-4:1988", (void *) &lxb_encoding_res_map[16], 15, 147}, {"iso_8859-5:1988", (void *) &lxb_encoding_res_map[17], 15, 149},
186
- {"ks_c_5601-1989", (void *) &lxb_encoding_res_map[5], 14, 0}, {"iso_8859-8:1988", (void *) &lxb_encoding_res_map[20], 15, 0},
187
- {"iso88595", (void *) &lxb_encoding_res_map[17], 8, 0}, {"iso885915", (void *) &lxb_encoding_res_map[12], 9, 194},
188
- {"x-gbk", (void *) &lxb_encoding_res_map[6], 5, 195}, {"iso-8859-15", (void *) &lxb_encoding_res_map[12], 11, 203},
189
- {"utf-16be", (void *) &lxb_encoding_res_map[25], 8, 155}, {"utf-16le", (void *) &lxb_encoding_res_map[26], 8, 157},
190
- {"iso-2022-cn", (void *) &lxb_encoding_res_map[30], 11, 0}, {"csisolatinarabic", (void *) &lxb_encoding_res_map[18], 16, 0},
191
- {"windows-1257", (void *) &lxb_encoding_res_map[38], 12, 0}, {"x-user-defined", (void *) &lxb_encoding_res_map[42], 14, 0},
192
- {"x-cp1256", (void *) &lxb_encoding_res_map[37], 8, 0}, {"csiso88598e", (void *) &lxb_encoding_res_map[20], 11, 0},
193
- {"iso-8859-8-e", (void *) &lxb_encoding_res_map[20], 12, 0}, {"cp1255", (void *) &lxb_encoding_res_map[36], 6, 165},
194
- {"ms_kanji", (void *) &lxb_encoding_res_map[24], 8, 0}, {"iso88593", (void *) &lxb_encoding_res_map[15], 8, 0},
195
- {"iso885913", (void *) &lxb_encoding_res_map[10], 9, 170}, {"x-cp1250", (void *) &lxb_encoding_res_map[31], 8, 0},
196
- {"csshiftjis", (void *) &lxb_encoding_res_map[24], 10, 0}, {"hebrew", (void *) &lxb_encoding_res_map[20], 6, 204},
197
- {"iso8859-3", (void *) &lxb_encoding_res_map[15], 9, 0}, {"ascii", (void *) &lxb_encoding_res_map[33], 5, 0},
198
- {"iso885910", (void *) &lxb_encoding_res_map[9], 9, 0}, {"iso8859-10", (void *) &lxb_encoding_res_map[9], 10, 205},
199
- {"iso-8859-10", (void *) &lxb_encoding_res_map[9], 11, 0}, {"iso-8859-3", (void *) &lxb_encoding_res_map[15], 10, 177},
200
- {"ms932", (void *) &lxb_encoding_res_map[24], 5, 0}, {"iso_8859-3", (void *) &lxb_encoding_res_map[15], 10, 0},
201
- {"iso-8859-6-i", (void *) &lxb_encoding_res_map[18], 12, 207}, {"l3", (void *) &lxb_encoding_res_map[15], 2, 208},
202
- {"cseucpkdfmtjapanese", (void *) &lxb_encoding_res_map[4], 19, 0}, {"korean", (void *) &lxb_encoding_res_map[5], 6, 185},
203
- {"iso88597", (void *) &lxb_encoding_res_map[19], 8, 0}, {"latin3", (void *) &lxb_encoding_res_map[15], 6, 211},
204
- {"iso-ir-157", (void *) &lxb_encoding_res_map[9], 10, 212}, {"csiso88596i", (void *) &lxb_encoding_res_map[18], 11, 186},
205
- {"csiso88598i", (void *) &lxb_encoding_res_map[21], 11, 0}, {"latin4", (void *) &lxb_encoding_res_map[16], 6, 0},
206
- {"iso-2022-jp", (void *) &lxb_encoding_res_map[8], 11, 0}, {"iso_8859-2:1987", (void *) &lxb_encoding_res_map[14], 15, 215},
207
- {"csisolatinhebrew", (void *) &lxb_encoding_res_map[20], 16, 0}, {"csksc56011987", (void *) &lxb_encoding_res_map[5], 13, 0},
208
- {"windows-1256", (void *) &lxb_encoding_res_map[37], 12, 0}, {"csisolatin9", (void *) &lxb_encoding_res_map[12], 11, 0},
209
- {"iso8859-5", (void *) &lxb_encoding_res_map[17], 9, 0}, {"iso8859-15", (void *) &lxb_encoding_res_map[12], 10, 196},
210
- {"iso-8859-5", (void *) &lxb_encoding_res_map[17], 10, 198}, {"x-cp1254", (void *) &lxb_encoding_res_map[35], 8, 0},
211
- {"iso_8859-5", (void *) &lxb_encoding_res_map[17], 10, 0}, {"cp1250", (void *) &lxb_encoding_res_map[31], 6, 218},
212
- {"gb18030", (void *) &lxb_encoding_res_map[28], 7, 0}, {"utf8", (void *) &lxb_encoding_res_map[27], 4, 0},
213
- {"utf-8", (void *) &lxb_encoding_res_map[27], 5, 219}, {"iso_8859-15", (void *) &lxb_encoding_res_map[12], 11, 0},
214
- {"x-cp1257", (void *) &lxb_encoding_res_map[38], 8, 0}, {"iso-ir-110", (void *) &lxb_encoding_res_map[16], 10, 206},
215
- {"iso-ir-100", (void *) &lxb_encoding_res_map[33], 10, 0}, {"iso-8859-8-i", (void *) &lxb_encoding_res_map[21], 12, 0},
216
- {"mac", (void *) &lxb_encoding_res_map[29], 3, 209}, {"big5", (void *) &lxb_encoding_res_map[3], 4, 210},
217
- {"windows-1258", (void *) &lxb_encoding_res_map[39], 12, 0}, {"iso8859-7", (void *) &lxb_encoding_res_map[19], 9, 0},
218
- {"iso-ir-127", (void *) &lxb_encoding_res_map[18], 10, 213}, {"iso-8859-7", (void *) &lxb_encoding_res_map[19], 10, 214},
219
- {"iso_8859-7", (void *) &lxb_encoding_res_map[19], 10, 0}, {"iso_8859-6:1987", (void *) &lxb_encoding_res_map[18], 15, 216},
220
- {"iso_8859-7:1987", (void *) &lxb_encoding_res_map[19], 15, 217}, {"iso_8859-1:1987", (void *) &lxb_encoding_res_map[33], 15, 0},
221
- {"windows-949", (void *) &lxb_encoding_res_map[5], 11, 0}, {"macintosh", (void *) &lxb_encoding_res_map[29], 9, 0}
222
- };
@@ -1,34 +0,0 @@
1
- /*
2
- * Copyright (C) 2019-2020 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <borisov@lexbor.com>
5
- */
6
-
7
- /*
8
- * Caution!
9
- * This file generated by the script "utils/lexbor/encoding/res.py"!
10
- * Do not change this file!
11
- */
12
-
13
-
14
- #ifndef LEXBOR_ENCODING_RES_H
15
- #define LEXBOR_ENCODING_RES_H
16
-
17
- #ifdef __cplusplus
18
- extern "C" {
19
- #endif
20
-
21
-
22
- #include "lexbor/encoding/base.h"
23
- #include "lexbor/core/shs.h"
24
-
25
-
26
- LXB_EXTERN const lxb_encoding_data_t lxb_encoding_res_map[LXB_ENCODING_LAST_ENTRY];
27
- LXB_EXTERN const lexbor_shs_entry_t lxb_encoding_res_shs_entities[220];
28
-
29
-
30
- #ifdef __cplusplus
31
- } /* extern "C" */
32
- #endif
33
-
34
- #endif /* LEXBOR_ENCODING_RES_H */