Lines Matching refs:scheme
247 bool DoExtractScheme(const char* url, int url_len, Component* scheme) { in DoExtractScheme() argument
258 *scheme = MakeRange(begin, i); in DoExtractScheme()
322 if (DoExtractScheme(spec, spec_len, &parsed->scheme)) { in DoParseStandardURL()
323 after_scheme = parsed->scheme.end() + 1; // Skip past the colon. in DoParseStandardURL()
328 parsed->scheme.reset(); in DoParseStandardURL()
353 parsed->scheme.reset(); in DoParseFileSystemURL()
360 if (DoExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) { in DoParseFileSystemURL()
362 parsed->scheme.begin += begin; in DoParseFileSystemURL()
364 if (parsed->scheme.end() == spec_len - 1) in DoParseFileSystemURL()
367 inner_start = parsed->scheme.end() + 1; in DoParseFileSystemURL()
370 parsed->scheme.reset(); in DoParseFileSystemURL()
409 inner_parsed.scheme.begin += inner_start; in DoParseFileSystemURL()
425 if (!inner_parsed.scheme.is_valid() || !inner_parsed.path.is_valid() || in DoParseFileSystemURL()
469 parsed->scheme.reset(); in DoParsePathURL()
478 &parsed->scheme)) { in DoParsePathURL()
480 parsed->scheme.begin += scheme_begin; in DoParsePathURL()
481 path_begin = parsed->scheme.end() + 1; in DoParsePathURL()
484 parsed->scheme.reset(); in DoParsePathURL()
514 parsed->scheme.reset(); in DoParseMailtoURL()
524 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) { in DoParseMailtoURL()
526 parsed->scheme.begin += begin; in DoParseMailtoURL()
528 if (parsed->scheme.end() != spec_len - 1) { in DoParseMailtoURL()
529 path_begin = parsed->scheme.end() + 1; in DoParseMailtoURL()
534 parsed->scheme.reset(); in DoParseMailtoURL()
673 : scheme(other.scheme), in Parsed()
689 scheme = other.scheme; in operator =()
719 return scheme.begin; in CountCharactersBefore()
724 if (scheme.is_valid()) in CountCharactersBefore()
725 cur = scheme.end() + 1; // Advance over the ':' at the end of the scheme. in CountCharactersBefore()
788 bool ExtractScheme(const char* url, int url_len, Component* scheme) { in ExtractScheme() argument
789 return DoExtractScheme(url, url_len, scheme); in ExtractScheme()