Lines Matching refs:cursor_

225     if (!is_xdigit(cursor_[i]))  in ParseHexNum()
228 std::string target(cursor_, cursor_ + nibbles); in ParseHexNum()
230 cursor_ += nibbles; in ParseHexNum()
235 if (static_cast<unsigned char>(*cursor_) != 0xef) return NoError(); in SkipByteOrderMark()
236 cursor_++; in SkipByteOrderMark()
237 if (static_cast<unsigned char>(*cursor_) != 0xbb) in SkipByteOrderMark()
239 cursor_++; in SkipByteOrderMark()
240 if (static_cast<unsigned char>(*cursor_) != 0xbf) in SkipByteOrderMark()
242 cursor_++; in SkipByteOrderMark()
252 bool seen_newline = cursor_ == source_; in Next()
256 char c = *cursor_++; in Next()
260 cursor_--; in Next()
284 while (*cursor_ != c) { in Next()
285 if (*cursor_ < ' ' && static_cast<signed char>(*cursor_) >= 0) in Next()
287 if (*cursor_ == '\\') { in Next()
289 cursor_++; in Next()
290 if (unicode_high_surrogate != -1 && *cursor_ != 'u') { in Next()
294 switch (*cursor_) { in Next()
297 cursor_++; in Next()
301 cursor_++; in Next()
305 cursor_++; in Next()
309 cursor_++; in Next()
313 cursor_++; in Next()
317 cursor_++; in Next()
321 cursor_++; in Next()
325 cursor_++; in Next()
329 cursor_++; in Next()
332 cursor_++; in Next()
339 cursor_++; in Next()
377 attr_is_trivial_ascii_string_ &= check_in_range(*cursor_, ' ', '~'); in Next()
379 attribute_ += *cursor_++; in Next()
385 cursor_++; in Next()
394 if (*cursor_ == '/') { in Next()
395 const char *start = ++cursor_; in Next()
396 while (*cursor_ && *cursor_ != '\n' && *cursor_ != '\r') cursor_++; in Next()
401 doc_comment_.push_back(std::string(start + 1, cursor_)); in Next()
404 } else if (*cursor_ == '*') { in Next()
405 cursor_++; in Next()
407 while (*cursor_ != '*' || cursor_[1] != '/') { in Next()
408 if (*cursor_ == '\n') MarkNewLine(); in Next()
409 if (!*cursor_) return Error("end of file in comment"); in Next()
410 cursor_++; in Next()
412 cursor_ += 2; in Next()
420 if (IsIdentifierStart(c) || (has_sign && IsIdentifierStart(*cursor_))) { in Next()
422 const char *start = cursor_ - 1; in Next()
423 while (IsIdentifierStart(*cursor_) || is_digit(*cursor_)) cursor_++; in Next()
424 attribute_.append(start, cursor_); in Next()
430 if (!dot_lvl && !is_digit(*cursor_)) return NoError(); // enum? in Next()
433 const auto start = cursor_ - 1; in Next()
434 auto start_digits = !is_digit(c) ? cursor_ : cursor_ - 1; in Next()
435 if (!is_digit(c) && is_digit(*cursor_)){ in Next()
436 start_digits = cursor_; // see digit in cursor_ position in Next()
437 c = *cursor_++; in Next()
440 auto use_hex = dot_lvl && (c == '0') && is_alpha_char(*cursor_, 'X'); in Next()
441 if (use_hex) start_digits = ++cursor_; // '0x' is the prefix, skip it in Next()
445 while (is_xdigit(*cursor_)) cursor_++; in Next()
447 while (is_digit(*cursor_)) cursor_++; in Next()
449 } while ((*cursor_ == '.') && (++cursor_) && (--dot_lvl >= 0)); in Next()
451 if ((dot_lvl >= 0) && (cursor_ > start_digits)) { in Next()
453 if (use_hex && !dot_lvl) start_digits = cursor_; in Next()
454 if ((use_hex && is_alpha_char(*cursor_, 'P')) || in Next()
455 is_alpha_char(*cursor_, 'E')) { in Next()
457 cursor_++; in Next()
458 if (*cursor_ == '+' || *cursor_ == '-') cursor_++; in Next()
459 start_digits = cursor_; // the exponent-part has to have digits in Next()
461 while (is_digit(*cursor_)) cursor_++; in Next()
462 if (*cursor_ == '.') { in Next()
463 cursor_++; // If see a dot treat it as part of invalid number. in Next()
469 if ((dot_lvl >= 0) && (cursor_ > start_digits)) { in Next()
470 attribute_.append(start, cursor_); in Next()
474 return Error("invalid number: " + std::string(start, cursor_)); in Next()
1206 auto cursor_at_value_begin = cursor_; in ParseNestedFlatbuffer()
1208 std::string substring(cursor_at_value_begin - 1, cursor_ - 1); in ParseNestedFlatbuffer()
1399 if (token_ == kTokenIdentifier && *cursor_ == '(') { in ParseSingleValue()