1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* encoding.c: (rb_tolower, rb_toupper): body was exchanged.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14867 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2008-01-03 09:40:00 +00:00
parent b1d373308f
commit 059fe7997e
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
Thu Jan 3 18:39:12 2008 Tanaka Akira <akr@fsij.org>
* encoding.c: (rb_tolower, rb_toupper): body was exchanged.
Thu Jan 3 17:54:01 2008 Tanaka Akira <akr@fsij.org>
* regenc.h (onigenc_ascii_is_code_ctype): put back.

View file

@ -1039,12 +1039,12 @@ int rb_isxdigit(int c) { return ctype_test(c, ONIGENC_CTYPE_XDIGIT); }
int
rb_tolower(int c)
{
return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c;
return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c;
}
int
rb_toupper(int c)
{
return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_LOWER_CASE(c) : c;
return rb_isascii(c) ? ONIGENC_ASCII_CODE_TO_UPPER_CASE(c) : c;
}