Home | History | Annotate | Download | only in src

Lines Matching full:current

106 bool SubStringEquals(Iterator* current,
109 ASSERT(**current == *substring);
111 ++*current;
112 if (*current == end || **current != *substring) return false;
114 ++*current;
123 Iterator* current,
125 while (*current != end) {
126 if (!unicode_cache->IsWhiteSpace(**current)) return true;
127 ++*current;
133 // Parsing integers with radix 2, 4, 8, 16, 32. Assumes current != end.
136 Iterator current,
140 ASSERT(current != end);
143 while (*current == '0') {
144 ++current;
145 if (current == end) return SignedZero(negative);
154 if (*current >= '0' && *current <= '9' && *current < '0' + radix) {
155 digit = static_cast<char>(*current) - '0';
156 } else if (radix > 10 && *current >= 'a' && *current < 'a' + radix - 10) {
157 digit = static_cast<char>(*current) - 'a' + 10;
158 } else if (radix > 10 && *current >= 'A' && *current < 'A' + radix - 10) {
159 digit = static_cast<char>(*current) - 'A' + 10;
162 !AdvanceToNonspace(unicode_cache, &current, end)) {
187 ++current;
188 if (current == end || !isDigit(*current, radix)) break;
189 zero_tail = zero_tail && *current == '0';
194 AdvanceToNonspace(unicode_cache, &current, end)) {
216 ++current;
217 } while (current != end);
239 Iterator current,
245 if (!AdvanceToNonspace(unicode_cache, &current, end)) {
252 if (*current == '+') {
254 ++current;
255 if (current == end) {
258 } else if (*current == '-') {
259 ++current;
260 if (current == end) {
268 if (*current == '0') {
269 ++current;
270 if (current == end) return SignedZero(negative);
271 if (*current == 'x' || *current == 'X') {
273 ++current;
274 if (current == end) return JunkStringValue();
283 if (*current == '0') {
285 ++current;
286 if (current == end) return SignedZero(negative);
287 if (*current == 'x' || *current == 'X') {
288 ++current;
289 if (current == end) return JunkStringValue();
299 while (*current == '0') {
301 ++current;
302 if (current == end) return SignedZero(negative);
305 if (!leading_zero && !isDigit(*current, radix)) {
313 unicode_cache, current, end, negative, allow_trailing_junk);
316 unicode_cache, current, end, negative, allow_trailing_junk);
319 unicode_cache, current, end, negative, allow_trailing_junk);
323 unicode_cache, current, end, negative, allow_trailing_junk);
327 unicode_cache, current, end, negative, allow_trailing_junk);
341 while (*current >= '0' && *current <= '9') {
346 buffer[buffer_pos++] = static_cast<char>(*current);
348 ++current;
349 if (current == end) break;
353 AdvanceToNonspace(unicode_cache, &current, end)) {
385 if (*current >= '0' && *current < lim_0) {
386 d = *current - '0';
387 } else if (*current >= 'a' && *current < lim_a) {
388 d = *current - 'a' + 10;
389 } else if (*current >= 'A' && *current < lim_A) {
390 d = *current - 'A' + 10;
407 ++current;
408 if (current == end) {
419 AdvanceToNonspace(unicode_cache, &current, end)) {
429 // 1. current == end (other ops are not allowed), current != end.
430 // 2. *current - gets the current character in the sequence.
431 // 3. ++current (advances the position).
434 Iterator current,
440 // 1. Each '++current' statement is followed by check for equality to 'end'.
441 // 2. If AdvanceToNonspace returned false then current == end.
442 // 3. If 'current' becomes be equal to 'end' the function returns or goes to
444 // 4. 'current' is not dereferenced after the 'parsing_done' label.
445 // 5. Code before 'parsing_done' may rely on 'current != end'.
446 if (!AdvanceToNonspace(unicode_cache, &current, end)) {
466 if (*current == '+') {
468 ++current;
469 if (current == end) return JunkStringValue();
470 } else if (*current == '-') {
471 ++current;
472 if (current == end) return JunkStringValue();
477 if (*current == kInfinitySymbol[0]) {
478 if (!SubStringEquals(&current, end, kInfinitySymbol)) {
483 AdvanceToNonspace(unicode_cache, &current, end)) {
492 if (*current == '0') {
493 ++current;
494 if (current == end) return SignedZero(negative);
499 if ((flags & ALLOW_HEX) && (*current == 'x' || *current == 'X')) {
500 ++current;
501 if (current == end || !isDigit(*current, 16)) {
506 current,
513 while (*current == '0') {
514 ++current;
515 if (current == end) return SignedZero(negative);
522 while (*current >= '0' && *current <= '9') {
525 buffer[buffer_pos++] = static_cast<char>(*current);
530 nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
532 octal = octal && *current < '8';
533 ++current;
534 if (current == end) goto parsing_done;
541 if (*current == '.') {
545 ++current;
546 if (current == end) {
558 while (*current == '0') {
559 ++current;
560 if (current == end) return SignedZero(negative);
567 while (*current >= '0' && *current <= '9') {
570 buffer[buffer_pos++] = static_cast<char>(*current);
575 nonzero_digit_dropped = nonzero_digit_dropped || *current != '0';
577 ++current;
578 if (current == end) goto parsing_done;
591 if (*current == 'e' || *current == 'E') {
593 ++current;
594 if (current == end) {
602 if (*current == '+' || *current == '-') {
603 sign = static_cast<char>(*current);
604 ++current;
605 if (current == end) {
614 if (current == end || *current < '0' || *current > '9') {
627 int digit = *current - '0';
634 ++current;
635 } while (current != end && *current >= '0' && *current <= '9');
641 AdvanceToNonspace(unicode_cache, &current, end)) {