Utility.hpp File Reference

General purpose utility functions. More...

Go to the source code of this file.

Namespaces

namespace  Gosu
 The library's main namespace.
 

Functions

std::wstring Gosu::utf8ToWstring (const std::string &utf8)
 Converts an std::string into an std::wstring.
 
std::string Gosu::wstringToUTF8 (const std::wstring &ws)
 Converts an std::wstring into an std::string.
 
std::wstring Gosu::widen (const std::string &s)
 Converts an std::string into an std::wstring using local encoding.
 
std::string Gosu::narrow (const std::wstring &ws)
 Converts an std::wstring into an std::string using local encoding.
 
std::string Gosu::language ()
 Returns the user's preferred language, at the moment of calling the function.
 

Detailed Description

General purpose utility functions.

Definition in file Utility.hpp.