139 lines
4.3 KiB
Java
139 lines
4.3 KiB
Java
|
package o;
|
||
|
|
||
|
import java.util.Iterator;
|
||
|
import java.util.regex.MatchResult;
|
||
|
import java.util.regex.Matcher;
|
||
|
import o.C14973gde;
|
||
|
import o.gaG;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: package-private */
|
||
|
/* renamed from: o.gea, reason: case insensitive filesystem */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public final class C15006gea implements gdV {
|
||
|
private final InterfaceC14967gdR a;
|
||
|
private final Matcher c;
|
||
|
private final CharSequence e;
|
||
|
|
||
|
public C15006gea(Matcher matcher, CharSequence charSequence) {
|
||
|
C14957gcv.e(matcher, "");
|
||
|
C14957gcv.e(charSequence, "");
|
||
|
this.c = matcher;
|
||
|
this.e = charSequence;
|
||
|
this.a = new Sts(this);
|
||
|
}
|
||
|
|
||
|
public static final /* synthetic */ MatchResult c(C15006gea c15006gea) {
|
||
|
return c15006gea.c;
|
||
|
}
|
||
|
|
||
|
@Override // o.gdV
|
||
|
public final C14973gde e() {
|
||
|
C14973gde c14973gde;
|
||
|
Matcher matcher = this.c;
|
||
|
int start = matcher.start();
|
||
|
int end = matcher.end();
|
||
|
if (end <= Integer.MIN_VALUE) {
|
||
|
C14973gde.LWm lWm = C14973gde.c;
|
||
|
c14973gde = C14973gde.f;
|
||
|
return c14973gde;
|
||
|
}
|
||
|
return new C14973gde(start, end - 1);
|
||
|
}
|
||
|
|
||
|
@Override // o.gdV
|
||
|
public final String b() {
|
||
|
String group = this.c.group();
|
||
|
C14957gcv.c((Object) group, "");
|
||
|
return group;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.gea$Sts */
|
||
|
/* loaded from: classes6.dex */
|
||
|
public static final class Sts extends AbstractC14868gai<gdT> implements gdU {
|
||
|
final C15006gea e;
|
||
|
|
||
|
@Override // o.AbstractC14868gai, java.util.Collection
|
||
|
public final boolean isEmpty() {
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
Sts(C15006gea c15006gea) {
|
||
|
this.e = c15006gea;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC14868gai, java.util.Collection
|
||
|
public final /* bridge */ boolean contains(Object obj) {
|
||
|
if (obj == null || (obj instanceof gdT)) {
|
||
|
return super.contains((gdT) obj);
|
||
|
}
|
||
|
return false;
|
||
|
}
|
||
|
|
||
|
@Override // o.AbstractC14868gai
|
||
|
public final int d() {
|
||
|
return C15006gea.c(this.e).groupCount() + 1;
|
||
|
}
|
||
|
|
||
|
/* renamed from: o.gea$Sts$LWm */
|
||
|
/* loaded from: classes6.dex */
|
||
|
static final class LWm extends AbstractC14961gcz implements InterfaceC14894gbR<Integer, gdT> {
|
||
|
private Sts d;
|
||
|
|
||
|
@Override // o.InterfaceC14894gbR
|
||
|
public final /* synthetic */ gdT invoke(Integer num) {
|
||
|
C14973gde c14973gde;
|
||
|
int intValue = num.intValue();
|
||
|
Sts sts = this.d;
|
||
|
MatchResult c = C15006gea.c(sts.e);
|
||
|
int start = c.start(intValue);
|
||
|
int end = c.end(intValue);
|
||
|
if (end <= Integer.MIN_VALUE) {
|
||
|
C14973gde.LWm lWm = C14973gde.c;
|
||
|
c14973gde = C14973gde.f;
|
||
|
} else {
|
||
|
c14973gde = new C14973gde(start, end - 1);
|
||
|
}
|
||
|
if (c14973gde.b < 0) {
|
||
|
return null;
|
||
|
}
|
||
|
String group = C15006gea.c(sts.e).group(intValue);
|
||
|
C14957gcv.c((Object) group, "");
|
||
|
return new gdT(group, c14973gde);
|
||
|
}
|
||
|
|
||
|
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||
|
LWm(Sts sts) {
|
||
|
super(1);
|
||
|
this.d = sts;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // java.util.Collection, java.lang.Iterable
|
||
|
public final Iterator<gdT> iterator() {
|
||
|
C14957gcv.e(this, "");
|
||
|
C14973gde c14973gde = new C14973gde(0, r0.size() - 1);
|
||
|
C14957gcv.e(c14973gde, "");
|
||
|
gaG.IeS ieS = new gaG.IeS(c14973gde);
|
||
|
LWm lWm = new LWm(this);
|
||
|
C14957gcv.e(ieS, "");
|
||
|
C14957gcv.e(lWm, "");
|
||
|
return new gdO(ieS, lWm).e();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
@Override // o.gdV
|
||
|
public final gdV d() {
|
||
|
int end = this.c.end() + (this.c.end() == this.c.start() ? 1 : 0);
|
||
|
if (end > this.e.length()) {
|
||
|
return null;
|
||
|
}
|
||
|
Matcher matcher = this.c.pattern().matcher(this.e);
|
||
|
C14957gcv.c(matcher, "");
|
||
|
CharSequence charSequence = this.e;
|
||
|
if (matcher.find(end)) {
|
||
|
return new C15006gea(matcher, charSequence);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|