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

139 lines
3.9 KiB
Java

package o;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* loaded from: classes.dex */
public final class gdW implements Serializable {
public final Pattern e;
public gdW(Pattern pattern) {
C14957gcv.e(pattern, "");
this.e = pattern;
}
/* JADX WARN: Illegal instructions before constructor call */
/*
Code decompiled incorrectly, please refer to instructions dump.
To view partially-correct add '--show-bad-code' argument
*/
public gdW(java.lang.String r2) {
/*
r1 = this;
java.lang.String r0 = ""
o.C14957gcv.e(r2, r0)
java.util.regex.Pattern r2 = java.util.regex.Pattern.compile(r2)
o.C14957gcv.c(r2, r0)
r1.<init>(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: o.gdW.<init>(java.lang.String):void");
}
public static /* synthetic */ gdV e(gdW gdw, CharSequence charSequence) {
C14957gcv.e(charSequence, "");
Matcher matcher = gdw.e.matcher(charSequence);
C14957gcv.c(matcher, "");
if (matcher.find(0)) {
return new C15006gea(matcher, charSequence);
}
return null;
}
public final String a(CharSequence charSequence, String str) {
C14957gcv.e(charSequence, "");
C14957gcv.e(str, "");
String replaceAll = this.e.matcher(charSequence).replaceAll(str);
C14957gcv.c((Object) replaceAll, "");
return replaceAll;
}
public final String b(CharSequence charSequence, String str) {
C14957gcv.e(charSequence, "");
C14957gcv.e(str, "");
String replaceFirst = this.e.matcher(charSequence).replaceFirst(str);
C14957gcv.c((Object) replaceFirst, "");
return replaceFirst;
}
public final List<String> e(CharSequence charSequence) {
C14957gcv.e(charSequence, "");
Matcher matcher = this.e.matcher(charSequence);
if (matcher.find()) {
ArrayList arrayList = new ArrayList(10);
int i = 0;
do {
arrayList.add(charSequence.subSequence(i, matcher.start()).toString());
i = matcher.end();
} while (matcher.find());
arrayList.add(charSequence.subSequence(i, charSequence.length()).toString());
return arrayList;
}
List<String> singletonList = Collections.singletonList(charSequence.toString());
C14957gcv.c(singletonList, "");
return singletonList;
}
public final String toString() {
String obj = this.e.toString();
C14957gcv.c((Object) obj, "");
return obj;
}
private final Object writeReplace() {
String pattern = this.e.pattern();
C14957gcv.c((Object) pattern, "");
return new IeS(pattern, this.e.flags());
}
/* loaded from: classes6.dex */
static final class IeS implements Serializable {
private final int a;
private final String e;
/* loaded from: classes6.dex */
public static final class RVV {
private RVV() {
}
public /* synthetic */ RVV(byte b) {
this();
}
}
public IeS(String str, int i) {
C14957gcv.e(str, "");
this.e = str;
this.a = i;
}
private final Object readResolve() {
Pattern compile = Pattern.compile(this.e, this.a);
C14957gcv.c(compile, "");
return new gdW(compile);
}
static {
new RVV((byte) 0);
}
}
/* loaded from: classes.dex */
public static final class LWm {
private LWm() {
}
public /* synthetic */ LWm(byte b) {
this();
}
}
static {
new LWm((byte) 0);
}
}