mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (rb_str_chomp_bang): defer rb_str_modify() to actual
modify point. other methods, replace, tr, delete, squeeze, lstrip, and rstrip as well. * string.c (rb_str_rstrip_bang): remove trailing '\0' at the end of string. * string.c (rb_str_lstrip_bang): do not strip '\0' from the left. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
baf3f1cbac
commit
dbe85f1ef0
4 changed files with 29 additions and 15 deletions
2
st.h
2
st.h
|
|
@ -6,7 +6,7 @@
|
|||
|
||||
#define ST_INCLUDED
|
||||
|
||||
typedef long st_data_t;
|
||||
typedef unsigned long st_data_t;
|
||||
#define ST_DATA_T_DEFINED
|
||||
|
||||
typedef struct st_table st_table;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue