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.24 Gosu/Utility.hpp
gosu-0.7.23 Gosu/Utility.hpp
gosu-0.7.22 Gosu/Utility.hpp
gosu-0.7.21 Gosu/Utility.hpp
gosu-0.7.20 Gosu/Utility.hpp
gosu-0.7.19 Gosu/Utility.hpp
gosu-0.7.18 Gosu/Utility.hpp
gosu-0.7.17 Gosu/Utility.hpp
gosu-0.7.16 Gosu/Utility.hpp
gosu-0.7.15 Gosu/Utility.hpp
gosu-0.7.14 Gosu/Utility.hpp
gosu-0.7.11 Gosu/Utility.hpp
gosu-0.7.12 Gosu/Utility.hpp
gosu-0.7.13.3 Gosu/Utility.hpp
gosu-0.7.13.2 Gosu/Utility.hpp
gosu-0.7.13 Gosu/Utility.hpp