nokolexbor 0.3.4 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/ext/nokolexbor/extconf.rb +9 -5
  3. data/ext/nokolexbor/nl_attribute.c +46 -0
  4. data/ext/nokolexbor/nl_cdata.c +8 -0
  5. data/ext/nokolexbor/nl_comment.c +6 -0
  6. data/ext/nokolexbor/nl_document.c +53 -7
  7. data/ext/nokolexbor/nl_document_fragment.c +9 -0
  8. data/ext/nokolexbor/nl_error.c +21 -19
  9. data/ext/nokolexbor/nl_node.c +255 -50
  10. data/ext/nokolexbor/nl_node_set.c +56 -1
  11. data/ext/nokolexbor/nl_processing_instruction.c +6 -0
  12. data/ext/nokolexbor/nl_text.c +6 -0
  13. data/ext/nokolexbor/nokolexbor.h +1 -0
  14. data/lib/nokolexbor/document.rb +52 -5
  15. data/lib/nokolexbor/document_fragment.rb +11 -0
  16. data/lib/nokolexbor/node.rb +367 -18
  17. data/lib/nokolexbor/node_set.rb +56 -0
  18. data/lib/nokolexbor/version.rb +1 -1
  19. metadata +2 -24
  20. data/vendor/lexbor/source/lexbor/encoding/base.h +0 -218
  21. data/vendor/lexbor/source/lexbor/encoding/big5.c +0 -42839
  22. data/vendor/lexbor/source/lexbor/encoding/config.cmake +0 -12
  23. data/vendor/lexbor/source/lexbor/encoding/const.h +0 -65
  24. data/vendor/lexbor/source/lexbor/encoding/decode.c +0 -3193
  25. data/vendor/lexbor/source/lexbor/encoding/decode.h +0 -370
  26. data/vendor/lexbor/source/lexbor/encoding/encode.c +0 -1931
  27. data/vendor/lexbor/source/lexbor/encoding/encode.h +0 -377
  28. data/vendor/lexbor/source/lexbor/encoding/encoding.c +0 -252
  29. data/vendor/lexbor/source/lexbor/encoding/encoding.h +0 -475
  30. data/vendor/lexbor/source/lexbor/encoding/euc_kr.c +0 -53883
  31. data/vendor/lexbor/source/lexbor/encoding/gb18030.c +0 -47905
  32. data/vendor/lexbor/source/lexbor/encoding/iso_2022_jp_katakana.c +0 -159
  33. data/vendor/lexbor/source/lexbor/encoding/jis0208.c +0 -22477
  34. data/vendor/lexbor/source/lexbor/encoding/jis0212.c +0 -15787
  35. data/vendor/lexbor/source/lexbor/encoding/multi.h +0 -53
  36. data/vendor/lexbor/source/lexbor/encoding/range.c +0 -71
  37. data/vendor/lexbor/source/lexbor/encoding/range.h +0 -34
  38. data/vendor/lexbor/source/lexbor/encoding/res.c +0 -222
  39. data/vendor/lexbor/source/lexbor/encoding/res.h +0 -34
  40. data/vendor/lexbor/source/lexbor/encoding/single.c +0 -13748
  41. data/vendor/lexbor/source/lexbor/encoding/single.h +0 -116
