Searched refs:last_slash (Results 1 – 3 of 3) sorted by relevance
33 const char* last_slash = strrchr(path, '/'); in __gnu_basename() local34 return (last_slash != NULL) ? last_slash + 1 : path; in __gnu_basename()
32 const size_t last_slash = temporary.find_last_of("/"); in PrintUsage() local33 if (last_slash != temporary.npos) { in PrintUsage()34 temporary.erase(0, last_slash + 1); in PrintUsage()
267 const char* last_slash = strrchr(path, '/'); in dirname() local268 if (last_slash == path) return "/"; in dirname()269 else if (last_slash == nullptr) return "."; in dirname()271 return std::string(path, last_slash - path); in dirname()