| 4354 | JSONCPP_STRING valueToString(bool value) { return value ? "true" : "false"; } |
| 4355 | |
| 4356 | static bool isAnyCharRequiredQuoting(char const* s, size_t n) { |
| 4357 | assert(s || !n); |
| 4358 | |
| 4359 | char const* const end = s + n; |
| 4360 | for (char const* cur = s; cur < end; ++cur) { |
| 4361 | if (*cur == '\\' || *cur == '\"' || *cur < ' ' || |
| 4362 | static_cast<unsigned char>(*cur) < 0x80) |
| 4363 | return true; |
| 4364 | } |
| 4365 | return false; |
| 4366 | } |
| 4367 | |
| 4368 | static unsigned int utf8ToCodepoint(const char*& s, const char* e) { |
| 4369 | const unsigned int REPLACEMENT_CHARACTER = 0xFFFD; |
no outgoing calls
no test coverage detected