86 lines
3.5 KiB
Java
86 lines
3.5 KiB
Java
|
package c.i.e.p.b;
|
|||
|
|
|||
|
import java.text.DecimalFormat;
|
|||
|
/* compiled from: DecodedBitStreamParser */
|
|||
|
public final class b {
|
|||
|
public static final String[] a = {"\nABCDEFGHIJKLMNOPQRSTUVWXYZ\u001c\u001d\u001e \"#$%&'()*+,-./0123456789:", "`abcdefghijklmnopqrstuvwxyz\u001c\u001d\u001e{}~;<=>?[\\]^_ ,./:@!|", "ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖ×ØÙÚ\u001c\u001d\u001eÛÜÝÞߪ¬±²³µ¹º¼½¾
", "àáâãäåæçèéêëìíîïðñòóôõö÷øùú\u001c\u001d\u001eûüýþÿ¡¨«¯°´·¸»¿ ", "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f ¢£¤¥¦§©®¶ ", "\u0000\u0001\u0002\u0003\u0004\u0005\u0006\u0007\b\t\n\u000b\f\r\u000e\u000f\u0010\u0011\u0012\u0013\u0014\u0015\u0016\u0017\u0018\u0019\u001a\u001b\u001c\u001d\u001e\u001f !\"#$%&'()*+,-./0123456789:;<=>?"};
|
|||
|
|
|||
|
public static int a(byte[] bArr, byte[] bArr2) {
|
|||
|
if (bArr2.length != 0) {
|
|||
|
int i = 0;
|
|||
|
for (int i2 = 0; i2 < bArr2.length; i2++) {
|
|||
|
int i3 = bArr2[i2] - 1;
|
|||
|
i += (((1 << (5 - (i3 % 6))) & bArr[i3 / 6]) == 0 ? 0 : 1) << ((bArr2.length - i2) - 1);
|
|||
|
}
|
|||
|
return i;
|
|||
|
}
|
|||
|
throw new IllegalArgumentException();
|
|||
|
}
|
|||
|
|
|||
|
/* JADX INFO: Can't fix incorrect switch cases order, some code will duplicate */
|
|||
|
public static String b(byte[] bArr, int i, int i2) {
|
|||
|
StringBuilder sb = new StringBuilder();
|
|||
|
int i3 = i;
|
|||
|
int i4 = 0;
|
|||
|
int i5 = -1;
|
|||
|
int i6 = 0;
|
|||
|
while (i3 < i + i2) {
|
|||
|
char charAt = a[i4].charAt(bArr[i3]);
|
|||
|
switch (charAt) {
|
|||
|
case 65520:
|
|||
|
case 65521:
|
|||
|
case 65522:
|
|||
|
case 65523:
|
|||
|
case 65524:
|
|||
|
i6 = i4;
|
|||
|
i4 = charAt - 65520;
|
|||
|
i5 = 1;
|
|||
|
break;
|
|||
|
case 65525:
|
|||
|
i5 = 2;
|
|||
|
i6 = i4;
|
|||
|
i4 = 0;
|
|||
|
break;
|
|||
|
case 65526:
|
|||
|
i5 = 3;
|
|||
|
i6 = i4;
|
|||
|
i4 = 0;
|
|||
|
break;
|
|||
|
case 65527:
|
|||
|
i4 = 0;
|
|||
|
i5 = -1;
|
|||
|
break;
|
|||
|
case 65528:
|
|||
|
i4 = 1;
|
|||
|
i5 = -1;
|
|||
|
break;
|
|||
|
case 65529:
|
|||
|
i5 = -1;
|
|||
|
break;
|
|||
|
case 65530:
|
|||
|
default:
|
|||
|
sb.append(charAt);
|
|||
|
break;
|
|||
|
case 65531:
|
|||
|
int i7 = i3 + 1;
|
|||
|
int i8 = i7 + 1;
|
|||
|
int i9 = i8 + 1;
|
|||
|
int i10 = i9 + 1;
|
|||
|
i3 = i10 + 1;
|
|||
|
sb.append(new DecimalFormat("000000000").format((long) ((bArr[i7] << 24) + (bArr[i8] << 18) + (bArr[i9] << 12) + (bArr[i10] << 6) + bArr[i3])));
|
|||
|
break;
|
|||
|
}
|
|||
|
int i11 = i5 - 1;
|
|||
|
if (i5 == 0) {
|
|||
|
i4 = i6;
|
|||
|
}
|
|||
|
i3++;
|
|||
|
i5 = i11;
|
|||
|
}
|
|||
|
while (sb.length() > 0 && sb.charAt(sb.length() - 1) == 65532) {
|
|||
|
sb.setLength(sb.length() - 1);
|
|||
|
}
|
|||
|
return sb.toString();
|
|||
|
}
|
|||
|
}
|