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.30-universal-darwin Gosu/Utility.hpp
gosu-0.7.29-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.29 Gosu/Utility.hpp
gosu-0.7.29-universal-darwin Gosu/Utility.hpp
gosu-0.7.28-universal-darwin Gosu/Utility.hpp
gosu-0.7.28 Gosu/Utility.hpp
gosu-0.7.28-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.27.1 Gosu/Utility.hpp
gosu-0.7.27.1-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.27.1-universal-darwin Gosu/Utility.hpp
gosu-0.7.27 Gosu/Utility.hpp
gosu-0.7.27-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.27-universal-darwin Gosu/Utility.hpp
gosu-0.7.26.1 Gosu/Utility.hpp
gosu-0.7.26.1-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.26.1-universal-darwin Gosu/Utility.hpp
gosu-0.7.26 Gosu/Utility.hpp
gosu-0.7.26-i386-mingw32 Gosu/Utility.hpp
gosu-0.7.26-universal-darwin Gosu/Utility.hpp
gosu-0.7.25 Gosu/Utility.hpp