diff options
| author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-25 00:43:23 +0000 |
|---|---|---|
| committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-25 00:43:23 +0000 |
| commit | 04d026a7a7ce04b27730b92900d0660f91918bfc (patch) | |
| tree | 5d38c96159a20b86a8007af522a0a3e3df181109 /ChangeLog | |
| parent | 920625868b76233b553378a9942001034ef523e9 (diff) | |
| download | ruby-04d026a7a7ce04b27730b92900d0660f91918bfc.tar.gz ruby-04d026a7a7ce04b27730b92900d0660f91918bfc.tar.xz ruby-04d026a7a7ce04b27730b92900d0660f91918bfc.zip | |
* string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p().
* string.c (rb_str_replace): avoid redundant calling rb_str_new4().
* string.c (str_replace): factor out replacement from
rb_str_replace() without type check nor discarding the
destination contents.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ChangeLog')
| -rw-r--r-- | ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -1,3 +1,13 @@ +Mon May 25 09:34:09 2009 Yukihiro Matsumoto <matz@ruby-lang.org> + + * string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p(). + + * string.c (rb_str_replace): avoid redundant calling rb_str_new4(). + + * string.c (str_replace): factor out replacement from + rb_str_replace() without type check nor discarding the + destination contents. + Mon May 25 08:06:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org> * string.c (rb_str_partition): should use the converted result. a |
