what-the-bank/sources/o/Xkw.java

87 lines
2.5 KiB
Java

package o;
/* loaded from: classes2.dex */
final class Xkw {
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes2.dex */
public interface Sts {
int b();
byte d(int i);
}
/* JADX INFO: Access modifiers changed from: package-private */
public static String b(Sts sts) {
StringBuilder sb = new StringBuilder(sts.b());
for (int i = 0; i < sts.b(); i++) {
byte d = sts.d(i);
if (d == 34) {
sb.append("\\\"");
} else if (d == 39) {
sb.append("\\'");
} else if (d != 92) {
switch (d) {
case 7:
sb.append("\\a");
break;
case 8:
sb.append("\\b");
break;
case 9:
sb.append("\\t");
break;
case 10:
sb.append("\\n");
break;
case 11:
sb.append("\\v");
break;
case 12:
sb.append("\\f");
break;
case 13:
sb.append("\\r");
break;
default:
if (d >= 32 && d <= 126) {
sb.append((char) d);
break;
} else {
sb.append('\\');
sb.append((char) (((d >>> 6) & 3) + 48));
sb.append((char) (((d >>> 3) & 7) + 48));
sb.append((char) ((d & 7) + 48));
break;
}
break;
}
} else {
sb.append("\\\\");
}
}
return sb.toString();
}
/* renamed from: o.Xkw$1, reason: invalid class name */
/* loaded from: classes2.dex */
final class AnonymousClass1 implements Sts {
private jra e;
/* JADX INFO: Access modifiers changed from: package-private */
public AnonymousClass1(jra jraVar) {
this.e = jraVar;
}
@Override // o.Xkw.Sts
public final int b() {
return this.e.d();
}
@Override // o.Xkw.Sts
public final byte d(int i) {
return this.e.b(i);
}
}
}