Lines Matching full:current
214 const char* current = begin;
268 headers->whitespace_1_idx_ = current - begin;
269 // This loop is commented out as it is never used in current code. This is
280 while (*current <= ' ') {
281 ++current;
285 headers->non_whitespace_1_idx_ = current - begin;
287 // The first time through, we're guaranteed that the current character
291 ++current;
292 if (current == end) {
293 headers->whitespace_2_idx_ = current - begin;
294 headers->non_whitespace_2_idx_ = current - begin;
295 headers->whitespace_3_idx_ = current - begin;
296 headers->non_whitespace_3_idx_ = current - begin;
297 headers->whitespace_4_idx_ = current - begin;
309 } while (*current > ' ');
311 headers->whitespace_2_idx_ = current - begin;
313 ++current;
315 // at the end of the line, current can never == end while in this function.
316 } while (*current <= ' ');
318 headers->non_whitespace_2_idx_ = current - begin;
320 ++current;
321 if (current == end) {
322 headers->whitespace_3_idx_ = current - begin;
323 headers->non_whitespace_3_idx_ = current - begin;
324 headers->whitespace_4_idx_ = current - begin;
333 } while (*current > ' ');
335 headers->whitespace_3_idx_ = current - begin;
337 ++current;
339 // at the end of the line, current can never == end while in this function.
340 } while (*current <= ' ');
342 headers->non_whitespace_3_idx_ = current - begin;
357 // headers->set_first_line(non_whitespace_1_idx_, current);
457 // 'current' points to a char which is ':'.
463 const char* current,
466 const char* colon_loc = current;
469 DCHECK_EQ(':', *current);
475 --current;
476 while (current > line_begin && *current <= ' ') --current;
477 current += (current != colon_loc);
478 current_header_line->key_end_idx = current - stream_begin;
480 current = colon_loc;
481 DCHECK_EQ(':', *current);
482 ++current;
483 while (current < line_end && *current <= ' ') ++current;
484 current_header_line->value_begin_idx = current - stream_begin;
504 const char* current = stream_begin + lines_[1].first;
506 // This code looks for a colon in the current line... but it also looks
507 // beyond the current line. If there is no colon in the current line, then
555 if (current >= line_end) {
561 } else if (current < line_begin) {
564 // about the presence of any colon before the beginning of the current
566 current = line_begin;
569 while (current < header_lines_end_m16) {
571 _mm_loadu_si128(reinterpret_cast<const __m128i *>(current));
576 current += 16;
579 current += (ffs(colon_msk) - 1);
580 if (current > line_end) {
586 for (; current < line_end; ++current) {
587 if (*current != ':') {
602 DCHECK_EQ(*current, ':');
603 DCHECK_LE(current - stream_begin, line_end - stream_begin);
604 DCHECK_LE(stream_begin - stream_begin, current - stream_begin);
607 current_header_line.key_end_idx = current - stream_begin;
609 if (current < line_end) {
614 current,
1024 // Increment current by the index of the first set bit
1251 const char* current = input;
1252 const char* on_entry = current;
1253 const char* end = current + size;
1281 current += ProcessHeaders(input, bytes_to_process);
1304 while (current < end) {
1350 while (current < end) {
1351 const char c = *current;
1352 ++current;
1364 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1378 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1383 --current;
1389 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1397 const char* extensions_start = current;
1399 while (current < end) {
1400 const char c = *current;
1403 (extensions_start == current) ?
1405 current - extensions_start - 1;
1408 ++current;
1426 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1431 while (current < end) {
1436 size_t bytes_remaining = end - current;
1439 const char* tmp_current = current + consumed_bytes;
1441 visitor_->ProcessBodyData(current, consumed_bytes);
1442 on_entry = current = tmp_current;
1449 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1454 while (current < end) {
1455 const char c = *current;
1456 ++current;
1463 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1468 while (current < end) {
1469 const char c = *current;
1482 ++current;
1490 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1491 on_entry = current;
1497 ++current;
1499 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1505 visitor_->ProcessBodyInput(on_entry, current - on_entry);
1510 while (current < end) {
1511 const char c = *current;
1512 ++current;
1523 visitor_->ProcessTrailerInput(on_entry, current - on_entry);
1528 visitor_->ProcessTrailerInput(on_entry, current - on_entry);
1538 const size_t bytes_remaining = end - current;
1540 visitor_->ProcessBodyInput(current, bytes_remaining);
1541 visitor_->ProcessBodyData(current, bytes_remaining);
1542 current += bytes_remaining;
1552 while (content_length_remaining_ && current < end) {
1554 const size_t bytes_remaining = end - current;
1558 visitor_->ProcessBodyInput(current, consumed_bytes);
1559 visitor_->ProcessBodyData(current, consumed_bytes);
1560 current += consumed_bytes;
1580 << std::string(input, current)
1584 << " consumed: " << (current - input);
1589 return current - input;