MCPcopy Index your code
hub / github.com/processing/processing / nextChar

Method nextChar

java/src/processing/mode/java/AutoFormat.java:294–303  ·  view source on GitHub ↗

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.

()

Source from the content-addressed store, hash-verified

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 /**

Callers 4

readForNewLineMethod · 0.95
formatMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected