mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
16 lines
230 B
C++
16 lines
230 B
C++
#include <ctype.h>
|
|
#include <string.h>
|
|
|
|
int __tolower(int c)
|
|
{
|
|
if (c >= 'A' && c <= 'Z')
|
|
return c | 0x20;
|
|
return c;
|
|
}
|
|
|
|
int __toupper(int c)
|
|
{
|
|
if (c >= 'a' && c <= 'z')
|
|
return c & ~0x20;
|
|
return c;
|
|
}
|