Searched refs:last_slash (Results 1 – 10 of 10) sorted by relevance
/third_party/glib/gio/ |
D | gkeyfilesettingsbackend.c | 153 const gchar *last_slash; in convert_path() local 162 last_slash = strrchr (key, '/'); in convert_path() 166 (last_slash != NULL && in convert_path() 167 (*(last_slash + 1) == '\0' || in convert_path() 168 last_slash == key))) in convert_path() 176 …if (last_slash != NULL && (last_slash - key) == kfsb->root_group_len && memcmp (key, kfsb->root_gr… in convert_path() 182 if (last_slash == NULL) in convert_path() 188 if (last_slash != NULL) in convert_path() 190 *group = g_memdup2 (key, (last_slash - key) + 1); in convert_path() 191 (*group)[(last_slash - key)] = '\0'; in convert_path() [all …]
|
/third_party/gstreamer/gstplugins_bad/ext/curl/ |
D | gstcurlftpsink.c | 190 gchar *last_slash = NULL; in set_ftp_dynamic_options_unlocked() local 207 last_slash = strrchr (basesink->file_name, '/'); in set_ftp_dynamic_options_unlocked() 208 if (last_slash != NULL) { in set_ftp_dynamic_options_unlocked() 210 g_strndup (basesink->file_name, last_slash - basesink->file_name); in set_ftp_dynamic_options_unlocked() 211 rename_to = g_strdup_printf ("%s%s", RENAME_TO, last_slash + 1); in set_ftp_dynamic_options_unlocked() 244 if (last_slash != NULL) { in set_ftp_dynamic_options_unlocked() 245 *last_slash = '\0'; in set_ftp_dynamic_options_unlocked()
|
D | gstcurlfilesink.c | 223 gchar *last_slash; in gst_curl_file_sink_prepare_transfer() local 234 last_slash = strrchr (file_name, G_DIR_SEPARATOR); in gst_curl_file_sink_prepare_transfer() 235 if (last_slash != NULL) { in gst_curl_file_sink_prepare_transfer() 237 gchar *dir_name = g_strndup (file_name, last_slash - file_name); in gst_curl_file_sink_prepare_transfer()
|
/third_party/glib/gio/win32/ |
D | gwinhttpfile.c | 166 char *last_slash; in g_winhttp_file_get_basename() local 170 last_slash = strrchr (basename, '/'); in g_winhttp_file_get_basename() 172 if (last_slash == NULL || last_slash[1] == '\0') in g_winhttp_file_get_basename() 175 retval = g_strdup (last_slash + 1); in g_winhttp_file_get_basename() 253 char *last_slash; in g_winhttp_file_get_parent() local 262 last_slash = strrchr (uri, '/'); in g_winhttp_file_get_parent() 263 if (last_slash == NULL || *(last_slash+1) == 0) in g_winhttp_file_get_parent() 269 while (last_slash > uri && *last_slash == '/') in g_winhttp_file_get_parent() 270 last_slash--; in g_winhttp_file_get_parent() 272 last_slash[1] = '\0'; in g_winhttp_file_get_parent()
|
/third_party/gn/src/gn/ |
D | source_file.cc | 168 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/grpc/src/core/lib/security/transport/ |
D | client_auth_filter.cc | 193 char* last_slash = strrchr(service, '/'); in grpc_auth_metadata_context_build() local 197 if (last_slash == nullptr) { in grpc_auth_metadata_context_build() 201 } else if (last_slash == service) { in grpc_auth_metadata_context_build() 204 *last_slash = '\0'; in grpc_auth_metadata_context_build() 205 method_name = gpr_strdup(last_slash + 1); in grpc_auth_metadata_context_build()
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_name_resolver.cc | 135 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/protobuf/src/google/protobuf/compiler/objectivec/ |
D | objectivec_helpers.cc | 289 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/gstreamer/gstplugins_good/gst/matroska/ |
D | matroska-read-common.c | 2489 gchar *last_slash = strrchr (val_pre, '/'); in gst_matroska_read_common_parse_metadata_id_simple_tag() local 2490 if (last_slash) { in gst_matroska_read_common_parse_metadata_id_simple_tag() 2491 last_slash++; in gst_matroska_read_common_parse_metadata_id_simple_tag() 2492 if (strcmp (last_slash, "EMAIL=") == 0 || in gst_matroska_read_common_parse_metadata_id_simple_tag() 2493 strcmp (last_slash, "PHONE=") == 0 || in gst_matroska_read_common_parse_metadata_id_simple_tag() 2494 strcmp (last_slash, "ADDRESS=") == 0 || in gst_matroska_read_common_parse_metadata_id_simple_tag() 2495 strcmp (last_slash, "FAX=") == 0) { in gst_matroska_read_common_parse_metadata_id_simple_tag()
|
/third_party/curl/lib/ |
D | ftp.c | 3769 char *last_slash; in init_wc_data() local 3776 last_slash = strrchr(ftp->path, '/'); in init_wc_data() 3777 if(last_slash) { in init_wc_data() 3778 last_slash++; in init_wc_data() 3779 if(last_slash[0] == '\0') { in init_wc_data() 3784 wildcard->pattern = strdup(last_slash); in init_wc_data() 3787 last_slash[0] = '\0'; /* cut file from path */ in init_wc_data()
|