what-the-bank/sources/o/Bww.java

162 lines
4.2 KiB
Java
Raw Permalink Normal View History

2024-07-27 18:17:47 +07:00
package o;
import java.util.Locale;
/* loaded from: classes.dex */
public final class Bww {
public static final InterfaceC16957sii b = new LWm(null, false);
public static final InterfaceC16957sii g = new LWm(null, true);
public static final InterfaceC16957sii d = new LWm(HBt.b, false);
public static final InterfaceC16957sii a = new LWm(HBt.b, true);
public static final InterfaceC16957sii e = new LWm(Sts.d, false);
public static final InterfaceC16957sii c = jbe.b;
/* JADX INFO: Access modifiers changed from: package-private */
/* loaded from: classes.dex */
public interface RVV {
int e(CharSequence charSequence, int i, int i2);
}
static int a(int i) {
if (i != 0) {
return (i == 1 || i == 2) ? 0 : 2;
}
return 1;
}
static int e(int i) {
if (i != 0) {
if (i == 1 || i == 2) {
return 0;
}
switch (i) {
case 14:
case 15:
break;
case 16:
case 17:
return 0;
default:
return 2;
}
}
return 1;
}
/* loaded from: classes.dex */
static abstract class IeS implements InterfaceC16957sii {
private final RVV d;
protected abstract boolean c();
IeS(RVV rvv) {
this.d = rvv;
}
@Override // o.InterfaceC16957sii
public boolean b(CharSequence charSequence, int i, int i2) {
if (charSequence == null || i < 0 || i2 < 0 || charSequence.length() - i2 < i) {
throw new IllegalArgumentException();
}
if (this.d == null) {
return c();
}
return e(charSequence, i, i2);
}
private boolean e(CharSequence charSequence, int i, int i2) {
int e = this.d.e(charSequence, i, i2);
if (e == 0) {
return true;
}
if (e != 1) {
return c();
}
return false;
}
}
/* loaded from: classes.dex */
static class LWm extends IeS {
private final boolean e;
LWm(RVV rvv, boolean z) {
super(rvv);
this.e = z;
}
@Override // o.Bww.IeS
protected boolean c() {
return this.e;
}
}
/* loaded from: classes.dex */
static class HBt implements RVV {
static final HBt b = new HBt();
@Override // o.Bww.RVV
public int e(CharSequence charSequence, int i, int i2) {
int i3 = 2;
for (int i4 = i; i4 < i2 + i && i3 == 2; i4++) {
i3 = Bww.e(Character.getDirectionality(charSequence.charAt(i4)));
}
return i3;
}
private HBt() {
}
}
/* loaded from: classes.dex */
static class Sts implements RVV {
static final Sts d = new Sts(true);
private final boolean a;
@Override // o.Bww.RVV
public int e(CharSequence charSequence, int i, int i2) {
int i3 = i;
boolean z = false;
while (i3 < i2 + i) {
int a = Bww.a(Character.getDirectionality(charSequence.charAt(i3)));
if (a != 0) {
if (a != 1) {
continue;
i3++;
z = z;
} else if (!this.a) {
return 1;
}
} else if (this.a) {
return 0;
}
z = true;
i3++;
z = z;
}
if (z) {
return this.a ? 1 : 0;
}
return 2;
}
private Sts(boolean z) {
this.a = z;
}
}
/* loaded from: classes.dex */
static class jbe extends IeS {
static final jbe b = new jbe();
jbe() {
super(null);
}
@Override // o.Bww.IeS
protected boolean c() {
return C16959sjm.b(Locale.getDefault()) == 1;
}
}
}