| 49 | } |
| 50 | |
| 51 | static inline void JsonEscape(TString& s) { |
| 52 | SubstGlobal(s, "\\", "\\\\"); |
| 53 | SubstGlobal(s, "\"", "\\\""); |
| 54 | SubstGlobal(s, "\r", "\\r"); |
| 55 | SubstGlobal(s, "\n", "\\n"); |
| 56 | SubstGlobal(s, "\t", "\\t"); |
| 57 | } |
| 58 | |
| 59 | static inline TString JsonQuote(const TString& s) { |
| 60 | TString quoted = s; |
no test coverage detected