MCPcopy Create free account
hub / github.com/SeaOfNodes/Simple / fix

Method fix

chapter24/src/main/java/com/seaofnodes/simple/util/SB.java:48–52  ·  view source on GitHub ↗
( int sz, String s )

Source from the content-addressed store, hash-verified

46
47 // Fixed width field
48 public SB fix( int sz, String s ) {
49 for( int i=0; i<sz; i++ )
50 _sb.append( i < s.length() ? s.charAt(i) : ' ');
51 return this;
52 }
53 public char at(int idx ) { return _sb.charAt(idx); }
54
55 // Not spelled "p" on purpose: too easy to accidentally say "p(1.0)" and

Callers 4

printCFGMethod · 0.95
printMethod · 0.45
doBlockMethod · 0.45
doInstMethod · 0.45

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected