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

Function ToUtf16

libs/base/string_utils.cpp:338–343  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

336}
337
338std::u16string ToUtf16(std::string_view utf8)
339{
340 std::u16string utf16;
341 utf8::unchecked::utf8to16(utf8.begin(), utf8.end(), back_inserter(utf16));
342 return utf16;
343}
344
345bool IsASCIIString(std::string_view sv)
346{

Callers 3

GetTextSegmentsFunction · 0.85
UNIT_TESTFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68