diff options
-rw-r--r-- | ChangeLog | 7 | ||||
-rw-r--r-- | include/ruby/encoding.h | 1 | ||||
-rw-r--r-- | include/ruby/intern.h | 2 |
3 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,10 @@ +Sat Jan 26 09:30:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * include/ruby/encoding.h (rb_usascii_encindex): added prototype. + + * include/ruby/intern.h (rb_usascii_str_new, rb_usascii_str_new2): + ditto. + Sat Jan 26 09:17:13 2008 NARUSE, Yui <naruse@ruby-lang.org> * string.c (rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h index 76ce8597d7..bebf13bb42 100644 --- a/include/ruby/encoding.h +++ b/include/ruby/encoding.h @@ -163,6 +163,7 @@ rb_encoding *rb_utf8_encoding(void); rb_encoding *rb_usascii_encoding(void); rb_encoding *rb_locale_encoding(void); rb_encoding *rb_default_external_encoding(void); +int rb_usascii_encindex(void); VALUE rb_enc_default_external(void); void rb_enc_set_default_external(VALUE encoding); VALUE rb_locale_charmap(VALUE klass); diff --git a/include/ruby/intern.h b/include/ruby/intern.h index e552c1f0e0..141cf94c24 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -499,6 +499,8 @@ VALUE rb_tainted_str_new2(const char*); VALUE rb_str_buf_new(long); VALUE rb_str_buf_new2(const char*); VALUE rb_str_tmp_new(long); +VALUE rb_usascii_str_new(const char*, long); +VALUE rb_usascii_str_new2(const char*); void rb_str_free(VALUE); void rb_str_shared_replace(VALUE, VALUE); VALUE rb_str_buf_append(VALUE, VALUE); |