Tries to consume the specified codepoint. @param cp codepoint to be consumed @return indicates if the codepoint was consumed
(final int cp)
| 59 | * @return indicates if the codepoint was consumed |
| 60 | */ |
| 61 | public final boolean consume(final int cp) { |
| 62 | final int p = pos; |
| 63 | if(p >= size || cp(token, p) != cp) return false; |
| 64 | pos += cl(token, p); |
| 65 | return true; |
| 66 | } |
| 67 | |
| 68 | @Override |
| 69 | public String toString() { |
no test coverage detected