| 210 | } |
| 211 | |
| 212 | void dumpArrayOrVector (const value::ValueView& v) |
| 213 | { |
| 214 | out << '['; |
| 215 | auto numElements = v.size(); |
| 216 | |
| 217 | if (indentSize != 0 && numElements != 0) |
| 218 | { |
| 219 | startIndent(); |
| 220 | |
| 221 | for (uint32_t i = 0; i < numElements; ++i) |
| 222 | { |
| 223 | dump (v[i]); |
| 224 | |
| 225 | if (i != numElements - 1) |
| 226 | out << "," << newLine << getIndent(); |
| 227 | } |
| 228 | |
| 229 | endIndent(); |
| 230 | } |
| 231 | else |
| 232 | { |
| 233 | for (uint32_t i = 0; i < numElements; ++i) |
| 234 | { |
| 235 | if (i != 0) out << ", "; |
| 236 | dump (v[i]); |
| 237 | } |
| 238 | } |
| 239 | |
| 240 | out << ']'; |
| 241 | } |
| 242 | |
| 243 | void dumpObject (const value::ValueView& object) |
| 244 | { |