зеркало из https://github.com/github/ruby.git
* string.c (rb_str_drop_bytes): new function to drop first bytes.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18541 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
26bc383ef8
Коммит
f65719e5c6
|
@ -1,6 +1,6 @@
|
|||
Tue Aug 12 19:07:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
Tue Aug 12 19:08:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* 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 <ko1@atdot.net>
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
2
string.c
2
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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче