87 lines
2.5 KiB
Java
87 lines
2.5 KiB
Java
package o;
|
|
|
|
/* loaded from: classes2.dex */
|
|
final class rPU {
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
/* loaded from: classes2.dex */
|
|
public interface HBt {
|
|
byte b(int i);
|
|
|
|
int d();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static String c(HBt hBt) {
|
|
StringBuilder sb = new StringBuilder(hBt.d());
|
|
for (int i = 0; i < hBt.d(); i++) {
|
|
byte b = hBt.b(i);
|
|
if (b == 34) {
|
|
sb.append("\\\"");
|
|
} else if (b == 39) {
|
|
sb.append("\\'");
|
|
} else if (b != 92) {
|
|
switch (b) {
|
|
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 (b >= 32 && b <= 126) {
|
|
sb.append((char) b);
|
|
break;
|
|
} else {
|
|
sb.append('\\');
|
|
sb.append((char) (((b >>> 6) & 3) + 48));
|
|
sb.append((char) (((b >>> 3) & 7) + 48));
|
|
sb.append((char) ((b & 7) + 48));
|
|
break;
|
|
}
|
|
break;
|
|
}
|
|
} else {
|
|
sb.append("\\\\");
|
|
}
|
|
}
|
|
return sb.toString();
|
|
}
|
|
|
|
/* renamed from: o.rPU$5, reason: invalid class name */
|
|
/* loaded from: classes2.dex */
|
|
static final class AnonymousClass5 implements HBt {
|
|
private QwV b;
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public AnonymousClass5(QwV qwV) {
|
|
this.b = qwV;
|
|
}
|
|
|
|
@Override // o.rPU.HBt
|
|
public final int d() {
|
|
return this.b.g();
|
|
}
|
|
|
|
@Override // o.rPU.HBt
|
|
public final byte b(int i) {
|
|
return this.b.b(i);
|
|
}
|
|
}
|
|
}
|