Increments pos, sets EOF if needed, and returns the new chars[pos] or zero if out-of-bounds. Sets lastNonWhitespace if chars[pos] isn't whitespace. Does nothing and returns zero if already at EOF.
()
| 292 | * Does nothing and returns zero if already at EOF. |
| 293 | */ |
| 294 | private char nextChar() { |
| 295 | if (EOF) return 0; |
| 296 | pos++; |
| 297 | if (pos >= chars.length - 1) EOF = true; |
| 298 | if (pos >= chars.length) return 0; |
| 299 | |
| 300 | char retVal = chars[pos]; |
| 301 | if (!Character.isWhitespace(retVal)) lastNonWhitespace = retVal; |
| 302 | return retVal; |
| 303 | } |
| 304 | |
| 305 | |
| 306 | /** |
no outgoing calls
no test coverage detected