diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-05 06:05:14 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-11-05 06:05:14 +0000 |
commit | a707ab4bc8a29241440f56696098efa2f7f3ff45 (patch) | |
tree | 585d88e01e027ee56f1ac6a4c3851ab79c25fc5c /NEWS | |
parent | 7fecd1e75d80131c36d6615c38a6b869dfa81054 (diff) | |
download | ruby-a707ab4bc8a29241440f56696098efa2f7f3ff45.tar.gz |
string.c: no terminator
* string.c (rb_str_{,l,r}strip_bang): rb_str_subseq() will not
NUL-terminate the result string, in the future, so it will not
be needed in other cases.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48280 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -290,10 +290,10 @@ with all sufficient information, see the ChangeLog file. * rb_str_cat_cstr() added. This is same as `rb_str_cat2()`. -* `rb_str_substr()` and `rb_str_subseq()` now share middle of a string, - but not only the end of a string. Therefore, result strings may not - be NUL-terminated, `StringValueCStr()` is needed calling to obtain a - NUL-terminated C string. +* `rb_str_substr()` and `rb_str_subseq()` will share middle of a string, + but not only the end of a string, in the futre. Therefore, result + strings may not be NUL-terminated, `StringValueCStr()` is needed + calling to obtain a NUL-terminated C string. * rb_tracepoint_new() supports new internal events accessible only from C: * RUBY_INTERNAL_EVENT_GC_ENTER |