From e76b1a11ca8eace6ee592722255195e2fe02ecd5 Mon Sep 17 00:00:00 2001 From: usa Date: Fri, 26 Sep 2008 02:07:19 +0000 Subject: * transcode.c, include/ruby/encoding.c (rb_transcode_convertible): new function. checking the existance of converter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 2c7f105ec3..b6ac57418c 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -209,6 +209,7 @@ typedef enum { typedef struct rb_econv_t rb_econv_t; VALUE rb_str_transcode(VALUE str, VALUE to, int ecflags, VALUE ecopts); +int rb_transcode_convertible(const char* from_encoding, const char* to_encoding); int rb_econv_prepare_opts(VALUE opthash, VALUE *ecopts); -- cgit v1.2.3