• Home
  • Raw
  • Download

Lines Matching refs:spec

57 int FindNextAuthorityTerminator(const CHAR* spec,  in FindNextAuthorityTerminator()  argument
61 if (IsAuthorityTerminator(spec[i])) in FindNextAuthorityTerminator()
68 void ParseUserInfo(const CHAR* spec, in ParseUserInfo() argument
75 while (colon_offset < user.len && spec[user.begin + colon_offset] != ':') in ParseUserInfo()
91 void ParseServerInfo(const CHAR* spec, in ParseServerInfo() argument
108 int ipv6_terminator = spec[serverinfo.begin] == '[' ? serverinfo.end() : -1; in ParseServerInfo()
113 switch (spec[i]) { in ParseServerInfo()
141 void DoParseAuthority(const CHAR* spec, in DoParseAuthority() argument
159 while (i > auth.begin && spec[i] != '@') in DoParseAuthority()
162 if (spec[i] == '@') { in DoParseAuthority()
164 ParseUserInfo(spec, Component(auth.begin, i - auth.begin), in DoParseAuthority()
166 ParseServerInfo(spec, MakeRange(i + 1, auth.begin + auth.len), in DoParseAuthority()
172 ParseServerInfo(spec, auth, hostname, port_num); in DoParseAuthority()
177 void ParsePath(const CHAR* spec, in ParsePath() argument
199 switch (spec[i]) { in ParsePath()
284 void DoParseAfterScheme(const CHAR* spec, in DoParseAfterScheme() argument
288 int num_slashes = CountConsecutiveSlashes(spec, after_scheme, spec_len); in DoParseAfterScheme()
299 int end_auth = FindNextAuthorityTerminator(spec, after_slashes, spec_len); in DoParseAfterScheme()
308 DoParseAuthority(spec, authority, &parsed->username, &parsed->password, in DoParseAfterScheme()
310 ParsePath(spec, full_path, &parsed->path, &parsed->query, &parsed->ref); in DoParseAfterScheme()
316 void DoParseStandardURL(const CHAR* spec, int spec_len, Parsed* parsed) { in DoParseStandardURL() argument
321 TrimURL(spec, &begin, &spec_len); in DoParseStandardURL()
324 if (DoExtractScheme(spec, spec_len, &parsed->scheme)) { in DoParseStandardURL()
333 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); in DoParseStandardURL()
339 void DoParsePathURL(const CHAR* spec, int spec_len, Parsed* parsed) { in DoParsePathURL() argument
351 TrimURL(spec, &begin, &spec_len); in DoParsePathURL()
362 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) { in DoParsePathURL()
381 void DoParseMailtoURL(const CHAR* spec, int spec_len, Parsed* parsed) { in DoParseMailtoURL() argument
395 TrimURL(spec, &begin, &spec_len); in DoParseMailtoURL()
409 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) { in DoParseMailtoURL()
426 if (spec[i] == '?') { in DoParseMailtoURL()
447 int DoParsePort(const CHAR* spec, const Component& component) { in DoParsePort() argument
456 if (spec[component.begin + i] != '0') { in DoParsePort()
472 CHAR ch = spec[digits_comp.begin + i]; in DoParsePort()
490 void DoExtractFileName(const CHAR* spec, in DoExtractFileName() argument
506 if (spec[i] == ';') { in DoExtractFileName()
515 if (IsURLSlash(spec[i])) { in DoExtractFileName()
529 bool DoExtractQueryKeyValue(const CHAR* spec, in DoExtractQueryKeyValue() argument
543 while (cur < end && spec[cur] != '&' && spec[cur] != '=') in DoExtractQueryKeyValue()
548 if (cur < end && spec[cur] == '=') in DoExtractQueryKeyValue()
553 while (cur < end && spec[cur] != '&') in DoExtractQueryKeyValue()
558 if (cur < end && spec[cur] == '&') in DoExtractQueryKeyValue()
680 void ParseAuthority(const char* spec, in ParseAuthority() argument
686 DoParseAuthority(spec, auth, username, password, hostname, port_num); in ParseAuthority()
689 void ParseAuthority(const char16* spec, in ParseAuthority() argument
695 DoParseAuthority(spec, auth, username, password, hostname, port_num); in ParseAuthority()
730 void ParsePathInternal(const char* spec, in ParsePathInternal() argument
735 ParsePath(spec, path, filepath, query, ref); in ParsePathInternal()
738 void ParsePathInternal(const char16* spec, in ParsePathInternal() argument
743 ParsePath(spec, path, filepath, query, ref); in ParsePathInternal()
746 void ParseAfterScheme(const char* spec, in ParseAfterScheme() argument
750 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); in ParseAfterScheme()
753 void ParseAfterScheme(const char16* spec, in ParseAfterScheme() argument
757 DoParseAfterScheme(spec, spec_len, after_scheme, parsed); in ParseAfterScheme()