diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-15 14:40:00 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-09-15 14:40:00 +0000 |
commit | b121e47b4478ea410274e2611472f7c594016508 (patch) | |
tree | 7c8f145c9850a5b62239f32bf07ca92a01de303d /spec | |
parent | e0f064cf3c4f5b59d438e96b5fb002a984b78329 (diff) | |
download | ruby-b121e47b4478ea410274e2611472f7c594016508.tar.gz |
* string.c (rb_str_squeeze_bang): specialized for 7bit characters in
ASCII compatible strings.
* string.c (rb_str_count): ditto.
* string.c (tr_trans): preserve 7bit/valid coderange flag.
* string.c (rb_str_squeeze_bang): preserve previous coderange value.
* string.c (rb_str_lstrip_bang): ditto.
* string.c (rb_str_rstrip_bang): ditto.
* encoding.c (rb_default_external_encoding): preserve
default_external_encoding in a static variable.
* string.c (single_byte_optimizable): check coderange first, to
reduce number of calling rb_enc_from_index().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'spec')
0 files changed, 0 insertions, 0 deletions