summaryrefslogtreecommitdiff
path: root/include/lib/ArduinoJson/Polyfills/ctype.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/lib/ArduinoJson/Polyfills/ctype.hpp')
-rw-r--r--include/lib/ArduinoJson/Polyfills/ctype.hpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/lib/ArduinoJson/Polyfills/ctype.hpp b/include/lib/ArduinoJson/Polyfills/ctype.hpp
new file mode 100644
index 0000000..bd7a8cc
--- /dev/null
+++ b/include/lib/ArduinoJson/Polyfills/ctype.hpp
@@ -0,0 +1,20 @@
+// ArduinoJson - https://arduinojson.org
+// Copyright Benoit Blanchon 2014-2021
+// MIT License
+
+#pragma once
+
+#include <ArduinoJson/Namespace.hpp>
+
+namespace ARDUINOJSON_NAMESPACE {
+
+#ifndef isdigit
+inline bool isdigit(char c) {
+ return '0' <= c && c <= '9';
+}
+#endif
+
+inline bool issign(char c) {
+ return '-' == c || c == '+';
+}
+} // namespace ARDUINOJSON_NAMESPACE