Returns the current codepoint and advances the cursor. @return current codepoint, or -1
()
| 45 | * @return current codepoint, or {@code -1} |
| 46 | */ |
| 47 | public final int next() { |
| 48 | final int p = pos; |
| 49 | if(p < size) { |
| 50 | pos += cl(token, p); |
| 51 | return cp(token, p); |
| 52 | } |
| 53 | return -1; |
| 54 | } |
| 55 | |
| 56 | /** |
| 57 | * Tries to consume the specified codepoint. |