MCPcopy Index your code
hub / github.com/arduino/Arduino / checkName

Method checkName

app/src/processing/app/SketchController.java:844–855  ·  view source on GitHub ↗

Convert to sanitized name and alert the user if changes were made.

(String origName)

Source from the content-addressed store, hash-verified

842 * if changes were made.
843 */
844 private static String checkName(String origName) {
845 String newName = BaseNoGui.sanitizeName(origName);
846
847 if (!newName.equals(origName)) {
848 String msg =
849 tr("The sketch name had to be modified.\n" +
850 "Sketch names must start with a letter or number, followed by letters,\n" +
851 "numbers, dashes, dots and underscores. Maximum length is 63 characters.");
852 System.out.println(msg);
853 }
854 return newName;
855 }
856
857
858}

Callers 1

saveAsMethod · 0.95

Calls 3

sanitizeNameMethod · 0.95
trMethod · 0.80
equalsMethod · 0.45

Tested by

no test coverage detected