MCPcopy Create free account
hub / github.com/danielaparker/jsoncons / chinese_char

Function chinese_char

examples_boost/serialization_examples.cpp:450–460  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

448}
449
450void chinese_char()
451{
452 jsoncons::json j;
453
454 std::string s = (const char*)u8"你好";
455 j.try_emplace("hello", s);
456 assert(j["hello"].as<std::string>() == s);
457
458 std::string json_string;
459 j.dump(json_string);
460}
461
462#ifdef __cpp_char8_t
463

Callers 1

mainFunction · 0.85

Calls 2

try_emplaceMethod · 0.45
dumpMethod · 0.45

Tested by

no test coverage detected