Reduced usages of EscapedString

This commit is contained in:
Benoit Blanchon
2014-08-01 15:22:30 +02:00
parent 1a01800782
commit 7c99d4d63d
6 changed files with 20 additions and 25 deletions

View File

@ -6,7 +6,6 @@
#pragma once
#include "Print.h"
#include <string.h> // for strcmp
namespace ArduinoJson
{
@ -16,18 +15,13 @@ namespace ArduinoJson
{
public:
void set(const char* s)
{
rawString = s;
EscapedString(const char* s)
: rawString(s)
{
}
size_t printTo(Print&) const;
bool equals(char const* s)
{
return strcmp(s, rawString) == 0;
}
private:
const char* rawString;
};