* include/ruby/encoding.h (ENC_CODERANGE_VALID): rename from

ENC_CODERANGE_8BIT.

* string.c (rb_enc_str_coderange): follow the renaming.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2007-12-17 05:07:37 +00:00
parent 5a41626dea
commit 3f07e548fc
3 changed files with 10 additions and 3 deletions

View file

@ -106,7 +106,7 @@ rb_enc_str_coderange(VALUE str)
rb_encoding *enc = rb_enc_get(str);
if (!rb_enc_asciicompat(enc)) {
cr = ENC_CODERANGE_8BIT;
cr = ENC_CODERANGE_VALID;
ENC_CODERANGE_SET(str, cr);
return cr;
}
@ -119,7 +119,7 @@ rb_enc_str_coderange(VALUE str)
int c = (unsigned char)*p;
if (!rb_enc_isascii(c, enc)) {
cr = ENC_CODERANGE_8BIT;
cr = ENC_CODERANGE_VALID;
break;
}
p++;