| 207 | } |
| 208 | |
| 209 | s32 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 | |
| 221 | std::string Host::TranslatePluralToString(const char* context, const char* msg, const char* disambiguation, int count) |
| 222 | { |