Home
last modified time | relevance | path

Searched refs:last_slash (Results 1 - 7 of 7) sorted by relevance

/third_party/gn/src/gn/
H A Dsource_file.cc168 size_t last_slash = value.rfind('/'); in GetName() local
169 return std::string(&value[last_slash + 1], value.size() - last_slash - 1); in GetName()
178 size_t last_slash = value.rfind('/'); in GetDir() local
179 return SourceDir(value.substr(0, last_slash + 1)); in GetDir()
/third_party/protobuf/src/google/protobuf/compiler/java/
H A Djava_name_resolver.cc135 std::string::size_type last_slash = file->name().find_last_of('/'); in GetFileDefaultImmutableClassName() local
136 if (last_slash == std::string::npos) { in GetFileDefaultImmutableClassName()
139 basename = file->name().substr(last_slash + 1); in GetFileDefaultImmutableClassName()
/third_party/mesa3d/src/microsoft/compiler/
H A Ddxil_validator.cpp54 auto last_slash = strrchr(self_path, '\\'); in load_dxil_mod() local
55 if (!last_slash) { in load_dxil_mod()
60 *(last_slash + 1) = '\0'; in load_dxil_mod()
/third_party/node/deps/v8/src/d8/
H A Dd8-posix.cc542 char* last_slash = strrchr(directory, '/'); in mkdirp() local
543 if (last_slash == nullptr) { in mkdirp()
547 *last_slash = 0; in mkdirp()
549 *last_slash = '/'; in mkdirp()
H A Dd8.cc882 size_t last_slash = path.find_last_of('/'); in DirName() local
883 DCHECK(last_slash != std::string::npos); in DirName()
884 return path.substr(0, last_slash); in DirName()
/third_party/protobuf/src/google/protobuf/compiler/objectivec/
H A Dobjectivec_helpers.cc289 string::size_type last_slash = path.rfind('/'); in PathSplit() local
290 if (last_slash == string::npos) { in PathSplit()
299 *directory = path.substr(0, last_slash); in PathSplit()
302 *basename = path.substr(last_slash + 1); in PathSplit()
/third_party/curl/lib/
H A Dftp.c3772 char *last_slash; in init_wc_data() local
3779 last_slash = strrchr(ftp->path, '/'); in init_wc_data()
3780 if(last_slash) { in init_wc_data()
3781 last_slash++; in init_wc_data()
3782 if(last_slash[0] == '\0') { in init_wc_data()
3787 wildcard->pattern = strdup(last_slash); in init_wc_data()
3790 last_slash[0] = '\0'; /* cut file from path */ in init_wc_data()

Completed in 19 milliseconds