Home
last modified time | relevance | path

Searched refs:slash_pos (Results 1 – 12 of 12) sorted by relevance

/external/libbrillo/brillo/dbus/
Dutils.cc59 size_t slash_pos = part.find('/'); in AddDBusError() local
61 if (slash_pos != std::string::npos && colon_pos != std::string::npos && in AddDBusError()
62 slash_pos < colon_pos) { in AddDBusError()
65 std::string domain = part.substr(0, slash_pos); in AddDBusError()
66 std::string code = part.substr(slash_pos + 1, colon_pos - slash_pos - 1); in AddDBusError()
69 } else if (slash_pos == std::string::npos && in AddDBusError()
/external/google-breakpad/src/common/windows/
Dstring_utils.cc40 size_t slash_pos = base_name.find_last_of(L"/\\"); in GetBaseName() local
41 if (slash_pos != wstring::npos) { in GetBaseName()
42 base_name.erase(0, slash_pos + 1); in GetBaseName()
/external/perfetto/src/traced/probes/ftrace/
Dftrace_config_muxer.cc61 auto slash_pos = event.find("/"); in EventToStringGroupAndName() local
62 if (slash_pos == std::string::npos) in EventToStringGroupAndName()
64 return std::make_pair(event.substr(0, slash_pos), in EventToStringGroupAndName()
65 event.substr(slash_pos + 1)); in EventToStringGroupAndName()
/external/google-breakpad/src/common/solaris/
Ddump_symbols.cc502 size_t slash_pos = obj_file.find_last_of("/"); in WriteModuleInfo() local
503 if (slash_pos != std::string::npos) in WriteModuleInfo()
504 filename = obj_file.substr(slash_pos + 1); in WriteModuleInfo()
/external/curl/lib/
Dssh.h142 char *slash_pos; /* used by the SFTP_CREATE_DIRS state */ member
Dftp.c4103 const char *slash_pos; /* position of the first '/' char in curpos */ in ftp_parse_url_path() local
4145 slash_pos = strrchr(cur_pos, '/'); in ftp_parse_url_path()
4146 if(slash_pos || !*cur_pos) { in ftp_parse_url_path()
4147 size_t dirlen = slash_pos-cur_pos; in ftp_parse_url_path()
4157 result = Curl_urldecode(conn->data, slash_pos ? cur_pos : "/", in ftp_parse_url_path()
4158 slash_pos ? dirlen : 1, in ftp_parse_url_path()
4166 filename = slash_pos ? slash_pos + 1 : cur_pos; /* rest is file name */ in ftp_parse_url_path()
4188 while((slash_pos = strchr(cur_pos, '/')) != NULL) { in ftp_parse_url_path()
4194 if(slash_pos-cur_pos) { in ftp_parse_url_path()
4198 size_t len = slash_pos - cur_pos + absolute_dir; in ftp_parse_url_path()
[all …]
Dssh-libssh.c1228 sshc->slash_pos = protop->path + 1; /* ignore the leading '/' */ in myssh_statemach_act()
1237 sshc->slash_pos = strchr(sshc->slash_pos, '/'); in myssh_statemach_act()
1238 if(sshc->slash_pos) { in myssh_statemach_act()
1239 *sshc->slash_pos = 0; in myssh_statemach_act()
1252 *sshc->slash_pos = '/'; in myssh_statemach_act()
1253 ++sshc->slash_pos; in myssh_statemach_act()
Dssh.c1842 sshc->slash_pos = sftp_scp->path + 1; /* ignore the leading '/' */ in ssh_statemach_act()
1851 sshc->slash_pos = strchr(sshc->slash_pos, '/'); in ssh_statemach_act()
1852 if(sshc->slash_pos) { in ssh_statemach_act()
1853 *sshc->slash_pos = 0; in ssh_statemach_act()
1870 *sshc->slash_pos = '/'; in ssh_statemach_act()
1871 ++sshc->slash_pos; in ssh_statemach_act()
/external/tensorflow/tensorflow/cc/framework/
Dcc_op_gen.cc69 size_t slash_pos = path.rfind('/'); in GetFilename() local
70 if (slash_pos == path.npos) slash_pos = -1; in GetFilename()
72 return path.substr(slash_pos + 1, dot_pos - (slash_pos + 1)); in GetFilename()
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_common.cc191 if (const char *slash_pos = internal_strrchr(module, '/')) { in StripModuleName() local
192 return slash_pos + 1; in StripModuleName()
/external/protobuf/src/google/protobuf/compiler/
Dcommand_line_interface_unittest.cc370 string::size_type slash_pos = name.find_last_of('/'); in Run() local
371 if (slash_pos != string::npos) { in Run()
372 string dir = name.substr(0, slash_pos); in Run()
Dcommand_line_interface.cc1259 string::size_type slash_pos = value.find_last_of('/'); in InterpretArgument() local
1260 if (slash_pos == string::npos) { in InterpretArgument()
1263 plugin_name = value.substr(slash_pos + 1); in InterpretArgument()