Sha256: 8374f8582a45153ae6e0415da96d006387f33128ba344f1d0b366ffa00bfb923

Contents?: true

Size: 688 Bytes

Versions: 56

Compression:

Stored size: 688 Bytes

Contents

//! \file Utility.hpp
//! General purpose utility functions.

// REDESIGN: Rename to StringConversion.hpp?

#ifndef GOSU_UTILITY_HPP
#define GOSU_UTILITY_HPP

#include <string>
#include <vector>

namespace Gosu
{
    //! Converts an std::string into an std::wstring.
    std::wstring utf8ToWstring(const std::string& utf8);
    //! Converts an std::wstring into an std::string.
    std::string wstringToUTF8(const std::wstring& ws);

    //! Converts an std::string into an std::wstring using local encoding.
    std::wstring widen(const std::string& s);
    //! Converts an std::wstring into an std::string using local encoding.
    std::string narrow(const std::wstring& ws);
}

#endif

Version data entries

56 entries across 56 versions & 1 rubygems

Version Path
gosu-0.7.36.2 Gosu/Utility.hpp
gosu-0.7.36.2-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.36.2-universal-darwin Gosu/Utility.hpp
gosu-0.7.36.1-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.36.1-universal-darwin Gosu/Utility.hpp
gosu-0.7.36-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.35 Gosu/Utility.hpp
gosu-0.7.35-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.35-universal-darwin Gosu/Utility.hpp
gosu-0.7.33 Gosu/Utility.hpp
gosu-0.7.33-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.33-universal-darwin Gosu/Utility.hpp
gosu-0.7.32 Gosu/Utility.hpp
gosu-0.7.32-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.32-universal-darwin Gosu/Utility.hpp
gosu-0.7.31 Gosu/Utility.hpp
gosu-0.7.31-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.31-universal-darwin Gosu/Utility.hpp
gosu-0.7.30 Gosu/Utility.hpp
gosu-0.7.30-i386-mingw32 Gosu/Utility.hpp