From 98d6a1fdda5fa0605dee933930b5b7ddff4feb37 Mon Sep 17 00:00:00 2001 From: nulltoken Date: Wed, 4 Jul 2012 16:24:09 +0200 Subject: util: add git__isdigit() --- src/util.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/util.h') diff --git a/src/util.h b/src/util.h index adc665027..abdd543cc 100644 --- a/src/util.h +++ b/src/util.h @@ -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'); -- cgit v1.2.3