Lines Matching +defs:start +defs:line
39 // Returns a whole line containing the current token.
50 // Returns 1-based line number of the current token.
58 // For the first token, or when going backwards, start from the beginning of
59 // the buffer. If this token is after the previous token, start from the
61 size_t line = 1;
62 size_t start = 0;
64 start = lastLineNumberOffset;
65 line = lastLineNumber;
68 line += s.substr(start, tokOffset - start).count('\n');
70 // Store the line number of this token for reuse.
72 lastLineNumber = line;
74 return line;
151 // A character that cannot start a word (which is usually a