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

Method pad

ij/src/main/java/ij/macro/Functions.java:6912–6925  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6910 }
6911
6912 private String pad() {
6913 int intArg = 0;
6914 String stringArg = null;
6915 interp.getLeftParen();
6916 if (isStringArg())
6917 stringArg = getString();
6918 else
6919 intArg = (int)interp.getExpression();
6920 int digits = (int)getLastArg();
6921 if (stringArg!=null)
6922 return IJ.pad(stringArg, digits);
6923 else
6924 return IJ.pad(intArg, digits);
6925 }
6926
6927 private void renameResults() {
6928 String arg1 = getFirstString();

Callers 2

doStringMethod · 0.95
doIJMethod · 0.95

Calls 6

isStringArgMethod · 0.95
getStringMethod · 0.95
getLastArgMethod · 0.95
padMethod · 0.95
getLeftParenMethod · 0.80
getExpressionMethod · 0.80

Tested by

no test coverage detected