Files
ArduinoJson/JsonGenerator/EscapedString.h
2014-08-01 15:27:58 +02:00

34 lines
617 B
C++

/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "Print.h"
namespace ArduinoJson
{
namespace Internals
{
class EscapedString
{
public:
EscapedString(const char* s)
: rawString(s)
{
}
size_t printTo(Print& p) const
{
return printTo(rawString, p);
}
private:
const char* rawString;
static size_t printTo(const char*, Print&);
};
}
}