Lines Matching refs:std

29 void appendNextPath(std::string& res, std::string_view c);
32 std::string fromFd(int fd);
33 bool isAbsolute(std::string_view path);
34 std::string normalize(std::string_view path);
36 std::string_view relativize(std::string_view parent, std::string_view nested);
37 inline std::string_view relativize(const char* parent, const char* nested) { in relativize()
38 return relativize(std::string_view(parent), std::string_view(nested)); in relativize()
40 inline std::string_view relativize(std::string_view parent, const char* nested) { in relativize()
41 return relativize(parent, std::string_view(nested)); in relativize()
43 inline std::string_view relativize(const char* parent, std::string_view nested) { in relativize()
44 return relativize(std::string_view(parent), nested); in relativize()
47 std::string_view relativize(std::string&& parent, std::string_view nested) = delete;
48 std::string_view relativize(std::string_view parent, std::string&& nested) = delete;
51 std::string_view dirName(std::string_view path);
52 std::string_view baseName(std::string_view path);
56 std::pair<std::string_view, std::string_view> splitDirBase(std::string& full);
58 int isEmptyDir(std::string_view dir);
59 bool startsWith(std::string_view path, std::string_view prefix);
60 bool endsWith(std::string_view path, std::string_view prefix);
63 auto dir = std::unique_ptr<DIR, decltype(&closedir)>(::opendir(path), &::closedir); in openDir()
68 std::string join(std::string_view first, std::string_view second, Paths&&... paths) { in join()
69 std::string result; in join()
71 using std::size; in join()