diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 06:57:19 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-10-04 06:57:19 +0000 |
commit | 19dee8af57634c5813286ffbb63cc82611748378 (patch) | |
tree | 0683f9609b4761db95c734f093f55459778cd1d1 /include | |
parent | 612b2ed6a751629b2809e58a8f42a56e8690e8c7 (diff) | |
download | ruby-19dee8af57634c5813286ffbb63cc82611748378.tar.gz |
* encoding.c (rb_obj_encoding): returns encoding of the given object.
* re.c (Init_Regexp): new method Regexp#encoding.
* string.c (str_encoding): moved to encoding.c
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13613 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 36cf110cdb..715c6f6d2c 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -50,6 +50,7 @@ void rb_enc_copy(VALUE, VALUE); VALUE rb_enc_str_new(const char*, long len, rb_encoding*); long rb_enc_strlen(const char*, const char*, rb_encoding*); char* rb_enc_nth(const char*, const char*, int, rb_encoding*); +VALUE rb_obj_encoding(VALUE); /* index -> rb_encoding */ rb_encoding* rb_enc_from_index(int idx); |