mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
Fix by Royce3 to make _tolower() and _toupper() behave like their
MS counterparts svn path=/trunk/; revision=4113
This commit is contained in:
@@ -20,9 +20,7 @@ int towlower(wint_t c)
|
||||
|
||||
int _tolower(int c)
|
||||
{
|
||||
if (_isctype (c, _UPPER))
|
||||
return (c - ('A' - 'a'));
|
||||
return(c);
|
||||
return (c - ('A' - 'a'));
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -31,9 +29,7 @@ int towupper(wint_t);
|
||||
|
||||
wchar_t _towlower(wchar_t c)
|
||||
{
|
||||
if (iswctype (c, _UPPER))
|
||||
return (c - (L'A' - L'a'));
|
||||
return(c);
|
||||
return (c - (L'A' - L'a'));
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
@@ -20,17 +20,13 @@ wchar_t towupper(wchar_t c)
|
||||
|
||||
int _toupper(int c)
|
||||
{
|
||||
if (_isctype (c, _LOWER))
|
||||
return (c + ('A' - 'a'));
|
||||
return(c);
|
||||
return (c + ('A' - 'a'));
|
||||
}
|
||||
|
||||
/*
|
||||
wchar_t _towupper(wchar_t c)
|
||||
{
|
||||
if (iswctype (c, _LOWER))
|
||||
return (c + (L'A' - L'a'));
|
||||
return(c);
|
||||
return (c + (L'A' - L'a'));
|
||||
}
|
||||
*/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user