bindex 0.2.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (147) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +13 -33
  3. data/bindex.gemspec +1 -1
  4. data/ext/bindex/com/gsamokovarov/bindex/JRubyIntegration.java +2 -2
  5. data/ext/bindex/com/gsamokovarov/bindex/SetExceptionBindingsEventHook.java +4 -1
  6. data/ext/bindex/cruby.c +49 -15
  7. data/ext/bindex/extconf.rb +0 -15
  8. data/lib/bindex/jruby.rb +0 -1
  9. data/lib/bindex/jruby_internals.jar +0 -0
  10. data/lib/bindex/jruby_internals_9k.jar +0 -0
  11. data/lib/bindex/version.rb +1 -1
  12. metadata +4 -139
  13. data/ext/bindex/bindex.h +0 -11
  14. data/ext/bindex/bindings.c +0 -106
  15. data/ext/bindex/ruby_193.h +0 -101
  16. data/ext/bindex/ruby_193/addr2line.h +0 -21
  17. data/ext/bindex/ruby_193/constant.h +0 -34
  18. data/ext/bindex/ruby_193/debug.h +0 -41
  19. data/ext/bindex/ruby_193/dln.h +0 -50
  20. data/ext/bindex/ruby_193/encdb.h +0 -167
  21. data/ext/bindex/ruby_193/eval_intern.h +0 -234
  22. data/ext/bindex/ruby_193/gc.h +0 -99
  23. data/ext/bindex/ruby_193/id.h +0 -177
  24. data/ext/bindex/ruby_193/internal.h +0 -242
  25. data/ext/bindex/ruby_193/iseq.h +0 -126
  26. data/ext/bindex/ruby_193/method.h +0 -105
  27. data/ext/bindex/ruby_193/node.h +0 -504
  28. data/ext/bindex/ruby_193/parse.h +0 -302
  29. data/ext/bindex/ruby_193/probes.h +0 -369
  30. data/ext/bindex/ruby_193/regenc.h +0 -219
  31. data/ext/bindex/ruby_193/regint.h +0 -850
  32. data/ext/bindex/ruby_193/regparse.h +0 -362
  33. data/ext/bindex/ruby_193/revision.h +0 -1
  34. data/ext/bindex/ruby_193/ruby_atomic.h +0 -175
  35. data/ext/bindex/ruby_193/siphash.h +0 -48
  36. data/ext/bindex/ruby_193/thread_pthread.h +0 -51
  37. data/ext/bindex/ruby_193/thread_win32.h +0 -40
  38. data/ext/bindex/ruby_193/timev.h +0 -21
  39. data/ext/bindex/ruby_193/transcode_data.h +0 -117
  40. data/ext/bindex/ruby_193/transdb.h +0 -186
  41. data/ext/bindex/ruby_193/verconf.h +0 -12
  42. data/ext/bindex/ruby_193/version.h +0 -52
  43. data/ext/bindex/ruby_193/vm_core.h +0 -763
  44. data/ext/bindex/ruby_193/vm_exec.h +0 -184
  45. data/ext/bindex/ruby_193/vm_insnhelper.h +0 -220
  46. data/ext/bindex/ruby_193/vm_opts.h +0 -51
  47. data/ext/bindex/ruby_20.h +0 -142
  48. data/ext/bindex/ruby_20/addr2line.h +0 -21
  49. data/ext/bindex/ruby_20/constant.h +0 -36
  50. data/ext/bindex/ruby_20/dln.h +0 -50
  51. data/ext/bindex/ruby_20/encdb.h +0 -169
  52. data/ext/bindex/ruby_20/eval_intern.h +0 -241
  53. data/ext/bindex/ruby_20/gc.h +0 -104
  54. data/ext/bindex/ruby_20/id.h +0 -135
  55. data/ext/bindex/ruby_20/internal.h +0 -395
  56. data/ext/bindex/ruby_20/iseq.h +0 -140
  57. data/ext/bindex/ruby_20/method.h +0 -138
  58. data/ext/bindex/ruby_20/node.h +0 -541
  59. data/ext/bindex/ruby_20/parse.h +0 -292
  60. data/ext/bindex/ruby_20/probes.h +0 -369
  61. data/ext/bindex/ruby_20/probes_helper.h +0 -67
  62. data/ext/bindex/ruby_20/regenc.h +0 -227
  63. data/ext/bindex/ruby_20/regint.h +0 -915
  64. data/ext/bindex/ruby_20/regparse.h +0 -367
  65. data/ext/bindex/ruby_20/revision.h +0 -1
  66. data/ext/bindex/ruby_20/ruby_atomic.h +0 -170
  67. data/ext/bindex/ruby_20/siphash.h +0 -48
  68. data/ext/bindex/ruby_20/thread_pthread.h +0 -56
  69. data/ext/bindex/ruby_20/thread_win32.h +0 -45
  70. data/ext/bindex/ruby_20/timev.h +0 -21
  71. data/ext/bindex/ruby_20/transcode_data.h +0 -127
  72. data/ext/bindex/ruby_20/transdb.h +0 -190
  73. data/ext/bindex/ruby_20/verconf.h +0 -12
  74. data/ext/bindex/ruby_20/version.h +0 -52
  75. data/ext/bindex/ruby_20/vm_core.h +0 -1018
  76. data/ext/bindex/ruby_20/vm_debug.h +0 -41
  77. data/ext/bindex/ruby_20/vm_exec.h +0 -173
  78. data/ext/bindex/ruby_20/vm_insnhelper.h +0 -274
  79. data/ext/bindex/ruby_20/vm_opts.h +0 -56
  80. data/ext/bindex/ruby_21.h +0 -142
  81. data/ext/bindex/ruby_21/addr2line.h +0 -21
  82. data/ext/bindex/ruby_21/constant.h +0 -36
  83. data/ext/bindex/ruby_21/dln.h +0 -51
  84. data/ext/bindex/ruby_21/encdb.h +0 -170
  85. data/ext/bindex/ruby_21/eval_intern.h +0 -260
  86. data/ext/bindex/ruby_21/gc.h +0 -101
  87. data/ext/bindex/ruby_21/id.h +0 -210
  88. data/ext/bindex/ruby_21/internal.h +0 -889
  89. data/ext/bindex/ruby_21/iseq.h +0 -136
  90. data/ext/bindex/ruby_21/method.h +0 -142
  91. data/ext/bindex/ruby_21/node.h +0 -543
  92. data/ext/bindex/ruby_21/parse.h +0 -298
  93. data/ext/bindex/ruby_21/probes.h +0 -401
  94. data/ext/bindex/ruby_21/probes_helper.h +0 -67
  95. data/ext/bindex/ruby_21/regenc.h +0 -223
  96. data/ext/bindex/ruby_21/regint.h +0 -911
  97. data/ext/bindex/ruby_21/regparse.h +0 -363
  98. data/ext/bindex/ruby_21/revision.h +0 -1
  99. data/ext/bindex/ruby_21/ruby_atomic.h +0 -170
  100. data/ext/bindex/ruby_21/siphash.h +0 -48
  101. data/ext/bindex/ruby_21/thread_native.h +0 -23
  102. data/ext/bindex/ruby_21/thread_pthread.h +0 -56
  103. data/ext/bindex/ruby_21/thread_win32.h +0 -45
  104. data/ext/bindex/ruby_21/timev.h +0 -42
  105. data/ext/bindex/ruby_21/transcode_data.h +0 -123
  106. data/ext/bindex/ruby_21/transdb.h +0 -190
  107. data/ext/bindex/ruby_21/verconf.h +0 -13
  108. data/ext/bindex/ruby_21/version.h +0 -52
  109. data/ext/bindex/ruby_21/vm_core.h +0 -1043
  110. data/ext/bindex/ruby_21/vm_debug.h +0 -37
  111. data/ext/bindex/ruby_21/vm_exec.h +0 -182
  112. data/ext/bindex/ruby_21/vm_insnhelper.h +0 -273
  113. data/ext/bindex/ruby_21/vm_opts.h +0 -56
  114. data/ext/bindex/ruby_21preview.h +0 -146
  115. data/ext/bindex/ruby_21preview/addr2line.h +0 -21
  116. data/ext/bindex/ruby_21preview/constant.h +0 -36
  117. data/ext/bindex/ruby_21preview/dln.h +0 -51
  118. data/ext/bindex/ruby_21preview/encdb.h +0 -270
  119. data/ext/bindex/ruby_21preview/eval_intern.h +0 -217
  120. data/ext/bindex/ruby_21preview/gc.h +0 -100
  121. data/ext/bindex/ruby_21preview/id.h +0 -169
  122. data/ext/bindex/ruby_21preview/internal.h +0 -765
  123. data/ext/bindex/ruby_21preview/iseq.h +0 -136
  124. data/ext/bindex/ruby_21preview/method.h +0 -141
  125. data/ext/bindex/ruby_21preview/node.h +0 -543
  126. data/ext/bindex/ruby_21preview/parse.h +0 -298
  127. data/ext/bindex/ruby_21preview/probes.h +0 -385
  128. data/ext/bindex/ruby_21preview/probes_helper.h +0 -67
  129. data/ext/bindex/ruby_21preview/regenc.h +0 -223
  130. data/ext/bindex/ruby_21preview/regint.h +0 -911
  131. data/ext/bindex/ruby_21preview/regparse.h +0 -363
  132. data/ext/bindex/ruby_21preview/revision.h +0 -1
  133. data/ext/bindex/ruby_21preview/ruby_atomic.h +0 -130
  134. data/ext/bindex/ruby_21preview/siphash.h +0 -48
  135. data/ext/bindex/ruby_21preview/thread_native.h +0 -23
  136. data/ext/bindex/ruby_21preview/thread_pthread.h +0 -56
  137. data/ext/bindex/ruby_21preview/thread_win32.h +0 -45
  138. data/ext/bindex/ruby_21preview/timev.h +0 -42
  139. data/ext/bindex/ruby_21preview/transcode_data.h +0 -123
  140. data/ext/bindex/ruby_21preview/transdb.h +0 -190
  141. data/ext/bindex/ruby_21preview/verconf.h +0 -13
  142. data/ext/bindex/ruby_21preview/version.h +0 -53
  143. data/ext/bindex/ruby_21preview/vm_core.h +0 -1017
  144. data/ext/bindex/ruby_21preview/vm_debug.h +0 -37
  145. data/ext/bindex/ruby_21preview/vm_exec.h +0 -180
  146. data/ext/bindex/ruby_21preview/vm_insnhelper.h +0 -272
  147. data/ext/bindex/ruby_21preview/vm_opts.h +0 -56
