(Object o, String s, Object... args)
| 2103 | } |
| 2104 | |
| 2105 | static public Object format(Object o, String s, Object... args) throws IOException{ |
| 2106 | Writer w; |
| 2107 | if(o == null) |
| 2108 | w = new StringWriter(); |
| 2109 | else if(Util.equals(o, T)) |
| 2110 | w = (Writer) OUT.deref(); |
| 2111 | else |
| 2112 | w = (Writer) o; |
| 2113 | doFormat(w, s, ArraySeq.create(args)); |
| 2114 | if(o == null) |
| 2115 | return w.toString(); |
| 2116 | return null; |
| 2117 | } |
| 2118 | |
| 2119 | static public ISeq doFormat(Writer w, String s, ISeq args) throws IOException{ |
| 2120 | for(int i = 0; i < s.length();) { |
no test coverage detected