Sha256: 8ba94d9d9183e60dac759719dd86ce818c6a766fee1fef0f26b183d1eb5c7f02

Contents?: true

Size: 1.11 KB

Versions: 9

Compression:

Stored size: 1.11 KB

Contents

#pragma once

#include <string>
#include <vector>

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(std::string_view filename, std::string_view extension);

    /// Returns the user's preferred user_languages/locales, e.g. {"en_US", "de_DE", "ja"}.
    /// The first two letters of each element will always be a language code.
    /// This value is not cached. Please memorize the specific value that you are interested in,
    /// typically the first language in the returned array that your game supports.
    std::vector<std::string> user_languages();

    class Noncopyable
    {
    protected:
        Noncopyable() = default;
        ~Noncopyable() = default;

    public:
        Noncopyable(const Noncopyable& other) = delete;
        Noncopyable& operator=(const Noncopyable& other) = delete;

        Noncopyable(Noncopyable&& other) = delete;
        Noncopyable& operator=(Noncopyable&& other) = delete;
    };
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
gosu-1.4.6 include/Gosu/Utility.hpp
gosu-1.4.5 include/Gosu/Utility.hpp
gosu-1.4.5.pre1 include/Gosu/Utility.hpp
gosu-1.4.4 include/Gosu/Utility.hpp
gosu-1.4.3 include/Gosu/Utility.hpp
gosu-1.4.1 include/Gosu/Utility.hpp
gosu-1.4.0 include/Gosu/Utility.hpp
gosu-1.3.0 include/Gosu/Utility.hpp
gosu-1.2.0 include/Gosu/Utility.hpp