/third_party/libsoup/libsoup/ |
D | soup-uri.c | 238 SoupURI *uri, fixed_base; in soup_uri_new_with_base() local 275 uri = soup_uri_new_with_base (base, clean); in soup_uri_new_with_base() 277 return uri; in soup_uri_new_with_base() 283 uri = g_slice_new0 (SoupURI); in soup_uri_new_with_base() 288 uri->fragment = uri_normalized_copy (hash + 1, end - hash + 1, in soup_uri_new_with_base() 303 uri->scheme = soup_uri_parse_scheme (uri_string, p - uri_string); in soup_uri_new_with_base() 307 if (uri_string == end && !base && !uri->fragment) { in soup_uri_new_with_base() 308 uri->path = g_strdup (""); in soup_uri_new_with_base() 309 return uri; in soup_uri_new_with_base() 323 uri->password = soup_uri_decoded_copy (colon + 1, in soup_uri_new_with_base() [all …]
|
D | soup-uri.h | 56 char *soup_uri_to_string (SoupURI *uri, 60 SoupURI *soup_uri_copy (SoupURI *uri); 67 void soup_uri_free (SoupURI *uri); 79 gboolean soup_uri_uses_default_port (SoupURI *uri); 82 const char *soup_uri_get_scheme (SoupURI *uri); 84 void soup_uri_set_scheme (SoupURI *uri, 87 const char *soup_uri_get_user (SoupURI *uri); 89 void soup_uri_set_user (SoupURI *uri, 92 const char *soup_uri_get_password (SoupURI *uri); 94 void soup_uri_set_password (SoupURI *uri, [all …]
|
D | soup-message-server-io.c | 25 SoupURI *uri; in parse_connect_authority() local 29 uri = soup_uri_new (fake_uri); in parse_connect_authority() 32 if (uri->user || uri->password || in parse_connect_authority() 33 uri->query || uri->fragment || in parse_connect_authority() 34 !uri->host || in parse_connect_authority() 35 (uri->port == 0) || in parse_connect_authority() 36 (strcmp (uri->path, "/") != 0)) { in parse_connect_authority() 37 soup_uri_free (uri); in parse_connect_authority() 41 return uri; in parse_connect_authority() 52 SoupURI *uri; in parse_request_headers() local [all …]
|
/third_party/grpc/test/core/client_channel/ |
D | uri_parser_test.cc | 33 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_succeeds() local 34 GPR_ASSERT(uri); in test_succeeds() 35 GPR_ASSERT(0 == strcmp(scheme, uri->scheme)); in test_succeeds() 36 GPR_ASSERT(0 == strcmp(authority, uri->authority)); in test_succeeds() 37 GPR_ASSERT(0 == strcmp(path, uri->path)); in test_succeeds() 38 GPR_ASSERT(0 == strcmp(query, uri->query)); in test_succeeds() 39 GPR_ASSERT(0 == strcmp(fragment, uri->fragment)); in test_succeeds() 41 grpc_uri_destroy(uri); in test_succeeds() 53 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_query_parts() local 54 GPR_ASSERT(uri); in test_query_parts() [all …]
|
/third_party/gstreamer/gstreamer/gst/ |
D | gsturi.c | 334 gst_uri_protocol_check_internal (const gchar * uri, gchar ** endptr) in gst_uri_protocol_check_internal() argument 336 gchar *check = (gchar *) uri; in gst_uri_protocol_check_internal() 338 g_assert (uri != NULL); in gst_uri_protocol_check_internal() 383 gst_uri_is_valid (const gchar * uri) in gst_uri_is_valid() argument 387 g_return_val_if_fail (uri != NULL, FALSE); in gst_uri_is_valid() 389 gst_uri_protocol_check_internal (uri, &endptr); in gst_uri_is_valid() 391 return *endptr == ':' && ((gsize) (endptr - uri)) >= 2; in gst_uri_is_valid() 404 gst_uri_get_protocol (const gchar * uri) in gst_uri_get_protocol() argument 408 if (!gst_uri_is_valid (uri)) in gst_uri_get_protocol() 411 colon = strstr (uri, ":"); in gst_uri_get_protocol() [all …]
|
D | gsturi.h | 130 const gchar * uri, 143 gboolean gst_uri_is_valid (const gchar * uri); 146 gchar * gst_uri_get_protocol (const gchar * uri) G_GNUC_MALLOC; 149 gboolean gst_uri_has_protocol (const gchar * uri, 152 gchar * gst_uri_get_location (const gchar * uri) G_GNUC_MALLOC; 162 const gchar * uri, 182 const gchar * uri, 236 GstUri * gst_uri_from_string (const gchar * uri) G_GNUC_MALLOC; 239 GstUri * gst_uri_from_string_escaped (const gchar * uri) G_GNUC_MALLOC; 243 const gchar * uri) G_GNUC_MALLOC; [all …]
|
/third_party/libcoap/tests/ |
D | test_uri.c | 21 coap_uri_t uri; in t_parse_uri1() local 23 result = coap_split_uri((unsigned char *)teststr, strlen(teststr), &uri); in t_parse_uri1() 25 CU_ASSERT(uri.host.length == 3); in t_parse_uri1() 26 CU_ASSERT_NSTRING_EQUAL(uri.host.s, "::1", 3); in t_parse_uri1() 28 CU_ASSERT(uri.port == COAP_DEFAULT_PORT); in t_parse_uri1() 30 CU_ASSERT(uri.path.length == 16); in t_parse_uri1() 31 CU_ASSERT_NSTRING_EQUAL(uri.path.s, ".well-known/core", 16); in t_parse_uri1() 33 CU_ASSERT(uri.query.length == 0); in t_parse_uri1() 34 CU_ASSERT(uri.query.s == NULL); in t_parse_uri1() 44 coap_uri_t uri; in t_parse_uri2() local [all …]
|
/third_party/libxml2/ |
D | uri.c | 53 static void xmlCleanURI(xmlURIPtr uri); 209 xmlParse3986Scheme(xmlURIPtr uri, const char **str) { in xmlParse3986Scheme() argument 221 if (uri != NULL) { in xmlParse3986Scheme() 222 if (uri->scheme != NULL) xmlFree(uri->scheme); in xmlParse3986Scheme() 223 uri->scheme = STRNDUP(*str, cur - *str); in xmlParse3986Scheme() 245 xmlParse3986Fragment(xmlURIPtr uri, const char **str) in xmlParse3986Fragment() argument 256 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur)))) in xmlParse3986Fragment() 258 if (uri != NULL) { in xmlParse3986Fragment() 259 if (uri->fragment != NULL) in xmlParse3986Fragment() 260 xmlFree(uri->fragment); in xmlParse3986Fragment() [all …]
|
D | testURI.c | 26 xmlURIPtr uri; in handleURI() local 29 uri = xmlCreateURI(); in handleURI() 32 ret = xmlParseURIReference(uri, str); in handleURI() 37 if (uri->scheme) printf("scheme: %s\n", uri->scheme); in handleURI() 38 if (uri->opaque) printf("opaque: %s\n", uri->opaque); in handleURI() 39 if (uri->authority) printf("authority: %s\n", uri->authority); in handleURI() 40 if (uri->server) printf("server: %s\n", uri->server); in handleURI() 41 if (uri->user) printf("user: %s\n", uri->user); in handleURI() 42 if (uri->port != 0) printf("port: %d\n", uri->port); in handleURI() 43 if (uri->path) printf("path: %s\n", uri->path); in handleURI() [all …]
|
/third_party/gettext/gnulib-local/lib/libxml/ |
D | uri.c | 81 static void xmlCleanURI(xmlURIPtr uri); 237 xmlParse3986Scheme(xmlURIPtr uri, const char **str) { in xmlParse3986Scheme() argument 249 if (uri != NULL) { in xmlParse3986Scheme() 250 if (uri->scheme != NULL) xmlFree(uri->scheme); in xmlParse3986Scheme() 251 uri->scheme = STRNDUP(*str, cur - *str); in xmlParse3986Scheme() 273 xmlParse3986Fragment(xmlURIPtr uri, const char **str) in xmlParse3986Fragment() argument 284 ((uri != NULL) && (uri->cleanup & 1) && (IS_UNWISE(cur)))) in xmlParse3986Fragment() 286 if (uri != NULL) { in xmlParse3986Fragment() 287 if (uri->fragment != NULL) in xmlParse3986Fragment() 288 xmlFree(uri->fragment); in xmlParse3986Fragment() [all …]
|
/third_party/skia/third_party/externals/microhttpd/src/examples/ |
D | mhd2spdy_structures.c | 28 free_uri(struct URI * uri) in free_uri() argument 30 if(NULL != uri) in free_uri() 32 free(uri->full_uri); in free_uri() 33 free(uri->scheme); in free_uri() 34 free(uri->host_and_port); in free_uri() 35 free(uri->host); in free_uri() 36 free(uri->path); in free_uri() 37 free(uri->path_and_more); in free_uri() 38 free(uri->query); in free_uri() 39 free(uri->fragment); in free_uri() [all …]
|
/third_party/glib/glib/ |
D | gbookmarkfile.h | 110 const gchar *uri, 114 const gchar *uri, 118 const gchar *uri, 122 const gchar *uri, 126 const gchar *uri, 130 const gchar *uri, 134 const gchar *uri, 139 const gchar *uri, 143 const gchar *uri, 148 const gchar *uri, [all …]
|
D | guri.c | 231 g_uri_ref (GUri *uri) in g_uri_ref() argument 233 g_return_val_if_fail (uri != NULL, NULL); in g_uri_ref() 235 return g_atomic_rc_box_acquire (uri); in g_uri_ref() 239 g_uri_clear (GUri *uri) in g_uri_clear() argument 241 g_free (uri->scheme); in g_uri_clear() 242 g_free (uri->userinfo); in g_uri_clear() 243 g_free (uri->host); in g_uri_clear() 244 g_free (uri->path); in g_uri_clear() 245 g_free (uri->query); in g_uri_clear() 246 g_free (uri->fragment); in g_uri_clear() [all …]
|
D | gbookmarkfile.c | 189 gchar *uri; member 244 const gchar *uri); 503 bookmark_item_new (const gchar *uri) in bookmark_item_new() argument 507 g_warn_if_fail (uri != NULL); in bookmark_item_new() 510 item->uri = g_strdup (uri); in bookmark_item_new() 530 g_free (item->uri); in bookmark_item_free() 564 g_warning ("Item for URI '%s' has no registered applications: skipping.", item->uri); in bookmark_item_dump() 574 escaped_uri = g_markup_escape_text (item->uri, -1); in bookmark_item_dump() 740 const gchar *uri, *added, *modified, *visited; in parse_bookmark_element() local 749 uri = added = modified = visited = NULL; in parse_bookmark_element() [all …]
|
/third_party/flutter/flutter/packages/flutter_tools/test/general.shard/ |
D | protocol_discovery_test.dart | 46 testUsingContext('returns non-null uri future', () async { 48 expect(discoverer.uri, isNotNull); 51 testUsingContext('discovers uri if logs already produced output', () async { 55 final Uri uri = await discoverer.uri; 56 expect(uri.port, 9999); 57 expect('$uri', 'http://127.0.0.1:9999'); 60 testUsingContext('discovers uri if logs not yet produced output', () async { 62 final Future<Uri> uriFuture = discoverer.uri; 64 final Uri uri = await uriFuture; 65 expect(uri.port, 3333); [all …]
|
/third_party/libsoup/tests/ |
D | requester-test.c | 251 do_async_test (SoupSession *session, SoupURI *uri, in do_async_test() argument 271 request = soup_requester_request_uri (requester, uri, NULL); in do_async_test() 273 request = soup_session_request_uri (session, uri, NULL); in do_async_test() 325 SoupURI *uri; in do_test_for_thread_and_context() local 340 uri = soup_uri_new_with_base (base_uri, "/chunked"); in do_test_for_thread_and_context() 341 do_async_test (session, uri, test_sent, in do_test_for_thread_and_context() 344 soup_uri_free (uri); in do_test_for_thread_and_context() 347 uri = soup_uri_new_with_base (base_uri, "/auth"); in do_test_for_thread_and_context() 348 do_async_test (session, uri, auth_test_sent, in do_test_for_thread_and_context() 351 soup_uri_free (uri); in do_test_for_thread_and_context() [all …]
|
D | uri-parsing-test.c | 278 SoupURI *uri; in do_uri() local 284 uri = soup_uri_new_with_base (base_uri, in_uri); in do_uri() 288 uri = soup_uri_new (in_uri); in do_uri() 291 if (!uri) { in do_uri() 297 g_assert_cmpstr (uri->scheme, ==, bits->scheme); in do_uri() 298 g_assert_cmpstr (uri->user, ==, bits->user); in do_uri() 299 g_assert_cmpstr (uri->password, ==, bits->password); in do_uri() 300 g_assert_cmpstr (uri->host, ==, bits->host); in do_uri() 301 g_assert_cmpuint (uri->port, ==, bits->port); in do_uri() 302 g_assert_cmpstr (uri->path, ==, bits->path); in do_uri() [all …]
|
D | auth-test.c | 292 char *uri; in do_pipelined_auth_test() local 305 uri = g_strconcat (base_uri, "Basic/realm1/", NULL); in do_pipelined_auth_test() 307 msg = soup_message_new (SOUP_METHOD_GET, uri); in do_pipelined_auth_test() 315 g_free (uri); in do_pipelined_auth_test() 417 const char *nth, const char *uri, gboolean use_auth_cache, in do_digest_nonce_test() argument 423 msg = soup_message_new (SOUP_METHOD_GET, uri); in do_digest_nonce_test() 458 char *uri; in do_digest_expiration_test() local 464 uri = g_strconcat (base_uri, "Digest/realm1/", NULL); in do_digest_expiration_test() 465 do_digest_nonce_test (session, "First", uri, TRUE, TRUE, TRUE); in do_digest_expiration_test() 466 g_free (uri); in do_digest_expiration_test() [all …]
|
/third_party/glib/glib/tests/ |
D | uri.c | 100 char *uri; member 201 res = g_filename_from_uri (file_from_uri_tests[i].uri, in run_file_from_uri_tests() 274 gchar *uri, *hostname, *res; in run_file_roundtrip_tests() local 283 uri = g_filename_to_uri (file_to_uri_tests[i].filename, in run_file_roundtrip_tests() 289 res = g_filename_from_uri (uri, &hostname, &error); in run_file_roundtrip_tests() 295 g_free (uri); in run_file_roundtrip_tests() 776 GUri *uri; in test_uri_parsing_absolute() local 780 uri = g_uri_parse (test->orig, test->flags, &error); in test_uri_parsing_absolute() 785 g_assert_cmpstr (g_uri_get_scheme (uri), ==, test->expected_parts.scheme); in test_uri_parsing_absolute() 786 g_assert_cmpstr (g_uri_get_userinfo (uri), ==, test->expected_parts.userinfo); in test_uri_parsing_absolute() [all …]
|
/third_party/libxml2/python/tests/ |
D | tstURI.py | 8 uri = libxml2.parseURI("http://example.org:8088/foo/bar?query=simple#fragid") variable 9 if uri.scheme() != 'http': 12 if uri.server() != 'example.org': 15 if uri.port() != 8088: 18 if uri.path() != '/foo/bar': 21 if uri.query() != 'query=simple': 24 if uri.fragment() != 'fragid': 27 uri.setScheme("https") 28 uri.setPort(223) 29 uri.setFragment(None) [all …]
|
/third_party/grpc/src/core/ext/filters/client_channel/ |
D | parse_address.cc | 46 bool grpc_parse_unix(const grpc_uri* uri, in grpc_parse_unix() argument 48 if (strcmp("unix", uri->scheme) != 0) { in grpc_parse_unix() 49 gpr_log(GPR_ERROR, "Expected 'unix' scheme, got '%s'", uri->scheme); in grpc_parse_unix() 55 const size_t path_len = strnlen(uri->path, maxlen); in grpc_parse_unix() 58 strcpy(un->sun_path, uri->path); in grpc_parse_unix() 65 bool grpc_parse_unix(const grpc_uri* uri, in grpc_parse_unix() argument 112 bool grpc_parse_ipv4(const grpc_uri* uri, in grpc_parse_ipv4() argument 114 if (strcmp("ipv4", uri->scheme) != 0) { in grpc_parse_ipv4() 115 gpr_log(GPR_ERROR, "Expected 'ipv4' scheme, got '%s'", uri->scheme); in grpc_parse_ipv4() 118 const char* host_port = uri->path; in grpc_parse_ipv4() [all …]
|
/third_party/libcoap/src/ |
D | uri.c | 52 coap_uri_t *uri, in coap_split_uri_sub() argument 59 if (!str_var || !uri) in coap_split_uri_sub() 62 memset(uri, 0, sizeof(coap_uri_t)); in coap_split_uri_sub() 63 uri->port = COAP_DEFAULT_PORT; in coap_split_uri_sub() 90 uri->scheme = COAP_URI_SCHEME_HTTPS; in coap_split_uri_sub() 91 uri->port = 443; in coap_split_uri_sub() 95 uri->scheme = COAP_URI_SCHEME_HTTP; in coap_split_uri_sub() 96 uri->port = 80; in coap_split_uri_sub() 118 uri->scheme = COAP_URI_SCHEME_COAPS; in coap_split_uri_sub() 119 uri->port = COAPS_DEFAULT_PORT; in coap_split_uri_sub() [all …]
|
/third_party/grpc/src/core/lib/iomgr/ |
D | parse_address.cc | 48 bool grpc_parse_unix(const grpc_core::URI& uri, in grpc_parse_unix() argument 50 if (uri.scheme() != "unix") { in grpc_parse_unix() 52 uri.scheme().c_str()); in grpc_parse_unix() 56 grpc_core::UnixSockaddrPopulate(uri.path(), resolved_addr); in grpc_parse_unix() 65 bool grpc_parse_unix_abstract(const grpc_core::URI& uri, in grpc_parse_unix_abstract() argument 67 if (uri.scheme() != "unix-abstract") { in grpc_parse_unix_abstract() 69 uri.scheme().c_str()); in grpc_parse_unix_abstract() 73 grpc_core::UnixAbstractSockaddrPopulate(uri.path(), resolved_addr); in grpc_parse_unix_abstract() 125 bool grpc_parse_unix(const grpc_core::URI& uri, in grpc_parse_unix() argument 130 bool grpc_parse_unix_abstract(const grpc_core::URI& uri, in grpc_parse_unix_abstract() argument [all …]
|
/third_party/curl/docs/examples/ |
D | rtsp.c | 80 static void rtsp_options(CURL *curl, const char *uri) in rtsp_options() argument 83 printf("\nRTSP: OPTIONS %s\n", uri); in rtsp_options() 84 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_options() 91 static void rtsp_describe(CURL *curl, const char *uri, in rtsp_describe() argument 96 printf("\nRTSP: DESCRIBE %s\n", uri); in rtsp_describe() 114 static void rtsp_setup(CURL *curl, const char *uri, const char *transport) in rtsp_setup() argument 117 printf("\nRTSP: SETUP %s\n", uri); in rtsp_setup() 119 my_curl_easy_setopt(curl, CURLOPT_RTSP_STREAM_URI, uri); in rtsp_setup() 127 static void rtsp_play(CURL *curl, const char *uri, const char *range) in rtsp_play() argument 130 printf("\nRTSP: PLAY %s\n", uri); in rtsp_play() [all …]
|
/third_party/node/deps/npm/test/need-npm5-update/belongs-in-pacote/ |
D | add-remote-git-get-resolved.js | 14 function tryGetResolved (uri, treeish) { argument 15 return getResolved(npa(uri), uri, treeish) 36 function verify (uri) { argument 38 tryGetResolved(uri, 'decadacefadabade'), 40 uri + ' normalized to canonical form git://github.com/foo/repo.git#decadacefadabade' 53 function verify (uri) { argument 55 tryGetResolved(uri, 'decadacefadabade'), 57 uri + ' normalized to canonical form git+ssh://git@github.com/foo/repo.git#decadacefadabade' 75 function verify (uri) { argument 77 tryGetResolved(uri, 'decadacefadabade'), [all …]
|