diff --git a/ChangeLog b/ChangeLog index b6eddbd944..48917ab7d8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,6 @@ -Tue Aug 12 19:07:02 2008 Nobuyoshi Nakada +Tue Aug 12 19:08:42 2008 Nobuyoshi Nakada - * string.c (rb_str_drop): new function to drop first bytes. + * string.c (rb_str_drop_bytes): new function to drop first bytes. Tue Aug 12 18:58:48 2008 Koichi Sasada diff --git a/include/ruby/intern.h b/include/ruby/intern.h index fb5e1380f3..df9354918a 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -580,7 +580,7 @@ int rb_str_hash_cmp(VALUE,VALUE); int rb_str_comparable(VALUE, VALUE); int rb_str_cmp(VALUE, VALUE); VALUE rb_str_equal(VALUE str1, VALUE str2); -VALUE rb_str_drop(VALUE, long); +VALUE rb_str_drop_bytes(VALUE, long); void rb_str_update(VALUE, long, long, VALUE); VALUE rb_str_inspect(VALUE); VALUE rb_str_dump(VALUE); diff --git a/string.c b/string.c index fbe6ea88bb..6742e04a11 100644 --- a/string.c +++ b/string.c @@ -2830,7 +2830,7 @@ rb_str_aref_m(int argc, VALUE *argv, VALUE str) } VALUE -rb_str_drop(VALUE str, long len) +rb_str_drop_bytes(VALUE str, long len) { char *ptr = RSTRING_PTR(str); long olen = RSTRING_LEN(str), nlen;