mirror of
https://git.proxmox.com/git/libgit2
synced 2025-12-28 11:41:14 +00:00
util: add git__isdigit()
This commit is contained in:
parent
cab65c2b23
commit
98d6a1fdda
@ -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');
|
||||
|
||||
Loading…
Reference in New Issue
Block a user