Searched refs:uri_text (Results 1 – 4 of 4) sorted by relevance
/external/grpc-grpc/src/core/ext/filters/client_channel/ |
D | uri_parser.cc | 38 static grpc_uri* bad_uri(const char* uri_text, size_t pos, const char* section, in bad_uri() argument 46 gpr_log(GPR_ERROR, "%s%s'", line_prefix, uri_text); in bad_uri() 82 static size_t parse_pchar(const char* uri_text, size_t i) { in parse_pchar() argument 88 char c = uri_text[i]; in parse_pchar() 115 if (valid_hex(uri_text[i + 1]) && valid_hex(uri_text[i + 2])) { in parse_pchar() 124 static int parse_fragment_or_query(const char* uri_text, size_t* i) { in parse_fragment_or_query() argument 126 while ((c = uri_text[*i]) != 0) { in parse_fragment_or_query() 127 const size_t advance = parse_pchar(uri_text, *i); /* pchar */ in parse_fragment_or_query() 131 if (uri_text[*i] == '?' || uri_text[*i] == '/') { in parse_fragment_or_query() 188 grpc_uri* grpc_uri_parse(const char* uri_text, bool suppress_errors) { in grpc_uri_parse() argument [all …]
|
D | uri_parser.h | 41 grpc_uri* grpc_uri_parse(const char* uri_text, bool suppress_errors);
|
/external/grpc-grpc/test/core/client_channel/ |
D | parse_address_test.cc | 37 static void test_grpc_parse_unix(const char* uri_text, const char* pathname) { in test_grpc_parse_unix() argument 39 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_grpc_parse_unix() 53 static void test_grpc_parse_unix(const char* uri_text, const char* pathname) {} in test_grpc_parse_unix() argument 57 static void test_grpc_parse_ipv4(const char* uri_text, const char* host, in test_grpc_parse_ipv4() argument 60 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_grpc_parse_ipv4() 75 static void test_grpc_parse_ipv6(const char* uri_text, const char* host, in test_grpc_parse_ipv6() argument 78 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_grpc_parse_ipv6() 95 static void test_grpc_parse_ipv6_invalid(const char* uri_text) { in test_grpc_parse_ipv6_invalid() argument 97 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_grpc_parse_ipv6_invalid()
|
D | uri_parser_test.cc | 29 static void test_succeeds(const char* uri_text, const char* scheme, in test_succeeds() argument 33 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_succeeds() 44 static void test_fails(const char* uri_text) { in test_fails() argument 46 GPR_ASSERT(nullptr == grpc_uri_parse(uri_text, 0)); in test_fails() 52 const char* uri_text = "http://foo/path?a&b=B&c=&#frag"; in test_query_parts() local 53 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_query_parts() 86 const char* uri_text = "http://auth/path?foo=bar=baz&foobar=="; in test_query_parts() local 87 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_query_parts() 104 const char* uri_text = "http://foo/path"; in test_query_parts() local 105 grpc_uri* uri = grpc_uri_parse(uri_text, 0); in test_query_parts()
|