what-the-bank/sources/com/google/android/libraries/places/internal/zzahg.java

61 lines
2.3 KiB
Java
Raw Permalink Normal View History

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