rbs 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.github/workflows/ruby.yml +28 -0
- data/.gitignore +12 -0
- data/.rubocop.yml +15 -0
- data/BSDL +22 -0
- data/CHANGELOG.md +9 -0
- data/COPYING +56 -0
- data/Gemfile +6 -0
- data/README.md +93 -0
- data/Rakefile +142 -0
- data/bin/annotate-with-rdoc +157 -0
- data/bin/console +14 -0
- data/bin/query-rdoc +103 -0
- data/bin/setup +10 -0
- data/bin/sort +89 -0
- data/bin/test_runner.rb +16 -0
- data/docs/CONTRIBUTING.md +97 -0
- data/docs/sigs.md +148 -0
- data/docs/stdlib.md +152 -0
- data/docs/syntax.md +528 -0
- data/exe/rbs +7 -0
- data/lib/rbs.rb +64 -0
- data/lib/rbs/ast/annotation.rb +27 -0
- data/lib/rbs/ast/comment.rb +27 -0
- data/lib/rbs/ast/declarations.rb +395 -0
- data/lib/rbs/ast/members.rb +362 -0
- data/lib/rbs/buffer.rb +50 -0
- data/lib/rbs/builtin_names.rb +55 -0
- data/lib/rbs/cli.rb +558 -0
- data/lib/rbs/constant.rb +26 -0
- data/lib/rbs/constant_table.rb +150 -0
- data/lib/rbs/definition.rb +170 -0
- data/lib/rbs/definition_builder.rb +919 -0
- data/lib/rbs/environment.rb +281 -0
- data/lib/rbs/environment_loader.rb +136 -0
- data/lib/rbs/environment_walker.rb +124 -0
- data/lib/rbs/errors.rb +187 -0
- data/lib/rbs/location.rb +102 -0
- data/lib/rbs/method_type.rb +123 -0
- data/lib/rbs/namespace.rb +91 -0
- data/lib/rbs/parser.y +1344 -0
- data/lib/rbs/prototype/rb.rb +553 -0
- data/lib/rbs/prototype/rbi.rb +587 -0
- data/lib/rbs/prototype/runtime.rb +381 -0
- data/lib/rbs/substitution.rb +46 -0
- data/lib/rbs/test.rb +26 -0
- data/lib/rbs/test/errors.rb +61 -0
- data/lib/rbs/test/hook.rb +294 -0
- data/lib/rbs/test/setup.rb +58 -0
- data/lib/rbs/test/spy.rb +325 -0
- data/lib/rbs/test/test_helper.rb +183 -0
- data/lib/rbs/test/type_check.rb +254 -0
- data/lib/rbs/type_name.rb +70 -0
- data/lib/rbs/types.rb +936 -0
- data/lib/rbs/variance_calculator.rb +138 -0
- data/lib/rbs/vendorer.rb +47 -0
- data/lib/rbs/version.rb +3 -0
- data/lib/rbs/writer.rb +269 -0
- data/lib/ruby/signature.rb +7 -0
- data/rbs.gemspec +46 -0
- data/stdlib/abbrev/abbrev.rbs +60 -0
- data/stdlib/base64/base64.rbs +71 -0
- data/stdlib/benchmark/benchmark.rbs +372 -0
- data/stdlib/builtin/array.rbs +1997 -0
- data/stdlib/builtin/basic_object.rbs +280 -0
- data/stdlib/builtin/binding.rbs +177 -0
- data/stdlib/builtin/builtin.rbs +45 -0
- data/stdlib/builtin/class.rbs +145 -0
- data/stdlib/builtin/comparable.rbs +116 -0
- data/stdlib/builtin/complex.rbs +400 -0
- data/stdlib/builtin/constants.rbs +37 -0
- data/stdlib/builtin/data.rbs +5 -0
- data/stdlib/builtin/deprecated.rbs +2 -0
- data/stdlib/builtin/dir.rbs +413 -0
- data/stdlib/builtin/encoding.rbs +607 -0
- data/stdlib/builtin/enumerable.rbs +404 -0
- data/stdlib/builtin/enumerator.rbs +260 -0
- data/stdlib/builtin/errno.rbs +781 -0
- data/stdlib/builtin/errors.rbs +582 -0
- data/stdlib/builtin/exception.rbs +194 -0
- data/stdlib/builtin/false_class.rbs +40 -0
- data/stdlib/builtin/fiber.rbs +68 -0
- data/stdlib/builtin/fiber_error.rbs +12 -0
- data/stdlib/builtin/file.rbs +1076 -0
- data/stdlib/builtin/file_test.rbs +59 -0
- data/stdlib/builtin/float.rbs +696 -0
- data/stdlib/builtin/gc.rbs +243 -0
- data/stdlib/builtin/hash.rbs +1029 -0
- data/stdlib/builtin/integer.rbs +707 -0
- data/stdlib/builtin/io.rbs +683 -0
- data/stdlib/builtin/kernel.rbs +576 -0
- data/stdlib/builtin/marshal.rbs +161 -0
- data/stdlib/builtin/match_data.rbs +271 -0
- data/stdlib/builtin/math.rbs +369 -0
- data/stdlib/builtin/method.rbs +185 -0
- data/stdlib/builtin/module.rbs +1104 -0
- data/stdlib/builtin/nil_class.rbs +82 -0
- data/stdlib/builtin/numeric.rbs +409 -0
- data/stdlib/builtin/object.rbs +824 -0
- data/stdlib/builtin/proc.rbs +429 -0
- data/stdlib/builtin/process.rbs +1227 -0
- data/stdlib/builtin/random.rbs +267 -0
- data/stdlib/builtin/range.rbs +226 -0
- data/stdlib/builtin/rational.rbs +424 -0
- data/stdlib/builtin/rb_config.rbs +57 -0
- data/stdlib/builtin/regexp.rbs +1083 -0
- data/stdlib/builtin/ruby_vm.rbs +14 -0
- data/stdlib/builtin/signal.rbs +55 -0
- data/stdlib/builtin/string.rbs +1901 -0
- data/stdlib/builtin/string_io.rbs +284 -0
- data/stdlib/builtin/struct.rbs +40 -0
- data/stdlib/builtin/symbol.rbs +228 -0
- data/stdlib/builtin/thread.rbs +1108 -0
- data/stdlib/builtin/thread_group.rbs +23 -0
- data/stdlib/builtin/time.rbs +1047 -0
- data/stdlib/builtin/trace_point.rbs +290 -0
- data/stdlib/builtin/true_class.rbs +46 -0
- data/stdlib/builtin/unbound_method.rbs +153 -0
- data/stdlib/builtin/warning.rbs +17 -0
- data/stdlib/coverage/coverage.rbs +62 -0
- data/stdlib/csv/csv.rbs +773 -0
- data/stdlib/erb/erb.rbs +392 -0
- data/stdlib/find/find.rbs +40 -0
- data/stdlib/ipaddr/ipaddr.rbs +247 -0
- data/stdlib/json/json.rbs +335 -0
- data/stdlib/pathname/pathname.rbs +1093 -0
- data/stdlib/prime/integer-extension.rbs +23 -0
- data/stdlib/prime/prime.rbs +188 -0
- data/stdlib/securerandom/securerandom.rbs +9 -0
- data/stdlib/set/set.rbs +301 -0
- data/stdlib/tmpdir/tmpdir.rbs +53 -0
- metadata +292 -0
@@ -0,0 +1,607 @@
|
|
1
|
+
class Encoding < Object
|
2
|
+
# Returns the hash of available encoding alias and original encoding name.
|
3
|
+
#
|
4
|
+
# Encoding.aliases
|
5
|
+
# #=> {"BINARY"=>"ASCII-8BIT", "ASCII"=>"US-ASCII", "ANSI_X3.4-1986"=>"US-ASCII",
|
6
|
+
# "SJIS"=>"Shift_JIS", "eucJP"=>"EUC-JP", "CP932"=>"Windows-31J"}
|
7
|
+
def self.aliases: () -> ::Hash[String, String]
|
8
|
+
|
9
|
+
def self.compatible?: (untyped obj1, untyped obj2) -> Encoding?
|
10
|
+
|
11
|
+
# Returns default external encoding.
|
12
|
+
#
|
13
|
+
# The default external encoding is used by default for strings created
|
14
|
+
# from the following locations:
|
15
|
+
#
|
16
|
+
# - CSV
|
17
|
+
#
|
18
|
+
# - [File](https://ruby-doc.org/core-2.6.3/File.html) data read from
|
19
|
+
# disk
|
20
|
+
#
|
21
|
+
# - SDBM
|
22
|
+
#
|
23
|
+
# - StringIO
|
24
|
+
#
|
25
|
+
# - Zlib::GzipReader
|
26
|
+
#
|
27
|
+
# - Zlib::GzipWriter
|
28
|
+
#
|
29
|
+
# - [String\#inspect](https://ruby-doc.org/core-2.6.3/String.html#method-i-inspect)
|
30
|
+
#
|
31
|
+
# - [Regexp\#inspect](https://ruby-doc.org/core-2.6.3/Regexp.html#method-i-inspect)
|
32
|
+
#
|
33
|
+
# While strings created from these locations will have this encoding, the
|
34
|
+
# encoding may not be valid. Be sure to check
|
35
|
+
# [String\#valid\_encoding?](https://ruby-doc.org/core-2.6.3/String.html#method-i-valid_encoding-3F)
|
36
|
+
# .
|
37
|
+
#
|
38
|
+
# [File](https://ruby-doc.org/core-2.6.3/File.html) data written to disk
|
39
|
+
# will be transcoded to the default external encoding when written.
|
40
|
+
#
|
41
|
+
# The default external encoding is initialized by the locale or -E option.
|
42
|
+
def self.default_external: () -> Encoding
|
43
|
+
|
44
|
+
def self.default_external=: (String arg0) -> String
|
45
|
+
| (Encoding arg0) -> Encoding
|
46
|
+
|
47
|
+
# Returns default internal encoding. Strings will be transcoded to the
|
48
|
+
# default internal encoding in the following places if the default
|
49
|
+
# internal encoding is not nil:
|
50
|
+
#
|
51
|
+
# - CSV
|
52
|
+
#
|
53
|
+
# - Etc.sysconfdir and Etc.systmpdir
|
54
|
+
#
|
55
|
+
# - [File](https://ruby-doc.org/core-2.6.3/File.html) data read from
|
56
|
+
# disk
|
57
|
+
#
|
58
|
+
# - [File](https://ruby-doc.org/core-2.6.3/File.html) names from
|
59
|
+
# [Dir](https://ruby-doc.org/core-2.6.3/Dir.html)
|
60
|
+
#
|
61
|
+
# - [Integer\#chr](https://ruby-doc.org/core-2.6.3/Integer.html#method-i-chr)
|
62
|
+
#
|
63
|
+
# - [String\#inspect](https://ruby-doc.org/core-2.6.3/String.html#method-i-inspect)
|
64
|
+
# and
|
65
|
+
# [Regexp\#inspect](https://ruby-doc.org/core-2.6.3/Regexp.html#method-i-inspect)
|
66
|
+
#
|
67
|
+
# - Strings returned from Readline
|
68
|
+
#
|
69
|
+
# - Strings returned from SDBM
|
70
|
+
#
|
71
|
+
# - [Time\#zone](https://ruby-doc.org/core-2.6.3/Time.html#method-i-zone)
|
72
|
+
#
|
73
|
+
# - Values from [ENV](https://ruby-doc.org/core-2.6.3/ENV.html)
|
74
|
+
#
|
75
|
+
# - Values in ARGV including $PROGRAM\_NAME
|
76
|
+
#
|
77
|
+
# Additionally
|
78
|
+
# [String\#encode](https://ruby-doc.org/core-2.6.3/String.html#method-i-encode)
|
79
|
+
# and
|
80
|
+
# [String\#encode\!](https://ruby-doc.org/core-2.6.3/String.html#method-i-encode-21)
|
81
|
+
# use the default internal encoding if no encoding is given.
|
82
|
+
#
|
83
|
+
# The locale encoding (\_\_ENCODING\_\_), not
|
84
|
+
# [::default\_internal](Encoding.downloaded.ruby_doc#method-c-default_internal)
|
85
|
+
# , is used as the encoding of created strings.
|
86
|
+
#
|
87
|
+
# [::default\_internal](Encoding.downloaded.ruby_doc#method-c-default_internal)
|
88
|
+
# is initialized by the source file's internal\_encoding or -E option.
|
89
|
+
def self.default_internal: () -> Encoding?
|
90
|
+
|
91
|
+
def self.default_internal=: (String arg0) -> String?
|
92
|
+
| (Encoding arg0) -> Encoding?
|
93
|
+
| (nil arg0) -> nil
|
94
|
+
|
95
|
+
def self.find: (String | Encoding arg0) -> Encoding
|
96
|
+
|
97
|
+
def self.list: () -> ::Array[Encoding]
|
98
|
+
|
99
|
+
# Returns the list of available encoding names.
|
100
|
+
#
|
101
|
+
# Encoding.name_list
|
102
|
+
# #=> ["US-ASCII", "ASCII-8BIT", "UTF-8",
|
103
|
+
# "ISO-8859-1", "Shift_JIS", "EUC-JP",
|
104
|
+
# "Windows-31J",
|
105
|
+
# "BINARY", "CP932", "eucJP"]
|
106
|
+
def self.name_list: () -> ::Array[String]
|
107
|
+
|
108
|
+
# Returns whether ASCII-compatible or not.
|
109
|
+
#
|
110
|
+
# ```ruby
|
111
|
+
# Encoding::UTF_8.ascii_compatible? #=> true
|
112
|
+
# Encoding::UTF_16BE.ascii_compatible? #=> false
|
113
|
+
# ```
|
114
|
+
def ascii_compatible?: () -> bool
|
115
|
+
|
116
|
+
# Returns true for dummy encodings. A dummy encoding is an encoding for
|
117
|
+
# which character handling is not properly implemented. It is used for
|
118
|
+
# stateful encodings.
|
119
|
+
#
|
120
|
+
# ```ruby
|
121
|
+
# Encoding::ISO_2022_JP.dummy? #=> true
|
122
|
+
# Encoding::UTF_8.dummy? #=> false
|
123
|
+
# ```
|
124
|
+
def dummy?: () -> bool
|
125
|
+
|
126
|
+
def inspect: () -> String
|
127
|
+
|
128
|
+
# Returns the name of the encoding.
|
129
|
+
#
|
130
|
+
# ```ruby
|
131
|
+
# Encoding::UTF_8.name #=> "UTF-8"
|
132
|
+
# ```
|
133
|
+
def name: () -> String
|
134
|
+
|
135
|
+
# Returns the list of name and aliases of the encoding.
|
136
|
+
#
|
137
|
+
# ```ruby
|
138
|
+
# Encoding::WINDOWS_31J.names #=> ["Windows-31J", "CP932", "csWindows31J"]
|
139
|
+
# ```
|
140
|
+
def names: () -> ::Array[String]
|
141
|
+
|
142
|
+
def replicate: (String name) -> Encoding
|
143
|
+
|
144
|
+
# Returns the name of the encoding.
|
145
|
+
#
|
146
|
+
# ```ruby
|
147
|
+
# Encoding::UTF_8.name #=> "UTF-8"
|
148
|
+
# ```
|
149
|
+
def to_s: () -> String
|
150
|
+
end
|
151
|
+
|
152
|
+
Encoding::ANSI_X3_4_1968: Encoding
|
153
|
+
|
154
|
+
Encoding::ASCII: Encoding
|
155
|
+
|
156
|
+
Encoding::ASCII_8BIT: Encoding
|
157
|
+
|
158
|
+
Encoding::BIG5: Encoding
|
159
|
+
|
160
|
+
Encoding::BIG5_HKSCS: Encoding
|
161
|
+
|
162
|
+
Encoding::BIG5_HKSCS_2008: Encoding
|
163
|
+
|
164
|
+
Encoding::BIG5_UAO: Encoding
|
165
|
+
|
166
|
+
Encoding::BINARY: Encoding
|
167
|
+
|
168
|
+
Encoding::Big5: Encoding
|
169
|
+
|
170
|
+
Encoding::Big5_HKSCS: Encoding
|
171
|
+
|
172
|
+
Encoding::Big5_HKSCS_2008: Encoding
|
173
|
+
|
174
|
+
Encoding::Big5_UAO: Encoding
|
175
|
+
|
176
|
+
Encoding::CP1250: Encoding
|
177
|
+
|
178
|
+
Encoding::CP1251: Encoding
|
179
|
+
|
180
|
+
Encoding::CP1252: Encoding
|
181
|
+
|
182
|
+
Encoding::CP1253: Encoding
|
183
|
+
|
184
|
+
Encoding::CP1254: Encoding
|
185
|
+
|
186
|
+
Encoding::CP1255: Encoding
|
187
|
+
|
188
|
+
Encoding::CP1256: Encoding
|
189
|
+
|
190
|
+
Encoding::CP1257: Encoding
|
191
|
+
|
192
|
+
Encoding::CP1258: Encoding
|
193
|
+
|
194
|
+
Encoding::CP437: Encoding
|
195
|
+
|
196
|
+
Encoding::CP50220: Encoding
|
197
|
+
|
198
|
+
Encoding::CP50221: Encoding
|
199
|
+
|
200
|
+
Encoding::CP51932: Encoding
|
201
|
+
|
202
|
+
Encoding::CP65000: Encoding
|
203
|
+
|
204
|
+
Encoding::CP65001: Encoding
|
205
|
+
|
206
|
+
Encoding::CP737: Encoding
|
207
|
+
|
208
|
+
Encoding::CP775: Encoding
|
209
|
+
|
210
|
+
Encoding::CP850: Encoding
|
211
|
+
|
212
|
+
Encoding::CP852: Encoding
|
213
|
+
|
214
|
+
Encoding::CP855: Encoding
|
215
|
+
|
216
|
+
Encoding::CP857: Encoding
|
217
|
+
|
218
|
+
Encoding::CP860: Encoding
|
219
|
+
|
220
|
+
Encoding::CP861: Encoding
|
221
|
+
|
222
|
+
Encoding::CP862: Encoding
|
223
|
+
|
224
|
+
Encoding::CP863: Encoding
|
225
|
+
|
226
|
+
Encoding::CP864: Encoding
|
227
|
+
|
228
|
+
Encoding::CP865: Encoding
|
229
|
+
|
230
|
+
Encoding::CP866: Encoding
|
231
|
+
|
232
|
+
Encoding::CP869: Encoding
|
233
|
+
|
234
|
+
Encoding::CP874: Encoding
|
235
|
+
|
236
|
+
Encoding::CP878: Encoding
|
237
|
+
|
238
|
+
Encoding::CP932: Encoding
|
239
|
+
|
240
|
+
Encoding::CP936: Encoding
|
241
|
+
|
242
|
+
Encoding::CP949: Encoding
|
243
|
+
|
244
|
+
Encoding::CP950: Encoding
|
245
|
+
|
246
|
+
Encoding::CP951: Encoding
|
247
|
+
|
248
|
+
Encoding::CSWINDOWS31J: Encoding
|
249
|
+
|
250
|
+
Encoding::CsWindows31J: Encoding
|
251
|
+
|
252
|
+
Encoding::EBCDIC_CP_US: Encoding
|
253
|
+
|
254
|
+
Encoding::EMACS_MULE: Encoding
|
255
|
+
|
256
|
+
Encoding::EUCCN: Encoding
|
257
|
+
|
258
|
+
Encoding::EUCJP: Encoding
|
259
|
+
|
260
|
+
Encoding::EUCJP_MS: Encoding
|
261
|
+
|
262
|
+
Encoding::EUCKR: Encoding
|
263
|
+
|
264
|
+
Encoding::EUCTW: Encoding
|
265
|
+
|
266
|
+
Encoding::EUC_CN: Encoding
|
267
|
+
|
268
|
+
Encoding::EUC_JISX0213: Encoding
|
269
|
+
|
270
|
+
Encoding::EUC_JIS_2004: Encoding
|
271
|
+
|
272
|
+
Encoding::EUC_JP: Encoding
|
273
|
+
|
274
|
+
Encoding::EUC_JP_MS: Encoding
|
275
|
+
|
276
|
+
Encoding::EUC_KR: Encoding
|
277
|
+
|
278
|
+
Encoding::EUC_TW: Encoding
|
279
|
+
|
280
|
+
Encoding::Emacs_Mule: Encoding
|
281
|
+
|
282
|
+
Encoding::EucCN: Encoding
|
283
|
+
|
284
|
+
Encoding::EucJP: Encoding
|
285
|
+
|
286
|
+
Encoding::EucJP_ms: Encoding
|
287
|
+
|
288
|
+
Encoding::EucKR: Encoding
|
289
|
+
|
290
|
+
Encoding::EucTW: Encoding
|
291
|
+
|
292
|
+
Encoding::GB12345: Encoding
|
293
|
+
|
294
|
+
Encoding::GB18030: Encoding
|
295
|
+
|
296
|
+
Encoding::GB1988: Encoding
|
297
|
+
|
298
|
+
Encoding::GB2312: Encoding
|
299
|
+
|
300
|
+
Encoding::GBK: Encoding
|
301
|
+
|
302
|
+
Encoding::IBM037: Encoding
|
303
|
+
|
304
|
+
Encoding::IBM437: Encoding
|
305
|
+
|
306
|
+
Encoding::IBM737: Encoding
|
307
|
+
|
308
|
+
Encoding::IBM775: Encoding
|
309
|
+
|
310
|
+
Encoding::IBM850: Encoding
|
311
|
+
|
312
|
+
Encoding::IBM852: Encoding
|
313
|
+
|
314
|
+
Encoding::IBM855: Encoding
|
315
|
+
|
316
|
+
Encoding::IBM857: Encoding
|
317
|
+
|
318
|
+
Encoding::IBM860: Encoding
|
319
|
+
|
320
|
+
Encoding::IBM861: Encoding
|
321
|
+
|
322
|
+
Encoding::IBM862: Encoding
|
323
|
+
|
324
|
+
Encoding::IBM863: Encoding
|
325
|
+
|
326
|
+
Encoding::IBM864: Encoding
|
327
|
+
|
328
|
+
Encoding::IBM865: Encoding
|
329
|
+
|
330
|
+
Encoding::IBM866: Encoding
|
331
|
+
|
332
|
+
Encoding::IBM869: Encoding
|
333
|
+
|
334
|
+
Encoding::ISO2022_JP: Encoding
|
335
|
+
|
336
|
+
Encoding::ISO2022_JP2: Encoding
|
337
|
+
|
338
|
+
Encoding::ISO8859_1: Encoding
|
339
|
+
|
340
|
+
Encoding::ISO8859_10: Encoding
|
341
|
+
|
342
|
+
Encoding::ISO8859_11: Encoding
|
343
|
+
|
344
|
+
Encoding::ISO8859_13: Encoding
|
345
|
+
|
346
|
+
Encoding::ISO8859_14: Encoding
|
347
|
+
|
348
|
+
Encoding::ISO8859_15: Encoding
|
349
|
+
|
350
|
+
Encoding::ISO8859_16: Encoding
|
351
|
+
|
352
|
+
Encoding::ISO8859_2: Encoding
|
353
|
+
|
354
|
+
Encoding::ISO8859_3: Encoding
|
355
|
+
|
356
|
+
Encoding::ISO8859_4: Encoding
|
357
|
+
|
358
|
+
Encoding::ISO8859_5: Encoding
|
359
|
+
|
360
|
+
Encoding::ISO8859_6: Encoding
|
361
|
+
|
362
|
+
Encoding::ISO8859_7: Encoding
|
363
|
+
|
364
|
+
Encoding::ISO8859_8: Encoding
|
365
|
+
|
366
|
+
Encoding::ISO8859_9: Encoding
|
367
|
+
|
368
|
+
Encoding::ISO_2022_JP: Encoding
|
369
|
+
|
370
|
+
Encoding::ISO_2022_JP_2: Encoding
|
371
|
+
|
372
|
+
Encoding::ISO_2022_JP_KDDI: Encoding
|
373
|
+
|
374
|
+
Encoding::ISO_8859_1: Encoding
|
375
|
+
|
376
|
+
Encoding::ISO_8859_10: Encoding
|
377
|
+
|
378
|
+
Encoding::ISO_8859_11: Encoding
|
379
|
+
|
380
|
+
Encoding::ISO_8859_13: Encoding
|
381
|
+
|
382
|
+
Encoding::ISO_8859_14: Encoding
|
383
|
+
|
384
|
+
Encoding::ISO_8859_15: Encoding
|
385
|
+
|
386
|
+
Encoding::ISO_8859_16: Encoding
|
387
|
+
|
388
|
+
Encoding::ISO_8859_2: Encoding
|
389
|
+
|
390
|
+
Encoding::ISO_8859_3: Encoding
|
391
|
+
|
392
|
+
Encoding::ISO_8859_4: Encoding
|
393
|
+
|
394
|
+
Encoding::ISO_8859_5: Encoding
|
395
|
+
|
396
|
+
Encoding::ISO_8859_6: Encoding
|
397
|
+
|
398
|
+
Encoding::ISO_8859_7: Encoding
|
399
|
+
|
400
|
+
Encoding::ISO_8859_8: Encoding
|
401
|
+
|
402
|
+
Encoding::ISO_8859_9: Encoding
|
403
|
+
|
404
|
+
Encoding::KOI8_R: Encoding
|
405
|
+
|
406
|
+
Encoding::KOI8_U: Encoding
|
407
|
+
|
408
|
+
Encoding::MACCENTEURO: Encoding
|
409
|
+
|
410
|
+
Encoding::MACCROATIAN: Encoding
|
411
|
+
|
412
|
+
Encoding::MACCYRILLIC: Encoding
|
413
|
+
|
414
|
+
Encoding::MACGREEK: Encoding
|
415
|
+
|
416
|
+
Encoding::MACICELAND: Encoding
|
417
|
+
|
418
|
+
Encoding::MACJAPAN: Encoding
|
419
|
+
|
420
|
+
Encoding::MACJAPANESE: Encoding
|
421
|
+
|
422
|
+
Encoding::MACROMAN: Encoding
|
423
|
+
|
424
|
+
Encoding::MACROMANIA: Encoding
|
425
|
+
|
426
|
+
Encoding::MACTHAI: Encoding
|
427
|
+
|
428
|
+
Encoding::MACTURKISH: Encoding
|
429
|
+
|
430
|
+
Encoding::MACUKRAINE: Encoding
|
431
|
+
|
432
|
+
Encoding::MacCentEuro: Encoding
|
433
|
+
|
434
|
+
Encoding::MacCroatian: Encoding
|
435
|
+
|
436
|
+
Encoding::MacCyrillic: Encoding
|
437
|
+
|
438
|
+
Encoding::MacGreek: Encoding
|
439
|
+
|
440
|
+
Encoding::MacIceland: Encoding
|
441
|
+
|
442
|
+
Encoding::MacJapan: Encoding
|
443
|
+
|
444
|
+
Encoding::MacJapanese: Encoding
|
445
|
+
|
446
|
+
Encoding::MacRoman: Encoding
|
447
|
+
|
448
|
+
Encoding::MacRomania: Encoding
|
449
|
+
|
450
|
+
Encoding::MacThai: Encoding
|
451
|
+
|
452
|
+
Encoding::MacTurkish: Encoding
|
453
|
+
|
454
|
+
Encoding::MacUkraine: Encoding
|
455
|
+
|
456
|
+
Encoding::PCK: Encoding
|
457
|
+
|
458
|
+
Encoding::SHIFT_JIS: Encoding
|
459
|
+
|
460
|
+
Encoding::SJIS: Encoding
|
461
|
+
|
462
|
+
Encoding::SJIS_DOCOMO: Encoding
|
463
|
+
|
464
|
+
Encoding::SJIS_DoCoMo: Encoding
|
465
|
+
|
466
|
+
Encoding::SJIS_KDDI: Encoding
|
467
|
+
|
468
|
+
Encoding::SJIS_SOFTBANK: Encoding
|
469
|
+
|
470
|
+
Encoding::SJIS_SoftBank: Encoding
|
471
|
+
|
472
|
+
Encoding::STATELESS_ISO_2022_JP: Encoding
|
473
|
+
|
474
|
+
Encoding::STATELESS_ISO_2022_JP_KDDI: Encoding
|
475
|
+
|
476
|
+
Encoding::Shift_JIS: Encoding
|
477
|
+
|
478
|
+
Encoding::Stateless_ISO_2022_JP: Encoding
|
479
|
+
|
480
|
+
Encoding::Stateless_ISO_2022_JP_KDDI: Encoding
|
481
|
+
|
482
|
+
Encoding::TIS_620: Encoding
|
483
|
+
|
484
|
+
Encoding::UCS_2BE: Encoding
|
485
|
+
|
486
|
+
Encoding::UCS_4BE: Encoding
|
487
|
+
|
488
|
+
Encoding::UCS_4LE: Encoding
|
489
|
+
|
490
|
+
Encoding::US_ASCII: Encoding
|
491
|
+
|
492
|
+
Encoding::UTF8_DOCOMO: Encoding
|
493
|
+
|
494
|
+
Encoding::UTF8_DoCoMo: Encoding
|
495
|
+
|
496
|
+
Encoding::UTF8_KDDI: Encoding
|
497
|
+
|
498
|
+
Encoding::UTF8_MAC: Encoding
|
499
|
+
|
500
|
+
Encoding::UTF8_SOFTBANK: Encoding
|
501
|
+
|
502
|
+
Encoding::UTF8_SoftBank: Encoding
|
503
|
+
|
504
|
+
Encoding::UTF_16: Encoding
|
505
|
+
|
506
|
+
Encoding::UTF_16BE: Encoding
|
507
|
+
|
508
|
+
Encoding::UTF_16LE: Encoding
|
509
|
+
|
510
|
+
Encoding::UTF_32: Encoding
|
511
|
+
|
512
|
+
Encoding::UTF_32BE: Encoding
|
513
|
+
|
514
|
+
Encoding::UTF_32LE: Encoding
|
515
|
+
|
516
|
+
Encoding::UTF_7: Encoding
|
517
|
+
|
518
|
+
Encoding::UTF_8: Encoding
|
519
|
+
|
520
|
+
Encoding::UTF_8_HFS: Encoding
|
521
|
+
|
522
|
+
Encoding::UTF_8_MAC: Encoding
|
523
|
+
|
524
|
+
Encoding::WINDOWS_1250: Encoding
|
525
|
+
|
526
|
+
Encoding::WINDOWS_1251: Encoding
|
527
|
+
|
528
|
+
Encoding::WINDOWS_1252: Encoding
|
529
|
+
|
530
|
+
Encoding::WINDOWS_1253: Encoding
|
531
|
+
|
532
|
+
Encoding::WINDOWS_1254: Encoding
|
533
|
+
|
534
|
+
Encoding::WINDOWS_1255: Encoding
|
535
|
+
|
536
|
+
Encoding::WINDOWS_1256: Encoding
|
537
|
+
|
538
|
+
Encoding::WINDOWS_1257: Encoding
|
539
|
+
|
540
|
+
Encoding::WINDOWS_1258: Encoding
|
541
|
+
|
542
|
+
Encoding::WINDOWS_31J: Encoding
|
543
|
+
|
544
|
+
Encoding::WINDOWS_874: Encoding
|
545
|
+
|
546
|
+
Encoding::Windows_1250: Encoding
|
547
|
+
|
548
|
+
Encoding::Windows_1251: Encoding
|
549
|
+
|
550
|
+
Encoding::Windows_1252: Encoding
|
551
|
+
|
552
|
+
Encoding::Windows_1253: Encoding
|
553
|
+
|
554
|
+
Encoding::Windows_1254: Encoding
|
555
|
+
|
556
|
+
Encoding::Windows_1255: Encoding
|
557
|
+
|
558
|
+
Encoding::Windows_1256: Encoding
|
559
|
+
|
560
|
+
Encoding::Windows_1257: Encoding
|
561
|
+
|
562
|
+
Encoding::Windows_1258: Encoding
|
563
|
+
|
564
|
+
Encoding::Windows_31J: Encoding
|
565
|
+
|
566
|
+
Encoding::Windows_874: Encoding
|
567
|
+
|
568
|
+
class Encoding::Converter < Data
|
569
|
+
end
|
570
|
+
|
571
|
+
Encoding::Converter::AFTER_OUTPUT: Integer
|
572
|
+
|
573
|
+
Encoding::Converter::CRLF_NEWLINE_DECORATOR: Integer
|
574
|
+
|
575
|
+
Encoding::Converter::CR_NEWLINE_DECORATOR: Integer
|
576
|
+
|
577
|
+
Encoding::Converter::INVALID_MASK: Integer
|
578
|
+
|
579
|
+
Encoding::Converter::INVALID_REPLACE: Integer
|
580
|
+
|
581
|
+
Encoding::Converter::PARTIAL_INPUT: Integer
|
582
|
+
|
583
|
+
Encoding::Converter::UNDEF_HEX_CHARREF: Integer
|
584
|
+
|
585
|
+
Encoding::Converter::UNDEF_MASK: Integer
|
586
|
+
|
587
|
+
Encoding::Converter::UNDEF_REPLACE: Integer
|
588
|
+
|
589
|
+
Encoding::Converter::UNIVERSAL_NEWLINE_DECORATOR: Integer
|
590
|
+
|
591
|
+
Encoding::Converter::XML_ATTR_CONTENT_DECORATOR: Integer
|
592
|
+
|
593
|
+
Encoding::Converter::XML_ATTR_QUOTE_DECORATOR: Integer
|
594
|
+
|
595
|
+
Encoding::Converter::XML_TEXT_DECORATOR: Integer
|
596
|
+
|
597
|
+
class Encoding::CompatibilityError < EncodingError
|
598
|
+
end
|
599
|
+
|
600
|
+
class Encoding::ConverterNotFoundError < EncodingError
|
601
|
+
end
|
602
|
+
|
603
|
+
class Encoding::InvalidByteSequenceError < EncodingError
|
604
|
+
end
|
605
|
+
|
606
|
+
class Encoding::UndefinedConversionError < EncodingError
|
607
|
+
end
|