| 4303 | JSONCPP_STRING valueToString(bool value) { return value ? "true" : "false"; } |
| 4304 | |
| 4305 | static bool isAnyCharRequiredQuoting(char const* s, size_t n) { |
| 4306 | assert(s || !n); |
| 4307 | |
| 4308 | char const* const end = s + n; |
| 4309 | for (char const* cur = s; cur < end; ++cur) { |
| 4310 | if (*cur == '\\' || *cur == '\"' || *cur < ' ' |
| 4311 | || static_cast<unsigned char>(*cur) < 0x80) |
| 4312 | return true; |
| 4313 | } |
| 4314 | return false; |
| 4315 | } |
| 4316 | |
| 4317 | static unsigned int utf8ToCodepoint(const char*& s, const char* e) { |
| 4318 | const unsigned int REPLACEMENT_CHARACTER = 0xFFFD; |
no outgoing calls
no test coverage detected