| 101 | |
| 102 | template <typename Char, typename PathChar> |
| 103 | auto get_path_string(const std::filesystem::path& p, |
| 104 | const std::basic_string<PathChar>& native) { |
| 105 | if constexpr (std::is_same_v<Char, char> && |
| 106 | std::is_same_v<PathChar, wchar_t>) { |
| 107 | return to_utf8<wchar_t>(native, to_utf8_error_policy::wtf); |
| 108 | } else { |
| 109 | return p.string<Char>(); |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | template <typename Char, typename PathChar> |
| 114 | void write_escaped_path(basic_memory_buffer<Char>& quoted, |
nothing calls this directly
no outgoing calls
no test coverage detected