Lines Matching refs:string_view
67 std::vector<std::pair<std::string_view, std::string_view>> MountRegistry::Mounts::Mount::binds() in binds()
69 std::vector<std::pair<std::string_view, std::string_view>> result; in binds()
88 std::string_view path) const { in rootIndex()
108 std::string_view MountRegistry::Mounts::rootFor(std::string_view path) const { in rootFor()
116 auto MountRegistry::Mounts::rootAndSubpathFor(std::string_view path) const in rootAndSubpathFor()
130 void MountRegistry::Mounts::addRoot(std::string_view root, std::string_view backingDir) { in addRoot()
137 void MountRegistry::Mounts::removeRoot(std::string_view root) { in removeRoot()
167 void MountRegistry::Mounts::addBind(std::string_view what, std::string_view where) { in addBind()
185 void MountRegistry::Mounts::removeBind(std::string_view what) { in removeBind()
204 MountRegistry::MountRegistry(std::string_view filesystem) in MountRegistry()
215 std::string MountRegistry::rootFor(std::string_view path) { in rootFor()
220 auto MountRegistry::detailsFor(std::string_view path) -> Details { in detailsFor()
229 std::pair<std::string, std::string> MountRegistry::rootAndSubpathFor(std::string_view path) { in rootAndSubpathFor()
282 auto chunk = std::string_view{nextLine, size_t(readEnd - nextLine)}; in forEachLine()
305 bool MountRegistry::Mounts::loadFrom(base::borrowed_fd fd, std::string_view filesystem) { in loadFrom()
312 std::vector<std::string_view> items(12); in loadFrom()
313 const auto parsed = forEachLine(fd, [&](std::string_view line) { in loadFrom()
406 auto MountRegistry::Mounts::load(base::borrowed_fd mountInfo, std::string_view filesystem) in load()