MCPcopy Create free account
hub / github.com/comaps/comaps / ToUtf8

Function ToUtf8

libs/base/internal/message.cpp:7–12  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5namespace internal
6{
7std::string ToUtf8(std::u16string_view utf16)
8{
9 std::string utf8;
10 utf8::unchecked::utf16to8(utf16.begin(), utf16.end(), std::back_inserter(utf8));
11 return utf8;
12}
13
14std::string ToUtf8(std::u32string_view utf32)
15{

Callers 2

DebugPrintFunction · 0.70
UNIT_TESTFunction · 0.50

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.40