| 554 | } |
| 555 | |
| 556 | Strings makeNamesValidJSONStrings(const Strings & names, const FormatSettings & settings, bool validate_utf8) |
| 557 | { |
| 558 | Strings result; |
| 559 | result.reserve(names.size()); |
| 560 | for (const auto & name : names) |
| 561 | { |
| 562 | WriteBufferFromOwnString buf; |
| 563 | if (validate_utf8) |
| 564 | { |
| 565 | WriteBufferValidUTF8 validating_buf(buf); |
| 566 | writeJSONString(name, validating_buf, settings); |
| 567 | } |
| 568 | else |
| 569 | writeJSONString(name, buf, settings); |
| 570 | |
| 571 | result.push_back(buf.str().substr(1, buf.str().size() - 2)); |
| 572 | } |
| 573 | return result; |
| 574 | } |
| 575 | |
| 576 | void skipColon(ReadBuffer & in) |
| 577 | { |
no test coverage detected