summaryrefslogtreecommitdiffstats
path: root/include/ruby
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-22 01:57:08 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-10-22 01:57:08 +0000
commit4de01856bbc927928f46f945a3566a748460006b (patch)
tree28f08bacc38f1d81b78c5659939a72001424f526 /include/ruby
parente5b07a78dfcce99ddc3bdac4b3b0a853583a0cd2 (diff)
downloadruby-4de01856bbc927928f46f945a3566a748460006b.tar.gz
ruby-4de01856bbc927928f46f945a3566a748460006b.tar.xz
ruby-4de01856bbc927928f46f945a3566a748460006b.zip
* 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: http://svn.ruby-lang.org/repos/ruby/trunk@13750 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/encoding.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 0d02c8845..aaea7b3ca 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*);