Gosu
Utility.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <string>
4 
5 namespace Gosu
6 {
7  std::u32string utf8_to_composed_utc4(const std::string& utf8);
8 
11  bool has_extension(std::string_view filename, std::string_view extension);
12 
16  std::string language();
17 
19  {
20  protected:
21  Noncopyable() = default;
22  ~Noncopyable() = default;
23 
24  public:
25  Noncopyable(const Noncopyable& other) = delete;
26  Noncopyable& operator=(const Noncopyable& other) = delete;
27 
28  Noncopyable(Noncopyable&& other) = delete;
29  Noncopyable& operator=(Noncopyable&& other) = delete;
30  };
31 }
Noncopyable & operator=(const Noncopyable &other)=delete
Definition: Audio.hpp:12
bool has_extension(std::string_view filename, std::string_view extension)
Returns true if the filename has the given extension.
~Noncopyable()=default
std::string language()
Returns the user&#39;s preferred language, at the moment of calling the function.
std::u32string utf8_to_composed_utc4(const std::string &utf8)
Noncopyable()=default