- 28,932 files - Full Java source code - Smali files - Resources Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
28 lines
838 B
Java
28 lines
838 B
Java
package csdk.gluads.jsevaluator;
|
|
|
|
/* loaded from: classes4.dex */
|
|
public class JsFunctionCallFormatter {
|
|
public static String paramToString(Object obj) {
|
|
if (obj instanceof String) {
|
|
return String.format("\"%s\"", ((String) obj).replace("\\", "\\\\").replace("\"", "\\\"").replace("\n", "\\n"));
|
|
}
|
|
try {
|
|
obj.toString();
|
|
return obj.toString();
|
|
} catch (NumberFormatException unused) {
|
|
return "";
|
|
}
|
|
}
|
|
|
|
public static String toString(String str, Object... objArr) {
|
|
StringBuilder sb = new StringBuilder();
|
|
for (Object obj : objArr) {
|
|
if (sb.length() > 0) {
|
|
sb.append(", ");
|
|
}
|
|
sb.append(paramToString(obj));
|
|
}
|
|
return String.format("%s(%s)", str, sb);
|
|
}
|
|
}
|