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

Function utf8_string_example

examples/src/bson_examples.cpp:155–163  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

153}
154
155void utf8_string_example()
156{
157 json j;
158 j.try_emplace("hello", "world");
159
160 std::vector<char> buffer;
161 bson::encode_bson(j, buffer);
162 std::cout << jsoncons::byte_string_view(buffer) << "\n\n";
163}
164
165void null_example()
166{

Callers 1

mainFunction · 0.85

Calls 3

encode_bsonFunction · 0.85
byte_string_viewClass · 0.85
try_emplaceMethod · 0.45

Tested by

no test coverage detected