diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 02:07:19 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-26 02:07:19 +0000 |
commit | 87ef7c5530ae2e65c1485dd6d432f9c8c459f36e (patch) | |
tree | a143dfc9f48b6c3934008b0c86509ae053922182 /include | |
parent | 7356dc8e49f1cf8a205e81e987962da9cbe30ea9 (diff) | |
download | ruby-87ef7c5530ae2e65c1485dd6d432f9c8c459f36e.tar.gz ruby-87ef7c5530ae2e65c1485dd6d432f9c8c459f36e.tar.xz ruby-87ef7c5530ae2e65c1485dd6d432f9c8c459f36e.zip |
* transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
new function. checking the existance of converter.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@19565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/encoding.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 2c7f105ec..b6ac57418 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); |