ruby--ruby/include
akr b2e60b2ce7 * 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@14013 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-25 13:25:34 +00:00
..
ruby * include/ruby/encoding.h (rb_enc_str_asciionly_p): declared. 2007-11-25 13:25:34 +00:00
ruby.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
rubyio.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00
rubysig.h * include/ruby: moved public headers. 2007-06-10 03:06:15 +00:00