Extracted class EscapedString

This commit is contained in:
Benoît Blanchon
2014-07-07 13:38:35 +02:00
parent adb8fa4d44
commit 1b62502b36
5 changed files with 100 additions and 54 deletions

View File

@ -0,0 +1,24 @@
/*
* Arduino JSON library
* Benoit Blanchon 2014 - MIT License
*/
#pragma once
#include "Print.h"
class EscapedString
{
public:
EscapedString(const char* s)
: rawString(s)
{
}
size_t printTo(Print&) const;
private:
const char* rawString;
};