0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-25 08:12:37 +01:00

ircd::fs: Rename path_view to path_views.

This commit is contained in:
Jason Volk 2020-04-18 15:29:04 -07:00
parent 2953ca0b55
commit d644df72be
2 changed files with 5 additions and 5 deletions

View file

@ -21,7 +21,7 @@ namespace ircd::fs
{
enum class base :uint;
struct basepath;
using path_view = vector_view<const string_view>;
using path_views = vector_view<const string_view>;
using path_strings = vector_view<const std::string>;
extern const size_t NAME_MAX_LEN;
@ -34,12 +34,12 @@ namespace ircd::fs
filesystem::path _path(std::string);
filesystem::path _path(const string_view &);
filesystem::path _path(const path_view &);
filesystem::path _path(const path_views &);
filesystem::path _path(const path_strings &);
string_view path(const base &) noexcept;
string_view path(const mutable_buffer &, const base &, const string_view &);
string_view path(const mutable_buffer &, const path_view &);
string_view path(const mutable_buffer &, const path_views &);
string_view path(const mutable_buffer &, const path_strings &);
string_view path(const mutable_buffer &, const filesystem::path &);
template<class... A> std::string path_string(A&&...);

View file

@ -194,7 +194,7 @@ ircd::fs::path(const mutable_buffer &buf,
ircd::string_view
ircd::fs::path(const mutable_buffer &buf,
const path_view &list)
const path_views &list)
{
return strlcpy(buf, _path(list).c_str());
}
@ -243,7 +243,7 @@ catch(const filesystem::filesystem_error &e)
}
boost::filesystem::path
ircd::fs::_path(const path_view &list)
ircd::fs::_path(const path_views &list)
try
{
filesystem::path ret;