79 for (
size_t i = 0;
i < value.length();
i++) {
80 const char ch = value[
i];
83 }
else if (ch ==
'"') {
85 }
else if (ch ==
'\b') {
87 }
else if (ch ==
'\f') {
89 }
else if (ch ==
'\n') {
91 }
else if (ch ==
'\r') {
93 }
else if (ch ==
'\t') {
95 }
else if (static_cast<uint8_t>(ch) <= 0x1f) {
97 snprintf(buf,
sizeof buf,
"\\u%04x", ch);
99 }
else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[
i+1]) == 0x80
100 && static_cast<uint8_t>(value[
i+2]) == 0xa8) {
103 }
else if (static_cast<uint8_t>(ch) == 0xe2 && static_cast<uint8_t>(value[
i+1]) == 0x80
104 && static_cast<uint8_t>(value[
i+2]) == 0xa9) {
size_t i
Definition: json11.cpp:361
char buf[128]
Definition: rw_test.cpp:40