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

Method bufStarts

java/src/processing/mode/java/AutoFormat.java:377–379  ·  view source on GitHub ↗

Sees if buf is of the form [optional whitespace][keyword][optional anything]. It won't allow keyword to be directly followed by an alphanumeric, _, or &. Will be different if keyword contains regex codes.

(final String keyword)

Source from the content-addressed store, hash-verified

375 * Will be different if keyword contains regex codes.
376 */
377 private boolean bufStarts(final String keyword) {
378 return Pattern.matches("^\\s*" + keyword + "(?![a-zA-Z0-9_&]).*$", buf);
379 }
380
381
382 /**

Callers 1

writeIndentedLineMethod · 0.95

Calls 1

matchesMethod · 0.65

Tested by

no test coverage detected