| 27 | }(); |
| 28 | |
| 29 | inline bool RequiresJSONStringEscaping(const std::string &string) |
| 30 | { |
| 31 | uint8_t needs = 0; |
| 32 | for (uint8_t c : string) |
| 33 | { |
| 34 | needs |= json_quotable_character[c]; |
| 35 | } |
| 36 | return needs; |
| 37 | } |
| 38 | |
| 39 | inline void EscapeJSONString(const std::string &input, std::string &output) |
| 40 | { |
no outgoing calls
no test coverage detected