@@ -1,12 +0,0 @@
1
- set(DEPENDENCIES "core")
2
- set(DESCRIPTION "The module implemented by Encode specification.
3
- Includes functions for encoding and decoding text.
4
-
5
- Supports encodings:
6
- big5, euc-jp, euc-kr, gbk, ibm866, iso-2022-jp, iso-8859-10, iso-8859-13,
7
- iso-8859-14, iso-8859-15, iso-8859-16, iso-8859-2, iso-8859-3, iso-8859-4,
8
- iso-8859-5, iso-8859-6, iso-8859-7, iso-8859-8, iso-8859-8-i, koi8-r, koi8-u,
9
- shift_jis, utf-16be, utf-16le, utf-8, gb18030, macintosh, replacement,
10
- windows-1250, windows-1251, windows-1252, windows-1253, windows-1254,
11
- windows-1255, windows-1256, windows-1257, windows-1258, windows-874,
12
- x-mac-cyrillic, x-user-defined.")
@@ -1,65 +0,0 @@
1
- /*
2
- * Copyright (C) 2019 Alexander Borisov
3
- *
4
- * Author: Alexander Borisov <lex.borisov@gmail.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_CONST_H
15
- #define LEXBOR_ENCODING_CONST_H
16
-
17
- typedef enum {
18
- LXB_ENCODING_DEFAULT = 0x00,
19
- LXB_ENCODING_AUTO = 0x01,
20
- LXB_ENCODING_UNDEFINED = 0x02,
21
- LXB_ENCODING_BIG5 = 0x03,
22
- LXB_ENCODING_EUC_JP = 0x04,
23
- LXB_ENCODING_EUC_KR = 0x05,
24
- LXB_ENCODING_GBK = 0x06,
25
- LXB_ENCODING_IBM866 = 0x07,
26
- LXB_ENCODING_ISO_2022_JP = 0x08,
27
- LXB_ENCODING_ISO_8859_10 = 0x09,
28
- LXB_ENCODING_ISO_8859_13 = 0x0a,
29
- LXB_ENCODING_ISO_8859_14 = 0x0b,
30
- LXB_ENCODING_ISO_8859_15 = 0x0c,
31
- LXB_ENCODING_ISO_8859_16 = 0x0d,
32
- LXB_ENCODING_ISO_8859_2 = 0x0e,
33
- LXB_ENCODING_ISO_8859_3 = 0x0f,
34
- LXB_ENCODING_ISO_8859_4 = 0x10,
35
- LXB_ENCODING_ISO_8859_5 = 0x11,
36
- LXB_ENCODING_ISO_8859_6 = 0x12,
37
- LXB_ENCODING_ISO_8859_7 = 0x13,
38
- LXB_ENCODING_ISO_8859_8 = 0x14,
39
- LXB_ENCODING_ISO_8859_8_I = 0x15,
40
- LXB_ENCODING_KOI8_R = 0x16,
41
- LXB_ENCODING_KOI8_U = 0x17,
42
- LXB_ENCODING_SHIFT_JIS = 0x18,
43
- LXB_ENCODING_UTF_16BE = 0x19,
44
- LXB_ENCODING_UTF_16LE = 0x1a,
45
- LXB_ENCODING_UTF_8 = 0x1b,
46
- LXB_ENCODING_GB18030 = 0x1c,
47
- LXB_ENCODING_MACINTOSH = 0x1d,
48
- LXB_ENCODING_REPLACEMENT = 0x1e,
49
- LXB_ENCODING_WINDOWS_1250 = 0x1f,
50
- LXB_ENCODING_WINDOWS_1251 = 0x20,
51
- LXB_ENCODING_WINDOWS_1252 = 0x21,
52
- LXB_ENCODING_WINDOWS_1253 = 0x22,
53
- LXB_ENCODING_WINDOWS_1254 = 0x23,
54
- LXB_ENCODING_WINDOWS_1255 = 0x24,
55
- LXB_ENCODING_WINDOWS_1256 = 0x25,
56
- LXB_ENCODING_WINDOWS_1257 = 0x26,
57
- LXB_ENCODING_WINDOWS_1258 = 0x27,
58
- LXB_ENCODING_WINDOWS_874 = 0x28,
59
- LXB_ENCODING_X_MAC_CYRILLIC = 0x29,
60
- LXB_ENCODING_X_USER_DEFINED = 0x2a,
61
- LXB_ENCODING_LAST_ENTRY = 0x2b
62
- }
63
- lxb_encoding_t;
64
-
65
- #endif /* LEXBOR_ENCODING_CONST_H */