summaryrefslogtreecommitdiff
path: root/NEWS
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-18 12:48:26 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-04-18 12:48:26 +0000
commit609a6ebac54746adc36422dce417cdb02d126886 (patch)
treead9b669dc20d643ca35a18e76f9c4e96ec0f845f /NEWS
parent95013cd5c0196f7a7fb0261594dcb74e3588af42 (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--NEWS5
1 files changed, 5 insertions, 0 deletions
diff --git a/NEWS b/NEWS
index f1f7e66758..d7e13216a5 100644
--- a/NEWS
+++ b/NEWS
@@ -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.