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