MCPcopy Index your code
hub / github.com/git/git / url_decode_mem

Function url_decode_mem

url.c:90–102  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88}
89
90char *url_decode_mem(const char *url, int len)
91{
92 struct strbuf out = STRBUF_INIT;
93 const char *colon = memchr(url, ':', len);
94
95 /* Skip protocol part if present */
96 if (colon && url < colon) {
97 strbuf_add(&out, url, colon - url);
98 len -= colon - url;
99 url = colon;
100 }
101 return url_decode_internal(&url, len, NULL, &out, 0);
102}
103
104char *url_percent_decode(const char *encoded)
105{

Callers 2

credential_from_url_1Function · 0.85
url_decodeFunction · 0.85

Calls 2

strbuf_addFunction · 0.85
url_decode_internalFunction · 0.85

Tested by

no test coverage detected