Searched refs:last_slash (Results 1 – 3 of 3) sorted by relevance
260 size_t last_slash = path.rfind('/'); in CreateDirectories() local261 if (last_slash > 0 && last_slash != std::string::npos) { in CreateDirectories()262 std::string parent = path.substr(0, last_slash); in CreateDirectories()
216 auto last_slash = path.rfind('/'); in FindPlatformDevice() local217 if (last_slash == std::string::npos) return false; in FindPlatformDevice()219 path.erase(last_slash); in FindPlatformDevice()380 auto last_slash = uevent.path.rfind('/'); in GetBlockDeviceSymlinks() local381 links.emplace_back(link_path + "/" + uevent.path.substr(last_slash + 1)); in GetBlockDeviceSymlinks()
88 const char* last_slash = strrchr(file, '/'); in GetFileBasename() local89 if (last_slash != nullptr) { in GetFileBasename()90 return last_slash + 1; in GetFileBasename()