MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / stringify

Method stringify

base/poco/JSON/src/Array.cpp:155–186  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153
154
155void Array::stringify(std::ostream& out, unsigned int indent, int step) const
156{
157 int options = Poco::JSON_WRAP_STRINGS;
158 options |= _escapeUnicode ? Poco::JSON_ESCAPE_UNICODE : 0;
159
160 if (step == -1) step = indent;
161
162 out << "[";
163
164 if (indent > 0) out << std::endl;
165
166 for (ValueVec::const_iterator it = _values.begin(); it != _values.end();)
167 {
168 for (int i = 0; i < indent; i++) out << ' ';
169
170 Stringifier::stringify(*it, out, indent + step, step, options);
171
172 if (++it != _values.end())
173 {
174 out << ",";
175 if (step > 0) out << '\n';
176 }
177 }
178
179 if (step > 0) out << '\n';
180
181 if (indent >= step) indent -= step;
182
183 for (int i = 0; i < indent; i++) out << ' ';
184
185 out << "]";
186}
187
188
189void Array::resetDynArray() const

Callers 15

serializeDataMethod · 0.45
AeFunction · 0.45
saveMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
convertMethod · 0.45
xterm.min.jsFile · 0.45
toStringMethod · 0.45
toStringMethod · 0.45
processMetadataFileMethod · 0.45
equalsFunction · 0.45

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected