mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-08 12:19:37 +03:00
17 lines
230 B
C++
17 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;
|
|
}
|