Util: add ffCharIsDigit and use it

This commit is contained in:
Carter Li
2024-05-28 15:34:59 +08:00
parent 5fa18a8a1c
commit 3ba899261f
10 changed files with 20 additions and 21 deletions
+5
View File
@@ -74,3 +74,8 @@ static inline bool ffCharIsEnglishAlphabet(char c)
{
return ('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z');
}
static inline bool ffCharIsDigit(char c)
{
return '0' <= c && c <= '9';
}