From 6b7eba512d5e0baf4af852256859a6a139135ac9 Mon Sep 17 00:00:00 2001 From: nobu Date: Thu, 4 Oct 2007 06:57:19 +0000 Subject: * 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: http://svn.ruby-lang.org/repos/ruby/trunk@13613 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- include/ruby/encoding.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ruby') diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 36cf110cd..715c6f6d2 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); -- cgit