mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-13 16:45:20 +02:00
Reduce gettext wide/narrow and string/char* conversions
This commit is contained in:
@@ -36,6 +36,9 @@ struct FlagDesc {
|
||||
u32 flag;
|
||||
};
|
||||
|
||||
// You must free the returned string!
|
||||
const wchar_t *narrow_to_wide_c(const char *mbs);
|
||||
|
||||
std::wstring narrow_to_wide(const std::string& mbs);
|
||||
std::string wide_to_narrow(const std::wstring& wcs);
|
||||
std::string translatePassword(std::string playername, std::wstring password);
|
||||
|
Reference in New Issue
Block a user