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

Method lookup_com

java/src/processing/mode/java/AutoFormat.java:420–423  ·  view source on GitHub ↗

Sees if buf is of the form [optional whitespace][keyword][optional anything]. It will allow keyword to be directly followed by an alphanumeric, _, or &. Will be different if keyword contains regex codes (except , which is fine).

(final String keyword)

Source from the content-addressed store, hash-verified

418 * Will be different if keyword contains regex codes (except *, which is fine).
419 */
420 private boolean lookup_com(final String keyword) {
421 final String regex = "^\\s*" + keyword.replace("*", "\\*") + ".*$";
422 return Pattern.matches(regex, buf);
423 }
424
425
426 /**

Callers 2

writeIndentedCommentMethod · 0.95
formatMethod · 0.95

Calls 2

matchesMethod · 0.65
replaceMethod · 0.45

Tested by

no test coverage detected