diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-31 10:39:20 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-31 10:39:20 +0000 |
commit | ca122fa53bdfe48378949b23701c19e37cc158f8 (patch) | |
tree | 16fb7ee59e9db67ff38333120a6917d431a40de3 /lib | |
parent | 1137af8a03b92b51ccc22b26dddd61586c4f08a0 (diff) | |
download | ruby-ca122fa53bdfe48378949b23701c19e37cc158f8.tar.gz |
* string.c (IS_7BIT): removed.
(single_byte_optimizable): new function to test optimizationability
using single byte string.
(str_strlen): use single_byte_optimizable instead of
is_ascii_string.
(str_nth): rename argument: asc -> singlebyte.
(str_offset): ditto.
(rb_str_substr): use single_byte_optimizable instead of IS_7BIT.
(rb_str_index): ditto.
(rb_str_rindex): ditto.
(rb_str_splice): ditto.
(rb_str_justify): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14813 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions