MCPcopy Index your code
hub / github.com/OpenSourcePhysics/osp / leftFill

Method leftFill

src/test/AssetsTest.java:120–123  ·  view source on GitHub ↗
(String name, int n)

Source from the content-addressed store, hash-verified

118 }
119
120 private String leftFill(String name, int n) {
121 name = " " + name;
122 return name.substring(name.length() - n);
123 }
124
125 private String rightFill(String name, int n) {
126 return (name + " ").substring(0, n);

Callers 1

getFileListMethod · 0.95

Calls 1

lengthMethod · 0.80

Tested by

no test coverage detected