Tasmota/lib/ArduinoJson-5.13.4/src/ArduinoJson/Polyfills/isInteger.hpp
Theo Arends da704f4ecb Revert "Prep release 8.4.0"
This reverts commit f14f1d7798.
2020-07-29 16:13:53 +02:00

20 lines
370 B
C++

// ArduinoJson - arduinojson.org
// Copyright Benoit Blanchon 2014-2018
// MIT License
#pragma once
#include "./ctype.hpp"
namespace ArduinoJson {
namespace Internals {
inline bool isInteger(const char* s) {
if (!s || !*s) return false;
if (issign(*s)) s++;
while (isdigit(*s)) s++;
return *s == '\0';
}
} // namespace Internals
} // namespace ArduinoJson