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

Method bufEnds

java/src/processing/mode/java/AutoFormat.java:387–389  ·  view source on GitHub ↗

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

(final String keyword)

Source from the content-addressed store, hash-verified

385 * Will be different if keyword contains regex codes.
386 */
387 private boolean bufEnds(final String keyword) {
388 return Pattern.matches("^.*(?<![a-zA-Z0-9_&])" + keyword + "\\s*$", buf);
389 }
390
391
392 /**

Callers 1

formatMethod · 0.95

Calls 1

matchesMethod · 0.65

Tested by

no test coverage detected