| 1014 | } |
| 1015 | |
| 1016 | s32 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 | |
| 1028 | std::string Host::TranslatePluralToString(const char* context, const char* msg, const char* disambiguation, int count) |
| 1029 | { |