mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Reduce gettext wide/narrow and string/char* conversions
This commit is contained in:
parent
84c367bb46
commit
9e2a9b55e1
15 changed files with 125 additions and 141 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue