forked from bblanchon/ArduinoJson
Extracted class EscapedString
This commit is contained in:
1 parent
adb8fa4d44
commit
1b62502b36
5 files changed
+100
-54
No files matched your search
@@ -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;
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user