mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 08:48:30 +01:00
Moved PrettyPrintDecorator into the namespace ArduinoJson::Generator
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
|
||||
#include "PrettyPrintDecorator.h"
|
||||
|
||||
using namespace ArduinoJson::Generator;
|
||||
|
||||
size_t PrettyPrintDecorator::write(uint8_t c)
|
||||
{
|
||||
size_t n = inString ? handleStringChar(c) : handleMarkupChar(c);
|
||||
|
||||
@@ -8,6 +8,10 @@
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
namespace Generator
|
||||
{
|
||||
class PrettyPrintDecorator : public Print
|
||||
{
|
||||
public:
|
||||
@@ -59,4 +63,5 @@ private:
|
||||
return sink.write(c);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
using namespace ArduinoJson::Generator;
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
using namespace ArduinoJson::Generator;
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
#include "StringBuilder.h"
|
||||
|
||||
using namespace ArduinoJson::Internals;
|
||||
using namespace ArduinoJson::Generator;
|
||||
using namespace Microsoft::VisualStudio::CppUnitTestFramework;
|
||||
|
||||
namespace JsonGeneratorTests
|
||||
|
||||
Reference in New Issue
Block a user