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

Method nextTo

core/src/processing/data/JSONTokener.java:307–319  ·  view source on GitHub ↗

Get the text up but not including the specified character or the end of line, whichever comes first. @param delimiter A delimiter character. @return A string.

(char delimiter)

Source from the content-addressed store, hash-verified

305 * @return A string.
306 */
307 public String nextTo(char delimiter) {
308 StringBuilder sb = new StringBuilder();
309 for (;;) {
310 char c = this.next();
311 if (c == delimiter || c == 0 || c == '\n' || c == '\r') {
312 if (c != 0) {
313 this.back();
314 }
315 return sb.toString().trim();
316 }
317 sb.append(c);
318 }
319 }
320
321
322 /**

Callers

nothing calls this directly

Calls 5

nextMethod · 0.95
backMethod · 0.95
trimMethod · 0.45
toStringMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected