This commit is contained in:
Aleksandar Fabijanic
2018-02-08 09:08:42 -06:00
committed by Alex Fabijanic
parent 4a7ab78686
commit bd81aec779
13 changed files with 610 additions and 106 deletions

View File

@@ -24,7 +24,8 @@ namespace Poco {
namespace JSON {
Array::Array(): _modified(false)
Array::Array(bool escapeUnicode): _modified(false),
_escapeUnicode(escapeUnicode)
{
}
@@ -162,7 +163,7 @@ void Array::stringify(std::ostream& out, unsigned int indent, int step) const
{
for (int i = 0; i < indent; i++) out << ' ';
Stringifier::stringify(*it, out, indent + step, step);
Stringifier::stringify(*it, out, indent + step, step, _escapeUnicode);
if (++it != _values.end())
{
@@ -175,8 +176,7 @@ void Array::stringify(std::ostream& out, unsigned int indent, int step) const
if (indent >= step) indent -= step;
for (int i = 0; i < indent; i++)
out << ' ';
for (int i = 0; i < indent; i++) out << ' ';
out << "]";
}