MCPcopy Create free account
hub / github.com/fmtlib/fmt / get_path_string

Function get_path_string

include/fmt/std.h:103–111  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

101
102template <typename Char, typename PathChar>
103auto 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
113template <typename Char, typename PathChar>
114void write_escaped_path(basic_memory_buffer<Char>& quoted,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected