| 496 | } |
| 497 | |
| 498 | TString WrapJsonToCallback(const TBuf& buf, TStringBuf callback) { |
| 499 | if (!callback) { |
| 500 | return buf.Str(); |
| 501 | } else { |
| 502 | return TString::Join(callback, "(", buf.Str(), ")"); |
| 503 | } |
| 504 | } |
| 505 | |
| 506 | TBufState TBuf::State() const { |
| 507 | return TBufState{NeedComma, NeedNewline, Stack}; |
no test coverage detected