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

Method padStart

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

Source from the content-addressed store, hash-verified

1172 }
1173
1174 public static String padStart(Object input, Object length2, Object padStr) {
1175 int length = toInt(length2);
1176 String str = toString(input);
1177 String pad = toString(padStr);
1178
1179 if (pad.isEmpty()) {
1180 throw new IllegalArgumentException("padStr must not be empty");
1181 }
1182
1183 while (str.length() < length) {
1184 str = pad + str;
1185 }
1186
1187 return str.substring(str.length() - length);
1188 }
1189
1190 public static String json(Object obj) {
1191 try {

Callers 15

signHashMethod · 0.95
signHashMethod · 0.95
orderMessageMethod · 0.95
cancelOrderRequestMethod · 0.95
cancelAllOrdersMethod · 0.95
encodeWithdrawMessageMethod · 0.95
signMessageMethod · 0.95
signHashMethod · 0.95
signHashMethod · 0.95
signHashMethod · 0.95
signHashMethod · 0.95
signHashMethod · 0.95

Calls 4

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

Tested by

no test coverage detected