Searched defs:last_slash (Results 1 - 23 of 23) sorted by relevance

/external/chromium_org/tools/gn/
H A Dsource_file.cc37 size_t last_slash = value_.rfind('/'); local
38 return std::string(&value_[last_slash + 1],
39 value_.size() - last_slash - 1);
47 size_t last_slash = value_.rfind('/'); local
48 return SourceDir(base::StringPiece(&value_[0], last_slash + 1));
/external/compiler-rt/lib/sanitizer_common/tests/
H A Dsanitizer_procmaps_test.cc36 const char *last_slash = strrchr(argv0, '/'); local
37 const char *binary_name = last_slash ? last_slash + 1 : argv0;
/external/chromium_org/base/process/
H A Dprocess_iterator_freebsd.cc103 size_t last_slash = data.rfind('/', exec_name_end); local
104 if (last_slash == std::string::npos) {
107 entry_.exe_file_.assign(data, last_slash + 1,
108 exec_name_end - last_slash - 1);
H A Dprocess_iterator_mac.cc116 size_t last_slash = data.rfind('/', exec_name_end); local
117 if (last_slash == std::string::npos)
120 entry_.exe_file_.assign(data, last_slash + 1,
121 exec_name_end - last_slash - 1);
H A Dprocess_iterator_openbsd.cc109 size_t last_slash = data.rfind('/', exec_name_end); local
110 if (last_slash == std::string::npos)
113 entry_.exe_file_.assign(data, last_slash + 1,
114 exec_name_end - last_slash - 1);
/external/chromium_org/tools/relocation_packer/src/
H A Dmain.cc34 const size_t last_slash = temporary.find_last_of("/"); local
35 if (last_slash != temporary.npos) {
36 temporary.erase(0, last_slash + 1);
/external/chromium_org/tools/traceline/traceline/
H A Dsym_resolver.h80 size_t last_slash = filename.find_last_of('\\'); local
81 if (last_slash != std::string::npos)
/external/chromium_org/chrome/browser/ui/webui/extensions/chromeos/
H A Dkiosk_apps_handler.cc83 const size_t last_slash = path.rfind('/'); local
84 if (last_slash == std::string::npos)
87 const std::string candidate_id = path.substr(last_slash + 1);
/external/chromium_org/third_party/webrtc/modules/desktop_capture/mac/
H A Dfull_screen_chrome_window_detector.cc187 const char* last_slash = strrchr(buffer, '/'); local
188 std::string name(last_slash ? last_slash + 1 : buffer);
/external/protobuf/src/google/protobuf/compiler/java/
H A Djava_helpers.cc126 string::size_type last_slash = file->name().find_last_of('/'); local
127 if (last_slash == string::npos) {
130 basename = file->name().substr(last_slash + 1);
/external/protobuf/src/google/protobuf/compiler/javamicro/
H A Djavamicro_helpers.cc129 string::size_type last_slash = file->name().find_last_of('/'); local
130 if (last_slash == string::npos) {
133 basename = file->name().substr(last_slash + 1);
/external/chromium_org/build/android/rezip/
H A Drezip.cc186 const size_t last_slash = filename_str.find_last_of('/'); local
187 if (last_slash < prefix.length()) {
193 if (second_slash != last_slash) {
199 if (filename_str.compare(last_slash + 1, libprefix.length(), libprefix) !=
206 if (last_slash + 1 + linker.length() == filename_str.length() &&
207 filename_str.compare(last_slash + 1, linker.length(), linker) == 0) {
229 size_t last_slash = filename_str.find_last_of('/'); local
230 if (last_slash == std::string::npos ||
231 last_slash == filename_str.length() - 1) {
238 return filename_str.substr(0, last_slash
[all...]
/external/chromium_org/net/http/
H A Dhttp_auth_cache.cc19 std::string::size_type last_slash = path.rfind("/"); local
20 if (last_slash == std::string::npos) {
26 return path.substr(0, last_slash + 1);
/external/chromium_org/net/tools/dump_cache/
H A Durl_to_filename_encoder.cc259 int last_slash = 0; local
263 last_slash = index;
279 if (index - last_slash > kMaximumSubdirectoryLength) {
286 last_slash = index;
/external/chromium_org/sandbox/win/src/
H A Dwin_utils.cc210 base::string16::size_type last_slash = path.rfind(L'\\'); local
211 if (base::string16::npos == last_slash)
214 base::string16 begin = path.substr(0, last_slash);
215 base::string16 end = path.substr(last_slash);
/external/chromium_org/third_party/protobuf/src/google/protobuf/compiler/java/
H A Djava_helpers.cc126 string::size_type last_slash = file->name().find_last_of('/'); local
127 if (last_slash == string::npos) {
130 basename = file->name().substr(last_slash + 1);
/external/chromium_org/tools/win/link_limiter/
H A Dlimiter.cc316 size_t last_slash = shimmed_plus_pipename.find_last_of(L"/\\"); local
317 if (last_slash != tstring::npos) {
318 shimmed_plus_pipename = shimmed_plus_pipename.substr(last_slash + 1);
/external/chromium_org/url/
H A Durl_canon_relative.cc180 int last_slash = -1; local
183 last_slash = i;
187 if (last_slash < 0)
191 for (int i = begin; i <= last_slash; i++)
/external/protobuf/src/google/protobuf/compiler/javanano/
H A Djavanano_helpers.cc176 string::size_type last_slash = file->name().find_last_of('/'); local
177 if (last_slash == string::npos) {
180 basename = file->name().substr(last_slash + 1);
/external/chromium_org/chrome/browser/
H A Denumerate_modules_model_win.cc337 size_t last_slash = module->location.find_last_of(L"\\"); local
338 if (last_slash != base::string16::npos) {
339 module->name = module->location.substr(last_slash + 1);
340 module->location = module->location.substr(0, last_slash + 1);
/external/chromium_org/native_client_sdk/src/tests/nacl_io_test/fake_ppapi/
H A Dfake_pepper_interface_html5_fs.cc264 size_t last_slash = node_path.rfind('/'); local
265 if (last_slash != std::string::npos)
266 entry_path.erase(0, last_slash + 1);
280 size_t last_slash = path.rfind('/'); local
281 if (last_slash == 0)
284 EXPECT_EQ(std::string::npos, last_slash);
285 return path.substr(0, last_slash);
/external/chromium_org/v8/src/
H A Dd8-posix.cc595 char* last_slash = strrchr(directory, '/'); local
596 if (last_slash == NULL) {
600 *last_slash = 0;
602 *last_slash = '/';
/external/compiler-rt/lib/msan/tests/
H A Dmsan_test.cc2707 char *last_slash = strrchr(argv0, '/'); local
2708 assert(last_slash);
2710 snprintf(buf, sz, "%.*s/%s", int(last_slash - argv0), argv0, basename);

Completed in 543 milliseconds