Extracted class EscapedString

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

No files matched your search

+24
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;
};