From d9ffec943c0608523135d73c6b7c348a9b02a8a5 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 12 Aug 2008 10:08:48 +0000 Subject: * string.c (rb_str_drop_bytes): new function to drop first bytes. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@18541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 4 ++-- include/ruby/intern.h | 2 +- string.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index b6eddbd94..48917ab7d 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 fb5e1380f..df9354918 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 fbe6ea88b..6742e04a1 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; -- cgit