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

Function DebugPrint

libs/i18n/string_utf8_multilang.cpp:139–155  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

137}
138
139std::string DebugPrint(StringUtf8Multilang const & s)
140{
141 std::string result;
142
143 bool isFirst = true;
144 s.ForEach([&result, &isFirst](int8_t code, std::string_view name)
145 {
146 if (isFirst)
147 isFirst = false;
148 else
149 result += ' ';
150
151 result.append(localisation::ConvertLanguageIndexToLanguageCode(code)).append(":").append(name);
152 });
153
154 return result;
155}
156
157StringUtf8Multilang StringUtf8Multilang::FromBuffer(std::string && s)
158{

Callers

nothing calls this directly

Calls 3

ForEachMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected