MCPcopy Index your code
hub / github.com/ccxt/ccxt / padEnd

Method padEnd

java/lib/src/main/java/io/github/ccxt/Helpers.java:1158–1172  ·  view source on GitHub ↗
(Object input, Object length2, Object padStr)

Source from the content-addressed store, hash-verified

1156// }
1157
1158 public static String padEnd(Object input, Object length2, Object padStr) {
1159 int length = toInt(length2);
1160 String str = toString(input);
1161 String pad = toString(padStr);
1162
1163 if (pad.isEmpty()) {
1164 throw new IllegalArgumentException("padStr must not be empty");
1165 }
1166
1167 while (str.length() < length) {
1168 str += pad;
1169 }
1170
1171 return str.substring(0, length);
1172 }
1173
1174 public static String padStart(Object input, Object length2, Object padStr) {
1175 int length = toInt(length2);

Callers 5

printArgFunction · 0.80
mainFunction · 0.80
logFunction · 0.80
logFunction · 0.80
mainFunction · 0.80

Calls 4

toIntMethod · 0.95
toStringMethod · 0.95
isEmptyMethod · 0.80
lengthMethod · 0.45

Tested by

no test coverage detected