@@ -1,48 +0,0 @@
1
- #ifndef SIPHASH_H
2
- #define SIPHASH_H 1
3
- #include <stdlib.h>
4
- #ifdef HAVE_STDINT_H
5
- #include <stdint.h>
6
- #endif
7
- #ifdef HAVE_INTTYPES_H
8
- #include <inttypes.h>
9
- #endif
10
-
11
- #ifndef HAVE_UINT64_T
12
- typedef struct {
13
- uint32_t u32[2];
14
- } sip_uint64_t;
15
- #define uint64_t sip_uint64_t
16
- #else
17
- typedef uint64_t sip_uint64_t;
18
- #endif
19
-
20
- typedef struct {
21
- int c;
22
- int d;
23
- uint64_t v[4];
24
- uint8_t buf[sizeof(uint64_t)];
25
- uint8_t buflen;
26
- uint8_t msglen_byte;
27
- } sip_state;
28
-
29
- typedef struct sip_interface_st sip_interface;
30
-
31
- typedef struct {
32
- sip_state state[1];
33
- const sip_interface *methods;
34
- } sip_hash;
35
-
36
- sip_hash *sip_hash_new(const uint8_t key[16], int c, int d);
37
- sip_hash *sip_hash_init(sip_hash *h, const uint8_t key[16], int c, int d);
38
- int sip_hash_update(sip_hash *h, const uint8_t *data, size_t len);
39
- int sip_hash_final(sip_hash *h, uint8_t **digest, size_t *len);
40
- int sip_hash_final_integer(sip_hash *h, uint64_t *digest);
41
- int sip_hash_digest(sip_hash *h, const uint8_t *data, size_t data_len, uint8_t **digest, size_t *digest_len);
42
- int sip_hash_digest_integer(sip_hash *h, const uint8_t *data, size_t data_len, uint64_t *digest);
43
- void sip_hash_free(sip_hash *h);
44
- void sip_hash_dump(sip_hash *h);
45
-
46
- uint64_t sip_hash24(const uint8_t key[16], const uint8_t *data, size_t len);
47
-
48
- #endif
@@ -1,51 +0,0 @@
1
- /**********************************************************************
2
-
3
- thread_pthread.h -
4
-
5
- $Author$
6
-
7
- Copyright (C) 2004-2007 Koichi Sasada
8
-
9
- **********************************************************************/
10
-
11
- #ifndef RUBY_THREAD_PTHREAD_H
12
- #define RUBY_THREAD_PTHREAD_H
13
-
14
- #include <pthread.h>
15
- #ifdef HAVE_PTHREAD_NP_H
16
- #include <pthread_np.h>
17
- #endif
18
- typedef pthread_t rb_thread_id_t;
19
- typedef pthread_mutex_t rb_thread_lock_t;
20
-
21
- typedef struct rb_thread_cond_struct {
22
- pthread_cond_t cond;
23
- #ifdef HAVE_CLOCKID_T
24
- clockid_t clockid;
25
- #endif
26
- } rb_thread_cond_t;
27
-
28
- typedef struct native_thread_data_struct {
29
- void *signal_thread_list;
30
- rb_thread_cond_t sleep_cond;
31
- } native_thread_data_t;
32
-
33
- #include <semaphore.h>
34
-
35
- typedef struct rb_global_vm_lock_struct {
36
- /* fast path */
37
- unsigned long acquired;
38
- pthread_mutex_t lock;
39
-
40
- /* slow path */
41
- volatile unsigned long waiting;
42
- rb_thread_cond_t cond;
43
-
44
- /* yield */
45
- rb_thread_cond_t switch_cond;
46
- rb_thread_cond_t switch_wait_cond;
47
- int need_yield;
48
- int wait_yield;
49
- } rb_global_vm_lock_t;
50
-
51
- #endif /* RUBY_THREAD_PTHREAD_H */
@@ -1,40 +0,0 @@
1
- /**********************************************************************
2
-
3
- thread_win32.h -
4
-
5
- $Author$
6
-
7
- Copyright (C) 2004-2007 Koichi Sasada
8
-
9
- **********************************************************************/
10
-
11
- /* interface */
12
- #ifndef RUBY_THREAD_WIN32_H
13
- #define RUBY_THREAD_WIN32_H
14
-
15
- #include <windows.h>
16
-
17
- # ifdef __CYGWIN__
18
- # undef _WIN32
19
- # endif
20
-
21
- WINBASEAPI BOOL WINAPI
22
- TryEnterCriticalSection(IN OUT LPCRITICAL_SECTION lpCriticalSection);
23
-
24
- typedef HANDLE rb_thread_id_t;
25
- typedef CRITICAL_SECTION rb_thread_lock_t;
26
- typedef struct rb_thread_cond_struct {
27
- struct cond_event_entry *next;
28
- struct cond_event_entry *prev;
29
- } rb_thread_cond_t;
30
-
31
- typedef struct native_thread_data_struct {
32
- HANDLE interrupt_event;
33
- } native_thread_data_t;
34
-
35
- typedef struct rb_global_vm_lock_struct {
36
- HANDLE lock;
37
- } rb_global_vm_lock_t;
38
-
39
- #endif /* RUBY_THREAD_WIN32_H */
40
-
@@ -1,21 +0,0 @@
1
- #ifndef RUBY_TIMEV_H
2
- #define RUBY_TIMEV_H
3
-
4
- struct vtm {
5
- VALUE year; /* 2000 for example. Integer. */
6
- int mon; /* 1..12 */
7
- int mday; /* 1..31 */
8
- int hour; /* 0..23 */
9
- int min; /* 0..59 */
10
- int sec; /* 0..60 */
11
- VALUE subsecx; /* 0 <= subsecx < TIME_SCALE. possibly Rational. */
12
- VALUE utc_offset; /* -3600 as -01:00 for example. possibly Rational. */
13
- int wday; /* 0:Sunday, 1:Monday, ..., 6:Saturday */
14
- int yday; /* 1..366 */
15
- int isdst; /* 0:StandardTime 1:DayLightSavingTime */
16
- const char *zone; /* "JST", "EST", "EDT", etc. */
17
- };
18
-
19
- #define TIME_SCALE 1000000000
20
-
21
- #endif
@@ -1,117 +0,0 @@
1
- /**********************************************************************
2
-
3
- transcode_data.h -
4
-
5
- $Author$
6
- created at: Mon 10 Dec 2007 14:01:47 JST 2007
7
-
8
- Copyright (C) 2007 Martin Duerst
9
-
10
- **********************************************************************/
11
-
12
- #include "ruby/ruby.h"
13
-
14
- #ifndef RUBY_TRANSCODE_DATA_H
15
- #define RUBY_TRANSCODE_DATA_H 1
16
-
17
- #if defined __GNUC__ && __GNUC__ >= 4
18
- #pragma GCC visibility push(default)
19
- #endif
20
-
21
- #define WORDINDEX_SHIFT_BITS 2
22
- #define WORDINDEX2INFO(widx) ((widx) << WORDINDEX_SHIFT_BITS)
23
- #define INFO2WORDINDEX(info) ((info) >> WORDINDEX_SHIFT_BITS)
24
- #define BYTE_LOOKUP_BASE(bl) ((bl)[0])
25
- #define BYTE_LOOKUP_INFO(bl) ((bl)[1])
26
-
27
- #define PType (unsigned int)
28
-
29
- #define NOMAP (PType 0x01) /* direct map */
30
- #define ONEbt (0x02) /* one byte payload */
31
- #define TWObt (0x03) /* two bytes payload */
32
- #define THREEbt (0x05) /* three bytes payload */
33
- #define FOURbt (0x06) /* four bytes payload, UTF-8 only, macros start at getBT0 */
34
- #define INVALID (PType 0x07) /* invalid byte sequence */
35
- #define UNDEF (PType 0x09) /* legal but undefined */
36
- #define ZERObt (PType 0x0A) /* zero bytes of payload, i.e. remove */
37
- #define FUNii (PType 0x0B) /* function from info to info */
38
- #define FUNsi (PType 0x0D) /* function from start to info */
39
- #define FUNio (PType 0x0E) /* function from info to output */
40
- #define FUNso (PType 0x0F) /* function from start to output */
41
- #define STR1 (PType 0x11) /* string 4 <= len <= 259 bytes: 1byte length + content */
42
- #define GB4bt (PType 0x12) /* GB18030 four bytes payload */
43
- #define FUNsio (PType 0x13) /* function from start and info to output */
44
-
45
- #define STR1_LENGTH(byte_addr) (unsigned int)(*(byte_addr) + 4)
46
- #define STR1_BYTEINDEX(w) ((w) >> 6)
47
- #define makeSTR1(bi) (((bi) << 6) | STR1)
48
- #define makeSTR1LEN(len) ((len)-4)
49
-
50
- #define o1(b1) (PType((((unsigned char)(b1))<<8)|ONEbt))
51
- #define o2(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|TWObt))
52
- #define o3(b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned int)(unsigned char)(b3))<<24)|THREEbt)&0xffffffffU))
53
- #define o4(b0,b1,b2,b3) (PType(((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|(((unsigned char)(b3))<<24)|((((unsigned char)(b0))&0x07)<<5)|FOURbt)&0xffffffffU))
54
- #define g4(b0,b1,b2,b3) (PType(((((unsigned char)(b0))<<8)|(((unsigned char)(b2))<<16)|((((unsigned char)(b1))&0x0f)<<24)|((((unsigned int)(unsigned char)(b3))&0x0f)<<28)|GB4bt)&0xffffffffU))
55
- #define funsio(diff) (PType((((unsigned int)(diff))<<8)|FUNsio))
56
-
57
- #define getBT1(a) ((unsigned char)((a)>> 8))
58
- #define getBT2(a) ((unsigned char)((a)>>16))
59
- #define getBT3(a) ((unsigned char)((a)>>24))
60
- #define getBT0(a) (((unsigned char)((a)>> 5)&0x07)|0xF0) /* for UTF-8 only!!! */
61
-
62
- #define getGB4bt0(a) ((unsigned char)((a)>> 8))
63
- #define getGB4bt1(a) (((unsigned char)((a)>>24)&0x0F)|0x30)
64
- #define getGB4bt2(a) ((unsigned char)((a)>>16))
65
- #define getGB4bt3(a) (((unsigned char)((a)>>28)&0x0F)|0x30)
66
-
67
- #define o2FUNii(b1,b2) (PType((((unsigned char)(b1))<<8)|(((unsigned char)(b2))<<16)|FUNii))
68
-
69
- /* do we need these??? maybe not, can be done with simple tables */
70
- #define ONETRAIL /* legal but undefined if one more trailing UTF-8 */
71
- #define TWOTRAIL /* legal but undefined if two more trailing UTF-8 */
72
- #define THREETRAIL /* legal but undefined if three more trailing UTF-8 */
73
-
74
- typedef enum {
75
- asciicompat_converter, /* ASCII-compatible -> ASCII-compatible */
76
- asciicompat_decoder, /* ASCII-incompatible -> ASCII-compatible */
77
- asciicompat_encoder /* ASCII-compatible -> ASCII-incompatible */
78
- /* ASCII-incompatible -> ASCII-incompatible is intentionally omitted. */
79
- } rb_transcoder_asciicompat_type_t;
80
-
81
- typedef struct rb_transcoder rb_transcoder;
82
-
83
- /* static structure, one per supported encoding pair */
84
- struct rb_transcoder {
85
- const char *src_encoding;
86
- const char *dst_encoding;
87
- unsigned int conv_tree_start;
88
- const unsigned char *byte_array;
89
- unsigned int byte_array_length;
90
- const unsigned int *word_array;
91
- unsigned int word_array_length;
92
- int word_size;
93
- int input_unit_length;
94
- int max_input;
95
- int max_output;
96
- rb_transcoder_asciicompat_type_t asciicompat_type;
97
- size_t state_size;
98
- int (*state_init_func)(void*); /* ret==0:success ret!=0:failure(errno) */
99
- int (*state_fini_func)(void*); /* ret==0:success ret!=0:failure(errno) */
100
- VALUE (*func_ii)(void*, VALUE); /* info -> info */
101
- VALUE (*func_si)(void*, const unsigned char*, size_t); /* start -> info */
102
- ssize_t (*func_io)(void*, VALUE, const unsigned char*, size_t); /* info -> output */
103
- ssize_t (*func_so)(void*, const unsigned char*, size_t, unsigned char*, size_t); /* start -> output */
104
- ssize_t (*finish_func)(void*, unsigned char*, size_t); /* -> output */
105
- ssize_t (*resetsize_func)(void*); /* -> len */
106
- ssize_t (*resetstate_func)(void*, unsigned char*, size_t); /* -> output */
107
- ssize_t (*func_sio)(void*, const unsigned char*, size_t, VALUE, unsigned char*, size_t); /* start -> output */
108
- };
109
-
110
- void rb_declare_transcoder(const char *enc1, const char *enc2, const char *lib);
111
- void rb_register_transcoder(const rb_transcoder *);
112
-
113
- #if defined __GNUC__ && __GNUC__ >= 4
114
- #pragma GCC visibility pop
115
- #endif
116
-
117
- #endif /* RUBY_TRANSCODE_DATA_H */
@@ -1,186 +0,0 @@
1
- rb_declare_transcoder("Big5", "UTF-8", "big5");
2
- rb_declare_transcoder("UTF-8", "Big5", "big5");
3
- rb_declare_transcoder("CP950", "UTF-8", "big5");
4
- rb_declare_transcoder("UTF-8", "CP950", "big5");
5
- rb_declare_transcoder("Big5-HKSCS", "UTF-8", "big5");
6
- rb_declare_transcoder("UTF-8", "Big5-HKSCS", "big5");
7
- rb_declare_transcoder("CP951", "UTF-8", "big5");
8
- rb_declare_transcoder("UTF-8", "CP951", "big5");
9
- rb_declare_transcoder("Big5-UAO", "UTF-8", "big5");
10
- rb_declare_transcoder("UTF-8", "Big5-UAO", "big5");
11
- rb_declare_transcoder("GB2312", "UTF-8", "chinese");
12
- rb_declare_transcoder("GB12345", "UTF-8", "chinese");
13
- rb_declare_transcoder("UTF-8", "GB2312", "chinese");
14
- rb_declare_transcoder("UTF-8", "GB12345", "chinese");
15
- rb_declare_transcoder("UTF8-DoCoMo", "UTF8-KDDI", "emoji");
16
- rb_declare_transcoder("UTF8-DoCoMo", "UTF8-SoftBank", "emoji");
17
- rb_declare_transcoder("UTF8-DoCoMo", "UTF-8", "emoji");
18
- rb_declare_transcoder("UTF8-KDDI", "UTF8-DoCoMo", "emoji");
19
- rb_declare_transcoder("UTF8-KDDI", "UTF8-SoftBank", "emoji");
20
- rb_declare_transcoder("UTF8-KDDI", "UTF-8", "emoji");
21
- rb_declare_transcoder("UTF8-SoftBank", "UTF8-DoCoMo", "emoji");
22
- rb_declare_transcoder("UTF8-SoftBank", "UTF8-KDDI", "emoji");
23
- rb_declare_transcoder("UTF8-SoftBank", "UTF-8", "emoji");
24
- rb_declare_transcoder("UTF-8", "UTF8-DoCoMo", "emoji");
25
- rb_declare_transcoder("UTF-8", "UTF8-KDDI", "emoji");
26
- rb_declare_transcoder("UTF-8", "UTF8-SoftBank", "emoji");
27
- rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "UTF8-KDDI", "emoji_iso2022_kddi");
28
- rb_declare_transcoder("UTF8-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
29
- rb_declare_transcoder("ISO-2022-JP-KDDI", "stateless-ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
30
- rb_declare_transcoder("stateless-ISO-2022-JP-KDDI", "ISO-2022-JP-KDDI", "emoji_iso2022_kddi");
31
- rb_declare_transcoder("SJIS-DOCOMO", "UTF8-DOCOMO", "emoji_sjis_docomo");
32
- rb_declare_transcoder("UTF8-DOCOMO", "SJIS-DOCOMO", "emoji_sjis_docomo");
33
- rb_declare_transcoder("SJIS-KDDI", "UTF8-KDDI", "emoji_sjis_kddi");
34
- rb_declare_transcoder("UTF8-KDDI", "SJIS-KDDI", "emoji_sjis_kddi");
35
- rb_declare_transcoder("SJIS-SoftBank", "UTF8-SoftBank", "emoji_sjis_softbank");
36
- rb_declare_transcoder("UTF8-SoftBank", "SJIS-SoftBank", "emoji_sjis_softbank");
37
- rb_declare_transcoder("", "amp_escape", "escape");
38
- rb_declare_transcoder("", "xml_text_escape", "escape");
39
- rb_declare_transcoder("", "xml_attr_content_escape", "escape");
40
- rb_declare_transcoder("", "xml_attr_quote", "escape");
41
- rb_declare_transcoder("GB18030", "UTF-8", "gb18030");
42
- rb_declare_transcoder("UTF-8", "GB18030", "gb18030");
43
- rb_declare_transcoder("GBK", "UTF-8", "gbk");
44
- rb_declare_transcoder("UTF-8", "GBK", "gbk");
45
- rb_declare_transcoder("ISO-2022-JP", "stateless-ISO-2022-JP", "iso2022");
46
- rb_declare_transcoder("stateless-ISO-2022-JP", "ISO-2022-JP", "iso2022");
47
- rb_declare_transcoder("stateless-ISO-2022-JP", "EUC-JP", "iso2022");
48
- rb_declare_transcoder("EUC-JP", "stateless-ISO-2022-JP", "iso2022");
49
- rb_declare_transcoder("CP50220", "cp51932", "iso2022");
50
- rb_declare_transcoder("CP50221", "cp51932", "iso2022");
51
- rb_declare_transcoder("CP51932", "CP50221", "iso2022");
52
- rb_declare_transcoder("CP51932", "CP50220", "iso2022");
53
- rb_declare_transcoder("EUC-JP", "Shift_JIS", "japanese");
54
- rb_declare_transcoder("Shift_JIS", "EUC-JP", "japanese");
55
- rb_declare_transcoder("EUC-JP", "UTF-8", "japanese_euc");
56
- rb_declare_transcoder("eucJP-ms", "UTF-8", "japanese_euc");
57
- rb_declare_transcoder("CP51932", "UTF-8", "japanese_euc");
58
- rb_declare_transcoder("UTF-8", "EUC-JP", "japanese_euc");
59
- rb_declare_transcoder("UTF-8", "eucJP-ms", "japanese_euc");
60
- rb_declare_transcoder("UTF-8", "CP51932", "japanese_euc");
61
- rb_declare_transcoder("Shift_JIS", "UTF-8", "japanese_sjis");
62
- rb_declare_transcoder("Windows-31J", "UTF-8", "japanese_sjis");
63
- rb_declare_transcoder("UTF-8", "Shift_JIS", "japanese_sjis");
64
- rb_declare_transcoder("UTF-8", "Windows-31J", "japanese_sjis");
65
- rb_declare_transcoder("UTF-8", "EUC-KR", "korean");
66
- rb_declare_transcoder("EUC-KR", "UTF-8", "korean");
67
- rb_declare_transcoder("UTF-8", "CP949", "korean");
68
- rb_declare_transcoder("CP949", "UTF-8", "korean");
69
- rb_declare_transcoder("US-ASCII", "UTF-8", "single_byte");
70
- rb_declare_transcoder("UTF-8", "US-ASCII", "single_byte");
71
- rb_declare_transcoder("ASCII-8BIT", "UTF-8", "single_byte");
72
- rb_declare_transcoder("UTF-8", "ASCII-8BIT", "single_byte");
73
- rb_declare_transcoder("ISO-8859-1", "UTF-8", "single_byte");
74
- rb_declare_transcoder("UTF-8", "ISO-8859-1", "single_byte");
75
- rb_declare_transcoder("ISO-8859-2", "UTF-8", "single_byte");
76
- rb_declare_transcoder("UTF-8", "ISO-8859-2", "single_byte");
77
- rb_declare_transcoder("ISO-8859-3", "UTF-8", "single_byte");
78
- rb_declare_transcoder("UTF-8", "ISO-8859-3", "single_byte");
79
- rb_declare_transcoder("ISO-8859-4", "UTF-8", "single_byte");
80
- rb_declare_transcoder("UTF-8", "ISO-8859-4", "single_byte");
81
- rb_declare_transcoder("ISO-8859-5", "UTF-8", "single_byte");
82
- rb_declare_transcoder("UTF-8", "ISO-8859-5", "single_byte");
83
- rb_declare_transcoder("ISO-8859-6", "UTF-8", "single_byte");
84
- rb_declare_transcoder("UTF-8", "ISO-8859-6", "single_byte");
85
- rb_declare_transcoder("ISO-8859-7", "UTF-8", "single_byte");
86
- rb_declare_transcoder("UTF-8", "ISO-8859-7", "single_byte");
87
- rb_declare_transcoder("ISO-8859-8", "UTF-8", "single_byte");
88
- rb_declare_transcoder("UTF-8", "ISO-8859-8", "single_byte");
89
- rb_declare_transcoder("ISO-8859-9", "UTF-8", "single_byte");
90
- rb_declare_transcoder("UTF-8", "ISO-8859-9", "single_byte");
91
- rb_declare_transcoder("ISO-8859-10", "UTF-8", "single_byte");
92
- rb_declare_transcoder("UTF-8", "ISO-8859-10", "single_byte");
93
- rb_declare_transcoder("ISO-8859-11", "UTF-8", "single_byte");
94
- rb_declare_transcoder("UTF-8", "ISO-8859-11", "single_byte");
95
- rb_declare_transcoder("ISO-8859-13", "UTF-8", "single_byte");
96
- rb_declare_transcoder("UTF-8", "ISO-8859-13", "single_byte");
97
- rb_declare_transcoder("ISO-8859-14", "UTF-8", "single_byte");
98
- rb_declare_transcoder("UTF-8", "ISO-8859-14", "single_byte");
99
- rb_declare_transcoder("ISO-8859-15", "UTF-8", "single_byte");
100
- rb_declare_transcoder("UTF-8", "ISO-8859-15", "single_byte");
101
- rb_declare_transcoder("WINDOWS-874", "UTF-8", "single_byte");
102
- rb_declare_transcoder("UTF-8", "WINDOWS-874", "single_byte");
103
- rb_declare_transcoder("WINDOWS-1250", "UTF-8", "single_byte");
104
- rb_declare_transcoder("UTF-8", "WINDOWS-1250", "single_byte");
105
- rb_declare_transcoder("WINDOWS-1251", "UTF-8", "single_byte");
106
- rb_declare_transcoder("UTF-8", "WINDOWS-1251", "single_byte");
107
- rb_declare_transcoder("WINDOWS-1252", "UTF-8", "single_byte");
108
- rb_declare_transcoder("UTF-8", "WINDOWS-1252", "single_byte");
109
- rb_declare_transcoder("WINDOWS-1253", "UTF-8", "single_byte");
110
- rb_declare_transcoder("UTF-8", "WINDOWS-1253", "single_byte");
111
- rb_declare_transcoder("WINDOWS-1254", "UTF-8", "single_byte");
112
- rb_declare_transcoder("UTF-8", "WINDOWS-1254", "single_byte");
113
- rb_declare_transcoder("WINDOWS-1255", "UTF-8", "single_byte");
114
- rb_declare_transcoder("UTF-8", "WINDOWS-1255", "single_byte");
115
- rb_declare_transcoder("WINDOWS-1256", "UTF-8", "single_byte");
116
- rb_declare_transcoder("UTF-8", "WINDOWS-1256", "single_byte");
117
- rb_declare_transcoder("WINDOWS-1257", "UTF-8", "single_byte");
118
- rb_declare_transcoder("UTF-8", "WINDOWS-1257", "single_byte");
119
- rb_declare_transcoder("IBM437", "UTF-8", "single_byte");
120
- rb_declare_transcoder("UTF-8", "IBM437", "single_byte");
121
- rb_declare_transcoder("IBM775", "UTF-8", "single_byte");
122
- rb_declare_transcoder("UTF-8", "IBM775", "single_byte");
123
- rb_declare_transcoder("IBM737", "UTF-8", "single_byte");
124
- rb_declare_transcoder("UTF-8", "IBM737", "single_byte");
125
- rb_declare_transcoder("IBM852", "UTF-8", "single_byte");
126
- rb_declare_transcoder("UTF-8", "IBM852", "single_byte");
127
- rb_declare_transcoder("IBM855", "UTF-8", "single_byte");
128
- rb_declare_transcoder("UTF-8", "IBM855", "single_byte");
129
- rb_declare_transcoder("IBM857", "UTF-8", "single_byte");
130
- rb_declare_transcoder("UTF-8", "IBM857", "single_byte");
131
- rb_declare_transcoder("IBM860", "UTF-8", "single_byte");
132
- rb_declare_transcoder("UTF-8", "IBM860", "single_byte");
133
- rb_declare_transcoder("IBM861", "UTF-8", "single_byte");
134
- rb_declare_transcoder("UTF-8", "IBM861", "single_byte");
135
- rb_declare_transcoder("IBM862", "UTF-8", "single_byte");
136
- rb_declare_transcoder("UTF-8", "IBM862", "single_byte");
137
- rb_declare_transcoder("IBM863", "UTF-8", "single_byte");
138
- rb_declare_transcoder("UTF-8", "IBM863", "single_byte");
139
- rb_declare_transcoder("IBM865", "UTF-8", "single_byte");
140
- rb_declare_transcoder("UTF-8", "IBM865", "single_byte");
141
- rb_declare_transcoder("IBM866", "UTF-8", "single_byte");
142
- rb_declare_transcoder("UTF-8", "IBM866", "single_byte");
143
- rb_declare_transcoder("IBM869", "UTF-8", "single_byte");
144
- rb_declare_transcoder("UTF-8", "IBM869", "single_byte");
145
- rb_declare_transcoder("MACCROATIAN", "UTF-8", "single_byte");
146
- rb_declare_transcoder("UTF-8", "MACCROATIAN", "single_byte");
147
- rb_declare_transcoder("MACCYRILLIC", "UTF-8", "single_byte");
148
- rb_declare_transcoder("UTF-8", "MACCYRILLIC", "single_byte");
149
- rb_declare_transcoder("MACGREEK", "UTF-8", "single_byte");
150
- rb_declare_transcoder("UTF-8", "MACGREEK", "single_byte");
151
- rb_declare_transcoder("MACICELAND", "UTF-8", "single_byte");
152
- rb_declare_transcoder("UTF-8", "MACICELAND", "single_byte");
153
- rb_declare_transcoder("MACROMAN", "UTF-8", "single_byte");
154
- rb_declare_transcoder("UTF-8", "MACROMAN", "single_byte");
155
- rb_declare_transcoder("MACROMANIA", "UTF-8", "single_byte");
156
- rb_declare_transcoder("UTF-8", "MACROMANIA", "single_byte");
157
- rb_declare_transcoder("MACTURKISH", "UTF-8", "single_byte");
158
- rb_declare_transcoder("UTF-8", "MACTURKISH", "single_byte");
159
- rb_declare_transcoder("MACUKRAINE", "UTF-8", "single_byte");
160
- rb_declare_transcoder("UTF-8", "MACUKRAINE", "single_byte");
161
- rb_declare_transcoder("KOI8-U", "UTF-8", "single_byte");
162
- rb_declare_transcoder("UTF-8", "KOI8-U", "single_byte");
163
- rb_declare_transcoder("KOI8-R", "UTF-8", "single_byte");
164
- rb_declare_transcoder("UTF-8", "KOI8-R", "single_byte");
165
- rb_declare_transcoder("TIS-620", "UTF-8", "single_byte");
166
- rb_declare_transcoder("UTF-8", "TIS-620", "single_byte");
167
- rb_declare_transcoder("CP850", "UTF-8", "single_byte");
168
- rb_declare_transcoder("UTF-8", "CP850", "single_byte");
169
- rb_declare_transcoder("CP852", "UTF-8", "single_byte");
170
- rb_declare_transcoder("UTF-8", "CP852", "single_byte");
171
- rb_declare_transcoder("CP855", "UTF-8", "single_byte");
172
- rb_declare_transcoder("UTF-8", "CP855", "single_byte");
173
- rb_declare_transcoder("UTF-8", "UTF8-MAC", "utf8_mac");
174
- rb_declare_transcoder("UTF8-MAC", "UTF-8", "utf8_mac");
175
- rb_declare_transcoder("UTF-16BE", "UTF-8", "utf_16_32");
176
- rb_declare_transcoder("UTF-8", "UTF-16BE", "utf_16_32");
177
- rb_declare_transcoder("UTF-16LE", "UTF-8", "utf_16_32");
178
- rb_declare_transcoder("UTF-8", "UTF-16LE", "utf_16_32");
179
- rb_declare_transcoder("UTF-32BE", "UTF-8", "utf_16_32");
180
- rb_declare_transcoder("UTF-8", "UTF-32BE", "utf_16_32");
181
- rb_declare_transcoder("UTF-32LE", "UTF-8", "utf_16_32");
182
- rb_declare_transcoder("UTF-8", "UTF-32LE", "utf_16_32");
183
- rb_declare_transcoder("UTF-16", "UTF-8", "utf_16_32");
184
- rb_declare_transcoder("UTF-32", "UTF-8", "utf_16_32");
185
- rb_declare_transcoder("UTF-8", "UTF-16", "utf_16_32");
186
- rb_declare_transcoder("UTF-8", "UTF-32", "utf_16_32");