57 lines
1.9 KiB
Java
57 lines
1.9 KiB
Java
|
package com.google.android.gms.internal.vision;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
final class zzik {
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
public static String zzd(zzeo zzeoVar) {
|
||
|
zzil zzilVar = new zzil(zzeoVar);
|
||
|
StringBuilder sb = new StringBuilder(zzilVar.size());
|
||
|
for (int i = 0; i < zzilVar.size(); i++) {
|
||
|
byte zzai = zzilVar.zzai(i);
|
||
|
if (zzai == 34) {
|
||
|
sb.append("\\\"");
|
||
|
} else if (zzai == 39) {
|
||
|
sb.append("\\'");
|
||
|
} else if (zzai != 92) {
|
||
|
switch (zzai) {
|
||
|
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 (zzai >= 32 && zzai <= 126) {
|
||
|
sb.append((char) zzai);
|
||
|
break;
|
||
|
} else {
|
||
|
sb.append('\\');
|
||
|
sb.append((char) (((zzai >>> 6) & 3) + 48));
|
||
|
sb.append((char) (((zzai >>> 3) & 7) + 48));
|
||
|
sb.append((char) ((zzai & 7) + 48));
|
||
|
break;
|
||
|
}
|
||
|
}
|
||
|
} else {
|
||
|
sb.append("\\\\");
|
||
|
}
|
||
|
}
|
||
|
return sb.toString();
|
||
|
}
|
||
|
}
|