MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetTranslatedStringImpl

Method GetTranslatedStringImpl

tests/ctest/core/StubHost.cpp:209–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

207}
208
209s32 Host::Internal::GetTranslatedStringImpl(
210 const std::string_view context, const std::string_view msg, char* tbuf, size_t tbuf_space)
211{
212 if (msg.size() > tbuf_space)
213 return -1;
214 else if (msg.empty())
215 return 0;
216
217 std::memcpy(tbuf, msg.data(), msg.size());
218 return static_cast<s32>(msg.size());
219}
220
221std::string Host::TranslatePluralToString(const char* context, const char* msg, const char* disambiguation, int count)
222{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected