Renamed IndentedPrintDecorator to PrettyPrintDecorator

This commit is contained in:
Benoit Blanchon
2014-08-25 11:42:07 +02:00
parent f7aa0f89e3
commit 2ddf8f1619
11 changed files with 27 additions and 27 deletions

View File

@ -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" />

View File

@ -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>

View File

@ -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);
}

View File

@ -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');

View File

@ -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;