Sha256: cf030811c43db25633b2f08ed6cee13c33862b5fe5d3ee773fb29bde8a0525c1

Contents?: true

Size: 674 Bytes

Versions: 10

Compression:

Stored size: 674 Bytes

Contents

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

#pragma once

#include <string>

namespace Gosu
{
    std::u32string utf8_to_composed_utc4(const std::string& utf8);
    
    //! Returns true if the filename has the given extension.
    //! The comparison is case-insensitive, but you must pass the extension in lower case.
    bool has_extension(const std::string& filename, const char* extension);
    
    //! Returns the user's preferred language, at the moment of calling the function. Expect return
    //! values such as 'en_US', 'de_DE.UTF-8', 'ja', 'zh-Hans'.
    //! The first two letters will always be a language code.
    std::string language();
}

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
gosu-0.15.2 Gosu/Utility.hpp
gosu-0.15.1 Gosu/Utility.hpp
gosu-0.15.0 Gosu/Utility.hpp
gosu-0.14.6.pre1 Gosu/Utility.hpp
gosu-0.14.5 Gosu/Utility.hpp
gosu-0.14.4 Gosu/Utility.hpp
gosu-0.14.4.pre2 Gosu/Utility.hpp
gosu-0.14.3.pre1 Gosu/Utility.hpp
gosu-0.14.3 Gosu/Utility.hpp
gosu-0.14.0 Gosu/Utility.hpp