@@ -57,7 +57,7 @@ typedef struct _REPARSE_DATA_BUFFER
5757} REPARSE_DATA_BUFFER, *PREPARSE_DATA_BUFFER;
5858
5959
60- std::string fs_as_posix (std::string path)
60+ std::string fs_as_posix (std::string_view path)
6161{
6262 std::string s (path);
6363
@@ -69,7 +69,7 @@ std::string fs_as_posix(std::string path)
6969}
7070
7171
72- static bool fs_win32_get_reparse_buffer (std::string path, std::byte* buffer)
72+ static bool fs_win32_get_reparse_buffer (std::string_view path, std::byte* buffer)
7373{
7474// this function is adapted from
7575// https://gitlab.kitware.com/utils/kwsys/-/blob/master/SystemTools.cxx
@@ -111,7 +111,7 @@ static bool fs_win32_get_reparse_buffer(std::string path, std::byte* buffer)
111111}
112112
113113
114- std::string fs_win32_final_path (std::string path)
114+ std::string fs_win32_final_path (std::string_view path)
115115{
116116 // resolves Windows symbolic links (reparse points and junctions)
117117 // it also resolves the case insensitivity of Windows paths to the disk case
@@ -153,7 +153,7 @@ std::string fs_win32_final_path(std::string path)
153153}
154154
155155
156- bool fs_win32_is_symlink (std::string path)
156+ bool fs_win32_is_symlink (std::string_view path)
157157{
158158// distinguish between Windows symbolic links and reparse points as
159159// reparse points can be unlike symlinks.
@@ -177,7 +177,7 @@ bool fs_win32_is_symlink(std::string path)
177177}
178178
179179
180- std::string fs_shortname (std::string in)
180+ std::string fs_shortname (std::string_view in)
181181{
182182// https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getshortpathnamew
183183// the path must exist
0 commit comments