]> git.tdb.fi Git - ext/openal.git/blob - common/strutils.h
Import OpenAL Soft 1.23.1 sources
[ext/openal.git] / common / strutils.h
1 #ifndef AL_STRUTILS_H
2 #define AL_STRUTILS_H
3
4 #include <string>
5
6 #include "aloptional.h"
7
8 #ifdef _WIN32
9 #include <wchar.h>
10
11 std::string wstr_to_utf8(const wchar_t *wstr);
12 std::wstring utf8_to_wstr(const char *str);
13 #endif
14
15 namespace al {
16
17 al::optional<std::string> getenv(const char *envname);
18 #ifdef _WIN32
19 al::optional<std::wstring> getenv(const wchar_t *envname);
20 #endif
21
22 } // namespace al
23
24 #endif /* AL_STRUTILS_H */