MCPcopy Index your code
hub / github.com/clojure/clojure / format

Method format

src/jvm/clojure/lang/RT.java:2105–2117  ·  view source on GitHub ↗
(Object o, String s, Object... args)

Source from the content-addressed store, hash-verified

2103}
2104
2105static 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
2119static public ISeq doFormat(Writer w, String s, ISeq args) throws IOException{
2120 for(int i = 0; i < s.length();) {

Callers 15

createMethod · 0.80
newThreadMethod · 0.80
setMethod · 0.80
pushThreadBindingsMethod · 0.80
parseMethod · 0.80
InstanceFieldExprMethod · 0.80
InstanceMethodExprMethod · 0.80
StaticMethodExprMethod · 0.80
NewExprMethod · 0.80
compileMethod · 0.80
parseMethod · 0.80
toStringMethod · 0.80

Calls 5

equalsMethod · 0.95
doFormatMethod · 0.95
createMethod · 0.95
derefMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected