MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / trimKey

Method trimKey

ij/src/main/java/ij/plugin/frame/Recorder.java:574–583  ·  view source on GitHub ↗
(String key)

Source from the content-addressed store, hash-verified

572 }
573
574 static String trimKey(String key) {
575 int index = key.indexOf(" ");
576 if (index>-1)
577 key = key.substring(0,index);
578 index = key.indexOf(":");
579 if (index>-1)
580 key = key.substring(0,index);
581 key = key.toLowerCase(Locale.US);
582 return key;
583 }
584
585 /** Writes the current command and options to the Recorder window. */
586 public static void saveCommand() {

Callers 2

recordOptionMethod · 0.95
recordPathMethod · 0.95

Calls 2

substringMethod · 0.80
indexOfMethod · 0.45

Tested by

no test coverage detected