1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/include
akr c82aee31b4 * include/ruby/encoding.h (rb_econv_result_t): moved from
transcode_data.h.
  (rb_econv_elem_t): ditto.
  (rb_econv_t): ditto.  source_encoding and destination_encoding field
  is added.
  (rb_econv_open): declared.
  (rb_econv_convert): ditto.
  (rb_econv_close): ditto.

* transcode.c (rb_econv_open_by_transcoder_entries): initialize
  source_encoding and destination_encoding field as NULL.
  (rb_econv_open): make it external linkage.
  (rb_econv_close): ditto.
  (rb_econv_convert): ditto.  renamed from rb_econv_conv.
  (make_encoding): new function.
  (econv_init): use make_encoding and store rb_encoding* in
  rb_econv_t.
  (econv_source_encoding): new method
  Encoding::Converter#source_encoding.
  (econv_destination_encoding): new method
  Encoding::Converter#destination_encoding.



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18625 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-14 14:28:10 +00:00
..
ruby * include/ruby/encoding.h (rb_econv_result_t): moved from 2008-08-14 14:28:10 +00:00
ruby.h * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that 2008-07-12 13:30:46 +00:00
rubyio.h * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that 2008-07-12 13:30:46 +00:00
rubysig.h * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that 2008-07-12 13:30:46 +00:00