From bc0efbc9cd875ef4582cfc421297ec7cfbbfcb78 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 24 Aug 2008 03:22:43 +0000 Subject: * include/ruby/encoding.h (rb_econv_substr_append): renamed from rb_econv_string. (rb_econv_str_convert): declared. (rb_econv_substr_convert): declared. (rb_econv_str_append): declared. * io.c (io_fwrite): use rb_econv_str_convert instead of rb_econv_string. * transcode.c (rb_econv_substr_append): renamed from rb_econv_string. (rb_econv_str_append): new function. (rb_econv_substr_convert): ditto. (rb_econv_str_convert): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 748c8cff53..9336e6d346 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -274,7 +274,10 @@ void rb_econv_putback(rb_econv_t *ec, unsigned char *p, int n); /* returns corresponding stateless encoding, or NULL if not stateful. */ const char *rb_econv_stateless_encoding(const char *stateful_enc); -VALUE rb_econv_string(rb_econv_t *ec, VALUE src, long off, long len, VALUE dst, int flags); +VALUE rb_econv_str_convert(rb_econv_t *ec, VALUE src, int flags); +VALUE rb_econv_substr_convert(rb_econv_t *ec, VALUE src, long byteoff, long bytesize, int flags); +VALUE rb_econv_str_append(rb_econv_t *ec, VALUE src, VALUE dst, int flags); +VALUE rb_econv_substr_append(rb_econv_t *ec, VALUE src, long byteoff, long bytesize, VALUE dst, int flags); void rb_econv_binmode(rb_econv_t *ec); -- cgit v1.2.3