Lines Matching refs:current
169 bool SubStringEquals(Iterator* current, in SubStringEquals() argument
172 DCHECK(**current == *substring); in SubStringEquals()
174 ++*current; in SubStringEquals()
175 if (*current == end || **current != *substring) return false; in SubStringEquals()
177 ++*current; in SubStringEquals()
186 Iterator* current, in AdvanceToNonspace() argument
188 while (*current != end) { in AdvanceToNonspace()
189 if (!unicode_cache->IsWhiteSpaceOrLineTerminator(**current)) return true; in AdvanceToNonspace()
190 ++*current; in AdvanceToNonspace()
199 Iterator current, in InternalStringToIntDouble() argument
203 DCHECK(current != end); in InternalStringToIntDouble()
206 while (*current == '0') { in InternalStringToIntDouble()
207 ++current; in InternalStringToIntDouble()
208 if (current == end) return SignedZero(negative); in InternalStringToIntDouble()
217 if (*current >= '0' && *current <= '9' && *current < '0' + radix) { in InternalStringToIntDouble()
218 digit = static_cast<char>(*current) - '0'; in InternalStringToIntDouble()
219 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) { in InternalStringToIntDouble()
220 digit = static_cast<char>(*current) - 'a' + 10; in InternalStringToIntDouble()
221 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) { in InternalStringToIntDouble()
222 digit = static_cast<char>(*current) - 'A' + 10; in InternalStringToIntDouble()
225 !AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToIntDouble()
250 ++current; in InternalStringToIntDouble()
251 if (current == end || !isDigit(*current, radix)) break; in InternalStringToIntDouble()
252 zero_tail = zero_tail && *current == '0'; in InternalStringToIntDouble()
257 AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToIntDouble()
279 ++current; in InternalStringToIntDouble()
280 } while (current != end); in InternalStringToIntDouble()
300 Iterator current, in InternalStringToInt() argument
306 if (!AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToInt()
313 if (*current == '+') { in InternalStringToInt()
315 ++current; in InternalStringToInt()
316 if (current == end) { in InternalStringToInt()
319 } else if (*current == '-') { in InternalStringToInt()
320 ++current; in InternalStringToInt()
321 if (current == end) { in InternalStringToInt()
330 if (*current == '0') { in InternalStringToInt()
331 ++current; in InternalStringToInt()
332 if (current == end) return SignedZero(negative); in InternalStringToInt()
333 if (*current == 'x' || *current == 'X') { in InternalStringToInt()
335 ++current; in InternalStringToInt()
336 if (current == end) return JunkStringValue(); in InternalStringToInt()
342 if (*current == '0') { in InternalStringToInt()
344 ++current; in InternalStringToInt()
345 if (current == end) return SignedZero(negative); in InternalStringToInt()
346 if (*current == 'x' || *current == 'X') { in InternalStringToInt()
347 ++current; in InternalStringToInt()
348 if (current == end) return JunkStringValue(); in InternalStringToInt()
358 while (*current == '0') { in InternalStringToInt()
360 ++current; in InternalStringToInt()
361 if (current == end) return SignedZero(negative); in InternalStringToInt()
364 if (!leading_zero && !isDigit(*current, radix)) { in InternalStringToInt()
372 unicode_cache, current, end, negative, allow_trailing_junk); in InternalStringToInt()
375 unicode_cache, current, end, negative, allow_trailing_junk); in InternalStringToInt()
378 unicode_cache, current, end, negative, allow_trailing_junk); in InternalStringToInt()
382 unicode_cache, current, end, negative, allow_trailing_junk); in InternalStringToInt()
386 unicode_cache, current, end, negative, allow_trailing_junk); in InternalStringToInt()
400 while (*current >= '0' && *current <= '9') { in InternalStringToInt()
405 buffer[buffer_pos++] = static_cast<char>(*current); in InternalStringToInt()
407 ++current; in InternalStringToInt()
408 if (current == end) break; in InternalStringToInt()
412 AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToInt()
444 if (*current >= '0' && *current < lim_0) { in InternalStringToInt()
445 d = *current - '0'; in InternalStringToInt()
446 } else if (*current >= 'a' && *current < lim_a) { in InternalStringToInt()
447 d = *current - 'a' + 10; in InternalStringToInt()
448 } else if (*current >= 'A' && *current < lim_A) { in InternalStringToInt()
449 d = *current - 'A' + 10; in InternalStringToInt()
466 ++current; in InternalStringToInt()
467 if (current == end) { in InternalStringToInt()
478 AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToInt()
493 Iterator current, in InternalStringToDouble() argument
505 if (!AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToDouble()
531 if (*current == '+') { in InternalStringToDouble()
533 ++current; in InternalStringToDouble()
534 if (current == end) return JunkStringValue(); in InternalStringToDouble()
536 } else if (*current == '-') { in InternalStringToDouble()
537 ++current; in InternalStringToDouble()
538 if (current == end) return JunkStringValue(); in InternalStringToDouble()
543 if (*current == kInfinityString[0]) { in InternalStringToDouble()
544 if (!SubStringEquals(¤t, end, kInfinityString)) { in InternalStringToDouble()
549 AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToDouble()
558 if (*current == '0') { in InternalStringToDouble()
559 ++current; in InternalStringToDouble()
560 if (current == end) return SignedZero(sign == NEGATIVE); in InternalStringToDouble()
565 if ((flags & ALLOW_HEX) && (*current == 'x' || *current == 'X')) { in InternalStringToDouble()
566 ++current; in InternalStringToDouble()
567 if (current == end || !isDigit(*current, 16) || sign != NONE) { in InternalStringToDouble()
572 current, in InternalStringToDouble()
578 } else if ((flags & ALLOW_OCTAL) && (*current == 'o' || *current == 'O')) { in InternalStringToDouble()
579 ++current; in InternalStringToDouble()
580 if (current == end || !isDigit(*current, 8) || sign != NONE) { in InternalStringToDouble()
585 current, in InternalStringToDouble()
591 } else if ((flags & ALLOW_BINARY) && (*current == 'b' || *current == 'B')) { in InternalStringToDouble()
592 ++current; in InternalStringToDouble()
593 if (current == end || !isBinaryDigit(*current) || sign != NONE) { in InternalStringToDouble()
598 current, in InternalStringToDouble()
605 while (*current == '0') { in InternalStringToDouble()
606 ++current; in InternalStringToDouble()
607 if (current == end) return SignedZero(sign == NEGATIVE); in InternalStringToDouble()
614 while (*current >= '0' && *current <= '9') { in InternalStringToDouble()
617 buffer[buffer_pos++] = static_cast<char>(*current); in InternalStringToDouble()
622 nonzero_digit_dropped = nonzero_digit_dropped || *current != '0'; in InternalStringToDouble()
624 octal = octal && *current < '8'; in InternalStringToDouble()
625 ++current; in InternalStringToDouble()
626 if (current == end) goto parsing_done; in InternalStringToDouble()
633 if (*current == '.') { in InternalStringToDouble()
637 ++current; in InternalStringToDouble()
638 if (current == end) { in InternalStringToDouble()
650 while (*current == '0') { in InternalStringToDouble()
651 ++current; in InternalStringToDouble()
652 if (current == end) return SignedZero(sign == NEGATIVE); in InternalStringToDouble()
659 while (*current >= '0' && *current <= '9') { in InternalStringToDouble()
662 buffer[buffer_pos++] = static_cast<char>(*current); in InternalStringToDouble()
667 nonzero_digit_dropped = nonzero_digit_dropped || *current != '0'; in InternalStringToDouble()
669 ++current; in InternalStringToDouble()
670 if (current == end) goto parsing_done; in InternalStringToDouble()
683 if (*current == 'e' || *current == 'E') { in InternalStringToDouble()
685 ++current; in InternalStringToDouble()
686 if (current == end) { in InternalStringToDouble()
694 if (*current == '+' || *current == '-') { in InternalStringToDouble()
695 sign = static_cast<char>(*current); in InternalStringToDouble()
696 ++current; in InternalStringToDouble()
697 if (current == end) { in InternalStringToDouble()
706 if (current == end || *current < '0' || *current > '9') { in InternalStringToDouble()
719 int digit = *current - '0'; in InternalStringToDouble()
726 ++current; in InternalStringToDouble()
727 } while (current != end && *current >= '0' && *current <= '9'); in InternalStringToDouble()
733 AdvanceToNonspace(unicode_cache, ¤t, end)) { in InternalStringToDouble()