diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-18 12:48:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-18 12:48:26 +0000 |
commit | 609a6ebac54746adc36422dce417cdb02d126886 (patch) | |
tree | ad9b669dc20d643ca35a18e76f9c4e96ec0f845f /NEWS | |
parent | 95013cd5c0196f7a7fb0261594dcb74e3588af42 (diff) |
string.c: share middle of a string
* string.c (rb_str_new_frozen): consider the shared string at
middle.
* string.c (rb_str_subseq, rb_str_substr, str_byte_substr): share
middle of a string.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45628 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -107,3 +107,8 @@ with all sufficient information, see the ChangeLog file. Ruby's heaps. * 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 NULL-terminated, `StringValueCStr()` is needed calling to obtain a + NULL-terminated C string. |