diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-22 01:57:08 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-22 01:57:08 +0000 |
commit | 00befb4b3f58f11343ec0e84b76ec7075a84a839 (patch) | |
tree | 28f08bacc38f1d81b78c5659939a72001424f526 /include/ruby | |
parent | b2c81746ace2e7a2ab5433e59b585776d945499a (diff) | |
download | ruby-00befb4b3f58f11343ec0e84b76ec7075a84a839.tar.gz |
* encoding.c (rb_enc_compatible): check if two objects have compatible
encodings.
* encoding.c (enc_compatible_p): added Encoding.compatible?.
* include/ruby/encoding.h (rb_enc_compatible): prototype.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-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 0d02c88459..aaea7b3ca5 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -44,6 +44,7 @@ int rb_enc_find_index(const char *name); int rb_to_encoding_index(VALUE); rb_encoding* rb_to_encoding(VALUE); rb_encoding* rb_enc_get(VALUE); +rb_encoding* rb_enc_compatible(VALUE,VALUE); rb_encoding* rb_enc_check(VALUE,VALUE); void rb_enc_associate_index(VALUE, int); void rb_enc_associate(VALUE, rb_encoding*); |