mirror of
https://github.com/logicog/RTLPlayground.git
synced 2026-08-30 14:52:51 +08:00
fix: isletter(), make everything lowercase.
This commit is contained in:
+4
-3
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user