// Copyright Benoit Blanchon 2014-2016 // MIT License // // Arduino JSON library // https://github.com/bblanchon/ArduinoJson // If you like this project, please add a star! #pragma once #include namespace ArduinoJson { namespace Internals { template TFloat parse(const char *); template <> inline float parse(const char *s) { return static_cast(strtod(s, NULL)); } template <> inline double parse(const char *s) { return strtod(s, NULL); } template <> inline long parse(const char *s) { return strtol(s, NULL, 10); } template <> inline int parse(const char *s) { return atoi(s); } #if ARDUINOJSON_USE_LONG_LONG template <> inline long long parse(const char *s) { return strtoll(s, NULL, 10); } #endif #if ARDUINOJSON_USE_INT64 template <> inline __int64 parse<__int64>(const char *s) { return _strtoi64(s, NULL, 10); } #endif } }