Minh Nguyen / ArduinoJson
Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers ArduinoStringReader.hpp Source File

ArduinoStringReader.hpp

00001 // ArduinoJson - arduinojson.org
00002 // Copyright Benoit Blanchon 2014-2021
00003 // MIT License
00004 
00005 #pragma once
00006 
00007 namespace ARDUINOJSON_NAMESPACE {
00008 
00009 template <typename TSource>
00010 struct Reader<TSource,
00011               typename enable_if<is_base_of< ::String, TSource>::value>::type>
00012     : BoundedReader<const char*> {
00013   explicit Reader(const ::String& s)
00014       : BoundedReader<const char*>(s.c_str(), s.length()) {}
00015 };
00016 
00017 }  // namespace ARDUINOJSON_NAMESPACE