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

Method isSanitaryName

app/src/processing/app/Sketch.java:1751–1757  ·  view source on GitHub ↗

Return true if the name is valid for a Processing sketch. Extensions of the form .foo are ignored.

(String name)

Source from the content-addressed store, hash-verified

1749 * ignored.
1750 */
1751 public static boolean isSanitaryName(String name) {
1752 final int dot = name.lastIndexOf('.');
1753 if (dot >= 0) {
1754 name = name.substring(0, dot);
1755 }
1756 return sanitizeName(name).equals(name);
1757 }
1758
1759
1760 static final boolean asciiLetter(char c) {

Callers 2

handleOpenMethod · 0.95
getSketchCodeFilesMethod · 0.95

Calls 2

sanitizeNameMethod · 0.95
equalsMethod · 0.45

Tested by

no test coverage detected