#include #include #include #include #include "file-path.hh" #include "file-path-impl.hh" #include "util.hh" namespace nix { std::string os_string_to_string(PathViewNG::string_view path) { std::wstring_convert> converter; return converter.to_bytes(std::filesystem::path::string_type{path}); } std::filesystem::path::string_type string_to_os_string(std::string_view s) { std::wstring_convert> converter; return converter.from_bytes(std::string{s}); } }