MCPcopy Create free account
hub / github.com/mozilla/rhino / repeat

Method repeat

rhino/src/main/java/org/mozilla/javascript/NativeJSON.java:156–160  ·  view source on GitHub ↗
(char c, int count)

Source from the content-addressed store, hash-verified

154 }
155
156 private static String repeat(char c, int count) {
157 char[] chars = new char[count];
158 Arrays.fill(chars, c);
159 return new String(chars);
160 }
161
162 private static class StringifyState {
163 StringifyState(

Callers 5

stringifyMethod · 0.95
javaSignatureMethod · 0.80
string-repeat.jsFile · 0.80
testFunction · 0.80
print_boardFunction · 0.80

Calls

no outgoing calls

Tested by 1

testFunction · 0.64