diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-25 13:25:34 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-25 13:25:34 +0000 |
commit | 55a70c6f92a6e23ffa77a2ecce9648370a13cc22 (patch) | |
tree | 0f500dea348992d8bf6af2ac546e74925e60cced /variable.c | |
parent | 3fdecddad2e5d0256fac486613add7fe468a22f0 (diff) | |
download | ruby-55a70c6f92a6e23ffa77a2ecce9648370a13cc22.tar.gz ruby-55a70c6f92a6e23ffa77a2ecce9648370a13cc22.tar.xz ruby-55a70c6f92a6e23ffa77a2ecce9648370a13cc22.zip |
* include/ruby/encoding.h (rb_enc_str_asciionly_p): declared.
(rb_enc_str_asciicompat_p): defined.
* re.c (rb_reg_initialize_str): use rb_enc_str_asciionly_p.
(rb_reg_quote): return ascii-8bit string if the argument is
ascii-only to generate encoding generic regexp if possible.
(rb_reg_s_union): fix encoding handling. [ruby-dev:32094]
* string.c (rb_enc_str_asciionly_p): defined.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'variable.c')
0 files changed, 0 insertions, 0 deletions