mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-22 06:52:24 +02:00
Renamed IndentedPrintDecorator to PrettyPrintDecorator
This commit is contained in:
@ -12,7 +12,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClInclude Include="EscapedString.h" />
|
||||
<ClInclude Include="IndentedPrintDecorator.h" />
|
||||
<ClInclude Include="PrettyPrintDecorator.h" />
|
||||
<ClInclude Include="JsonArray.h" />
|
||||
<ClInclude Include="JsonArrayBase.h" />
|
||||
<ClInclude Include="JsonObject.h" />
|
||||
@ -25,7 +25,7 @@
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ClCompile Include="EscapedString.cpp" />
|
||||
<ClCompile Include="IndentedPrintDecorator.cpp" />
|
||||
<ClCompile Include="PrettyPrintDecorator.cpp" />
|
||||
<ClCompile Include="JsonArrayBase.cpp" />
|
||||
<ClCompile Include="JsonObjectBase.cpp" />
|
||||
<ClCompile Include="JsonValue.cpp" />
|
||||
|
@ -45,7 +45,7 @@
|
||||
<ClInclude Include="JsonObject.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
<ClInclude Include="IndentedPrintDecorator.h">
|
||||
<ClInclude Include="PrettyPrintDecorator.h">
|
||||
<Filter>Header Files</Filter>
|
||||
</ClInclude>
|
||||
</ItemGroup>
|
||||
@ -68,7 +68,7 @@
|
||||
<ClCompile Include="JsonObjectBase.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
<ClCompile Include="IndentedPrintDecorator.cpp">
|
||||
<ClCompile Include="PrettyPrintDecorator.cpp">
|
||||
<Filter>Source Files</Filter>
|
||||
</ClCompile>
|
||||
</ItemGroup>
|
||||
|
@ -8,7 +8,7 @@
|
||||
#include "JsonValue.h"
|
||||
#include "Print.h"
|
||||
#include "Printable.h"
|
||||
#include "IndentedPrintDecorator.h"
|
||||
#include "PrettyPrintDecorator.h"
|
||||
|
||||
namespace ArduinoJson
|
||||
{
|
||||
@ -28,7 +28,7 @@ namespace ArduinoJson
|
||||
|
||||
size_t prettyPrintTo(Print& p) const
|
||||
{
|
||||
IndentedPrintDecorator decorator(p);
|
||||
PrettyPrintDecorator decorator(p);
|
||||
return printTo(decorator);
|
||||
}
|
||||
|
||||
|
@ -3,9 +3,9 @@
|
||||
* Benoit Blanchon 2014 - MIT License
|
||||
*/
|
||||
|
||||
#include "IndentedPrintDecorator.h"
|
||||
#include "PrettyPrintDecorator.h"
|
||||
|
||||
size_t IndentedPrintDecorator::write(uint8_t c)
|
||||
size_t PrettyPrintDecorator::write(uint8_t c)
|
||||
{
|
||||
switch (c)
|
||||
{
|
||||
@ -85,7 +85,7 @@ size_t IndentedPrintDecorator::write(uint8_t c)
|
||||
}
|
||||
}
|
||||
|
||||
size_t IndentedPrintDecorator::writeln()
|
||||
size_t PrettyPrintDecorator::writeln()
|
||||
{
|
||||
size_t n = sink.write('\n');
|
||||
|
@ -8,11 +8,11 @@
|
||||
|
||||
#include "Print.h"
|
||||
|
||||
class IndentedPrintDecorator : public Print
|
||||
class PrettyPrintDecorator : public Print
|
||||
{
|
||||
public:
|
||||
|
||||
IndentedPrintDecorator(Print& p)
|
||||
PrettyPrintDecorator(Print& p)
|
||||
: indent(0), sink(p)
|
||||
{
|
||||
previousChar = 0;
|
Reference in New Issue
Block a user