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:
parent
2953ca0b55
commit
d644df72be
2 changed files with 5 additions and 5 deletions
|
@ -21,7 +21,7 @@ namespace ircd::fs
|
||||||
{
|
{
|
||||||
enum class base :uint;
|
enum class base :uint;
|
||||||
struct basepath;
|
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>;
|
using path_strings = vector_view<const std::string>;
|
||||||
|
|
||||||
extern const size_t NAME_MAX_LEN;
|
extern const size_t NAME_MAX_LEN;
|
||||||
|
@ -34,12 +34,12 @@ namespace ircd::fs
|
||||||
|
|
||||||
filesystem::path _path(std::string);
|
filesystem::path _path(std::string);
|
||||||
filesystem::path _path(const string_view &);
|
filesystem::path _path(const string_view &);
|
||||||
filesystem::path _path(const path_view &);
|
filesystem::path _path(const path_views &);
|
||||||
filesystem::path _path(const path_strings &);
|
filesystem::path _path(const path_strings &);
|
||||||
|
|
||||||
string_view path(const base &) noexcept;
|
string_view path(const base &) noexcept;
|
||||||
string_view path(const mutable_buffer &, const base &, const string_view &);
|
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 path_strings &);
|
||||||
string_view path(const mutable_buffer &, const filesystem::path &);
|
string_view path(const mutable_buffer &, const filesystem::path &);
|
||||||
template<class... A> std::string path_string(A&&...);
|
template<class... A> std::string path_string(A&&...);
|
||||||
|
|
|
@ -194,7 +194,7 @@ ircd::fs::path(const mutable_buffer &buf,
|
||||||
|
|
||||||
ircd::string_view
|
ircd::string_view
|
||||||
ircd::fs::path(const mutable_buffer &buf,
|
ircd::fs::path(const mutable_buffer &buf,
|
||||||
const path_view &list)
|
const path_views &list)
|
||||||
{
|
{
|
||||||
return strlcpy(buf, _path(list).c_str());
|
return strlcpy(buf, _path(list).c_str());
|
||||||
}
|
}
|
||||||
|
@ -243,7 +243,7 @@ catch(const filesystem::filesystem_error &e)
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::filesystem::path
|
boost::filesystem::path
|
||||||
ircd::fs::_path(const path_view &list)
|
ircd::fs::_path(const path_views &list)
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
filesystem::path ret;
|
filesystem::path ret;
|
||||||
|
|
Loading…
Reference in a new issue