46 lines
1.8 KiB
Java
46 lines
1.8 KiB
Java
package o;
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collections;
|
|
|
|
/* renamed from: o.afs, reason: case insensitive filesystem */
|
|
/* loaded from: classes2.dex */
|
|
public final class C2507afs extends Ggl {
|
|
private static final int[] b = {1, 1, 1, 1};
|
|
private static final int[] c = {3, 1, 1};
|
|
private static final int[][] e = {new int[]{1, 1, 3, 3, 1}, new int[]{3, 1, 1, 1, 3}, new int[]{1, 3, 1, 1, 3}, new int[]{3, 3, 1, 1, 1}, new int[]{1, 1, 3, 1, 3}, new int[]{3, 1, 3, 1, 1}, new int[]{1, 3, 3, 1, 1}, new int[]{1, 1, 1, 3, 3}, new int[]{3, 1, 1, 3, 1}, new int[]{1, 3, 1, 3, 1}};
|
|
|
|
@Override // o.Ggl
|
|
protected final Collection<PTS> b() {
|
|
return Collections.singleton(PTS.ITF);
|
|
}
|
|
|
|
@Override // o.Ggl
|
|
public final boolean[] d(String str) {
|
|
int length = str.length();
|
|
if (length % 2 != 0) {
|
|
throw new IllegalArgumentException("The length of the input should be even");
|
|
}
|
|
if (length > 80) {
|
|
throw new IllegalArgumentException("Requested contents should be less than 80 digits long, but got ".concat(String.valueOf(length)));
|
|
}
|
|
a(str);
|
|
boolean[] zArr = new boolean[(length * 9) + 9];
|
|
int b2 = b(zArr, 0, b, true);
|
|
for (int i = 0; i < length; i += 2) {
|
|
int digit = Character.digit(str.charAt(i), 10);
|
|
int digit2 = Character.digit(str.charAt(i + 1), 10);
|
|
int[] iArr = new int[10];
|
|
for (int i2 = 0; i2 < 5; i2++) {
|
|
int i3 = i2 << 1;
|
|
int[][] iArr2 = e;
|
|
iArr[i3] = iArr2[digit][i2];
|
|
iArr[i3 + 1] = iArr2[digit2][i2];
|
|
}
|
|
b2 += b(zArr, b2, iArr, true);
|
|
}
|
|
b(zArr, b2, c, true);
|
|
return zArr;
|
|
}
|
|
}
|