Home
last modified time | relevance | path

Searched refs:scheme_len (Results 1 – 3 of 3) sorted by relevance

/external/cronet/url/
Durl_canon_stdurl.cc120 int DefaultPortForScheme(const char* scheme, int scheme_len) { in DefaultPortForScheme() argument
122 switch (scheme_len) { in DefaultPortForScheme()
124 if (!strncmp(scheme, kHttpScheme, scheme_len)) in DefaultPortForScheme()
128 if (!strncmp(scheme, kHttpsScheme, scheme_len)) in DefaultPortForScheme()
132 if (!strncmp(scheme, kFtpScheme, scheme_len)) in DefaultPortForScheme()
134 else if (!strncmp(scheme, kWssScheme, scheme_len)) in DefaultPortForScheme()
138 if (!strncmp(scheme, kWsScheme, scheme_len)) in DefaultPortForScheme()
Durl_canon.h491 int DefaultPortForScheme(const char* scheme, int scheme_len);
/external/libpcap/
Dpcap.c1725 size_t scheme_len; local
1811 scheme_len = colonp - source;
1812 scheme = malloc(scheme_len + 1);
1818 memcpy(scheme, source, scheme_len);
1819 scheme[scheme_len] = '\0';