summaryrefslogtreecommitdiff
path: root/src/cairoint.h
diff options
context:
space:
mode:
authorAdrian Johnson <ajohnson@redneon.com>2021-07-18 08:42:16 +0930
committerAdrian Johnson <ajohnson@redneon.com>2021-07-18 16:10:59 +0930
commit30a0ae56d8eaf7735d6f4a8a889e9c54bc0debc1 (patch)
tree77adef77cb9ad2229340c9c0dec7ec76c5d156c9 /src/cairoint.h
parenta6f7c20befb1708eca64288691fde3084f5a8b43 (diff)
downloadcairo-30a0ae56d8eaf7735d6f4a8a889e9c54bc0debc1.tar.gz
Create cairo version of isxdigit()
Fixes #335
Diffstat (limited to 'src/cairoint.h')
-rw-r--r--src/cairoint.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h
index 03ca09c10..832d80f3f 100644
--- a/src/cairoint.h
+++ b/src/cairoint.h
@@ -287,6 +287,12 @@ _cairo_isdigit (int c)
}
static inline int cairo_const
+_cairo_isxdigit (int c)
+{
+ return ((c >= '0' && c <= '9') || (c >= 'a' && c <= 'f') || (c >= 'A' && c <= 'F'));
+}
+
+static inline int cairo_const
_cairo_isalpha (int c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z');