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

Function ToUtf8

libs/base/string_utils.cpp:331–336  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

329}
330
331std::string ToUtf8(UniString const & s)
332{
333 std::string result;
334 utf8::unchecked::utf32to8(s.begin(), s.end(), back_inserter(result));
335 return result;
336}
337
338std::u16string ToUtf16(std::string_view utf8)
339{

Callers 15

DebugPrintFunction · 0.70
NormalizeFunction · 0.70
PrintFunction · 0.50
DumpSearchTokensFunction · 0.50
FormatRangeMethod · 0.50
operator()Method · 0.50
GetSuggestionFunction · 0.50
AddSynonymsMethod · 0.50
SetNameMethod · 0.50
MatchForSuggestionsMethod · 0.50
FillSearchParamsMethod · 0.50

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by 11

UNIT_CLASS_TESTFunction · 0.40
TestEqualFunction · 0.40
UNIT_TESTFunction · 0.40
CheckTokenizerFunction · 0.40
CheckParserFunction · 0.40
GetKeyMethod · 0.40
GetStreetKeyFunction · 0.40
UNIT_TESTFunction · 0.40
TestAddressFunction · 0.40