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

Method FromBuffer

libs/i18n/string_utf8_multilang.cpp:157–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

155}
156
157StringUtf8Multilang StringUtf8Multilang::FromBuffer(std::string && s)
158{
159 ASSERT(!s.empty(), ());
160 StringUtf8Multilang res;
161 res.m_s = std::move(s);
162 ASSERT_GREATER(res.CountLangs(), 0, ());
163 return res;
164}

Callers

nothing calls this directly

Calls 3

ASSERTFunction · 0.85
CountLangsMethod · 0.80
emptyMethod · 0.45

Tested by

no test coverage detected