skip skips the cursor to the cursor + step, if out of range, skip will be set to len.
(step uint)
| 692 | |
| 693 | // skip skips the cursor to the cursor + step, if out of range, skip will be set to len. |
| 694 | func (t *Tokenizer) skip(step uint) { |
| 695 | t.cursor += step |
| 696 | for t.cursor > t.len && t.reader != nil { |
| 697 | t.scan() |
| 698 | } |
| 699 | if t.cursor > t.len { |
| 700 | t.cursor = t.len |
| 701 | } |
| 702 | } |
| 703 | |
| 704 | // skipBlank skips the cursor to the first non-blank rune. |
| 705 | func (t *Tokenizer) skipBlank() { |
no test coverage detected