CG_Labs  2021.2
various.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <string>
5 
6 
7 namespace utils
8 {
9 
10 #if defined(_WIN32)
11 std::wstring widen(char const* utf8);
12 std::wstring widen(std::string const& utf8);
13 #else
14 inline char const* widen(char const* utf8) { return utf8; }
15 inline std::string const& widen(std::string const& utf8) { return utf8; }
16 #endif
17 
18 std::string slurp_file(std::string const& path);
19 
20 } // end of namespace
Definition: opengl.cpp:13
char const * widen(char const *utf8)
Definition: various.hpp:14
std::string slurp_file(std::string const &path)
Definition: various.cpp:73