Searched refs:last_slash (Results 1 – 2 of 2) sorted by relevance
33 const char* last_slash = strrchr(path, '/'); in __gnu_basename() local34 return (last_slash != nullptr) ? last_slash + 1 : path; in __gnu_basename()
64 const char* last_slash = strrchr(path, '/'); in dirname() local66 if (last_slash == path) { in dirname()68 } else if (last_slash == nullptr) { in dirname()71 return std::string(path, last_slash - path); in dirname()