mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 16:14:05 +01:00
20 lines
381 B
C++
20 lines
381 B
C++
// ArduinoJson - arduinojson.org
|
|
// Copyright Benoit Blanchon 2014-2018
|
|
// MIT License
|
|
|
|
#pragma once
|
|
|
|
#include "../Polyfills/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
|