( int sz, String s )
| 40 | } |
| 41 | // Fixed width field |
| 42 | public SB fix( int sz, String s ) { |
| 43 | assert sz >=0; |
| 44 | for( int i=0; i<sz; i++ ) |
| 45 | _sb.append( i < s.length() ? s.charAt(i) : ' '); |
| 46 | return this; |
| 47 | } |
| 48 | |
| 49 | // Not spelled "p" on purpose: too easy to accidentally say "p(1.0)" and |
| 50 | // suddenly call the autoboxed version. |