Sha256: e718b7e5182f769e790cc737d73f0f086cc7d14229212b0414a6109e94c1d3aa

Contents?: true

Size: 592 Bytes

Versions: 3

Compression:

Stored size: 592 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 widen(const std::string& s);
    //! Converts an std::wstring into an std::string.
    std::string narrow(const std::wstring& ws);
    
    // Undocumented, temporary: Please ignore. ;)
    std::wstring utf8ToWstring(const std::string& utf8);
    std::string wstringToUTF8(const std::wstring& ws);
}

#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
gosu-0.7.10.1 Gosu/Utility.hpp
gosu-0.7.10.2 Gosu/Utility.hpp
gosu-0.7.10.3 Gosu/Utility.hpp