| 4595 | String valueToString(bool value) { return value ? "true" : "false"; } |
| 4596 | |
| 4597 | static bool doesAnyCharRequireEscaping(char const *s, size_t n) |
| 4598 | { |
| 4599 | assert(s || !n); |
| 4600 | |
| 4601 | return std::any_of(s, s + n, |
| 4602 | [](unsigned char c) { return c == '\\' || c == '"' || c < 0x20 || c > 0x7F; }); |
| 4603 | } |
| 4604 | |
| 4605 | static unsigned int utf8ToCodepoint(const char *&s, const char *e) |
| 4606 | { |
no outgoing calls
no test coverage detected