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

Method GetTranslatedStringImpl

pcsx2-gsrunner/Main.cpp:1016–1026  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1014}
1015
1016s32 Host::Internal::GetTranslatedStringImpl(
1017 const std::string_view context, const std::string_view msg, char* tbuf, size_t tbuf_space)
1018{
1019 if (msg.size() > tbuf_space)
1020 return -1;
1021 else if (msg.empty())
1022 return 0;
1023
1024 std::memcpy(tbuf, msg.data(), msg.size());
1025 return static_cast<s32>(msg.size());
1026}
1027
1028std::string Host::TranslatePluralToString(const char* context, const char* msg, const char* disambiguation, int count)
1029{

Callers

nothing calls this directly

Calls 3

sizeMethod · 0.45
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected