Home
last modified time | relevance | path

Searched refs:dot_lvl (Results 1 – 1 of 1) sorted by relevance

/external/flatbuffers/src/
Didl_parser.cpp429 auto dot_lvl = (c == '.') ? 0 : 1; // dot_lvl==0 <=> exactly one '.' seen in Next() local
430 if (!dot_lvl && !is_digit(*cursor_)) return NoError(); // enum? in Next()
432 if (is_digit(c) || has_sign || !dot_lvl) { in Next()
440 auto use_hex = dot_lvl && (c == '0') && is_alpha_char(*cursor_, 'X'); 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()
456 dot_lvl = 0; // Emulate dot to signal about float-point number. in Next()
464 dot_lvl = -1; // Fall thru to Error(). in Next()
469 if ((dot_lvl >= 0) && (cursor_ > start_digits)) { in Next()
[all …]