Home | History | Annotate | Download | only in src

Lines Matching full:begin

75   while (colon_offset < user.len && spec[user.begin + colon_offset] != ':')
80 *username = Component(user.begin, colon_offset);
81 *password = MakeRange(user.begin + colon_offset + 1,
82 user.begin + user.len);
108 int ipv6_terminator = spec[serverinfo.begin] == '[' ? serverinfo.end() : -1;
112 for (int i = serverinfo.begin; i < serverinfo.end(); i++) {
125 *hostname = MakeRange(serverinfo.begin, colon);
158 int i = auth.begin + auth.len - 1;
159 while (i > auth.begin && spec[i] != '@')
164 ParseUserInfo(spec, Component(auth.begin, i - auth.begin),
166 ParseServerInfo(spec, MakeRange(i + 1, auth.begin + auth.len),
194 int path_end = path.begin + path.len;
198 for (int i = path.begin; i < path_end; i++) {
238 if (file_end != path.begin)
239 *filepath = MakeRange(path.begin, file_end);
249 int begin = 0;
250 while (begin < url_len && ShouldTrimFromURL(url[begin]))
251 begin++;
252 if (begin == url_len)
256 for (int i = begin; i < url_len; i++) {
258 *scheme = MakeRange(begin, i);
269 // colon) where we'll begin parsing.
320 int begin = 0;
321 TrimURL(spec, &begin, &spec_len);
331 after_scheme = begin;
350 int begin = 0;
351 TrimURL(spec, &begin, &spec_len);
354 if (begin == spec_len) {
362 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) {
364 parsed->scheme.begin += begin;
376 parsed->path = MakeRange(begin, spec_len);
394 int begin = 0;
395 TrimURL(spec, &begin, &spec_len);
398 if (begin == spec_len) {
409 if (ExtractScheme(&spec[begin], spec_len - begin, &parsed->scheme)) {
411 parsed->scheme.begin += begin;
420 path_begin = begin;
456 if (spec[component.begin + i] != '0') {
457 digits_comp = MakeRange(component.begin + i, component.end());
472 begin + i];
505 for (int i = path.end() - 1; i > path.begin; i--) {
514 for (int i = file_end - 1; i >= path.begin; i--) {
524 *file_name = MakeRange(path.begin, file_end);
536 int start = query->begin;
542 key->begin = cur;
545 key->len = cur - key->begin;
552 value->begin = cur;
555 value->len = cur - value->begin;
580 return scheme.begin;
590 return username.begin;
596 return password.begin;
602 return host.begin;
608 return port.begin - 1; // Back over delimiter.
610 return port.begin; // Don't want delimiter counted.
616 return path.begin;
622 return query.begin - 1; // Back over delimiter.
624 return query.begin; // Don't want delimiter counted.
630 return ref.begin; // Back over delimiter.
634 return ref.begin - 1; // Don't want delimiter counted.