util: add git__isdigit()

This commit is contained in:
nulltoken 2012-07-04 16:24:09 +02:00
parent cab65c2b23
commit 98d6a1fdda

View File

@ -204,6 +204,11 @@ GIT_INLINE(bool) git__isalpha(int c)
return ((c >= 'A' && c <= 'Z') || (c >= 'a' && c <= 'z'));
}
GIT_INLINE(bool) git__isdigit(int c)
{
return (c >= '0' && c <= '9');
}
GIT_INLINE(bool) git__isspace(int c)
{
return (c == ' ' || c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == '\v');