🛠️🐜 Antkeeper superbuild with dependencies included https://antkeeper.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
420 B

  1. #ifndef AL_STRUTILS_H
  2. #define AL_STRUTILS_H
  3. #include <string>
  4. #include "aloptional.h"
  5. #ifdef _WIN32
  6. #include <wchar.h>
  7. std::string wstr_to_utf8(const wchar_t *wstr);
  8. std::wstring utf8_to_wstr(const char *str);
  9. #endif
  10. namespace al {
  11. al::optional<std::string> getenv(const char *envname);
  12. #ifdef _WIN32
  13. al::optional<std::wstring> getenv(const wchar_t *envname);
  14. #endif
  15. } // namespace al
  16. #endif /* AL_STRUTILS_H */