what-the-bank/sources/com/google/android/gms/internal/firebase_ml/zzws.java

57 lines
1.9 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package com.google.android.gms.internal.firebase_ml;
/* loaded from: classes2.dex */
final class zzws {
/* JADX INFO: Access modifiers changed from: package-private */
public static String zzd(zzsw zzswVar) {
zzwt zzwtVar = new zzwt(zzswVar);
StringBuilder sb = new StringBuilder(zzwtVar.size());
for (int i = 0; i < zzwtVar.size(); i++) {
byte zzcl = zzwtVar.zzcl(i);
if (zzcl == 34) {
sb.append("\\\"");
} else if (zzcl == 39) {
sb.append("\\'");
} else if (zzcl != 92) {
switch (zzcl) {
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 (zzcl >= 32 && zzcl <= 126) {
sb.append((char) zzcl);
break;
} else {
sb.append('\\');
sb.append((char) (((zzcl >>> 6) & 3) + 48));
sb.append((char) (((zzcl >>> 3) & 7) + 48));
sb.append((char) ((zzcl & 7) + 48));
break;
}
}
} else {
sb.append("\\\\");
}
}
return sb.toString();
}
}