fix: isletter(), make everything lowercase.

This commit is contained in:
René van Dorst
2025-09-08 18:54:48 +02:00
parent 7a2e568fcc
commit 455d2e28d6
+4 -3
View File
@@ -62,12 +62,13 @@ inline uint8_t isletter(uint8_t l)
{
// return (l >= 'a' && l <= 'z') || (l >= 'A' && l <= 'Z');
// Make it upper case
// Make it lowercase
l |= 0x20;
l -= 'A';
return (l <= ('Z'-'A'));
l -= 'a';
return (l <= ('z'-'a'));
}
inline uint8_t isnumber(uint8_t l)
{
// return (l >= '0' && l <= '9');