4 #ifndef GOSU_UTILITY_HPP
5 #define GOSU_UTILITY_HPP
18 std::wstring
widen(
const std::string& s);
20 std::string
narrow(
const std::wstring& ws);
std::string wstringToUTF8(const std::wstring &ws)
Converts an std::wstring into an std::string.
std::string language()
Returns the user's preferred language, at the moment of calling the function.
std::wstring utf8ToWstring(const std::string &utf8)
Converts an std::string into an std::wstring.
std::string narrow(const std::wstring &ws)
Converts an std::wstring into an std::string using local encoding.
std::wstring widen(const std::string &s)
Converts an std::string into an std::wstring using local encoding.