Home
last modified time | relevance | path

Searched refs:last_slash (Results 1 – 3 of 3) sorted by relevance

/system/tools/sysprop/
DCommon.cpp260 size_t last_slash = path.rfind('/'); in CreateDirectories() local
261 if (last_slash > 0 && last_slash != std::string::npos) { in CreateDirectories()
262 std::string parent = path.substr(0, last_slash); in CreateDirectories()
/system/core/init/
Ddevices.cpp216 auto last_slash = path.rfind('/'); in FindPlatformDevice() local
217 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() local
381 links.emplace_back(link_path + "/" + uevent.path.substr(last_slash + 1)); in GetBlockDeviceSymlinks()
/system/core/base/
Dlogging.cpp88 const char* last_slash = strrchr(file, '/'); in GetFileBasename() local
89 if (last_slash != nullptr) { in GetFileBasename()
90 return last_slash + 1; in GetFileBasename()