Lines Matching refs:index
36 bool TryAddArrayIndexChar(uint32_t* index, Char c) {
39 // The maximum index is 4294967294; for the computation below to not
40 // exceed that, the previous index value must be <= 429496729 if d <= 4,
43 if (*index > 429496729U - ((d + 3) >> 3)) return false;
44 *index = (*index) * 10 + d;
49 bool TryAddIntegerIndexChar(uint64_t* index, Char c) {
52 *index = (*index) * 10 + d;
53 return (*index <= kMaxSafeIntegerUint64);
57 bool StringToIndex(Stream* stream, index_t* index) {
61 // of it to be a legal array index.
63 *index = 0;
67 // Convert string to uint32 array index; character by character.
88 *index = result;