1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-08-01 17:38:41 +00:00

Fix Android text bug (no text displaying)

This commit is contained in:
Craig Robbins 2015-03-07 15:09:27 +10:00
parent ffdf8dedb7
commit 5698e2baf8
4 changed files with 82 additions and 83 deletions

View file

@ -36,11 +36,13 @@ 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);
// You must free the returned string!
// The returned string is allocated using new
wchar_t *narrow_to_wide_c(const char *str);
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);
std::string urlencode(std::string str);
std::string urldecode(std::string str);