discord-jadx/app/src/main/java/d0/g0/u.java

35 lines
1.4 KiB
Java

package d0.g0;
import d0.z.d.m;
import d0.z.d.o;
import kotlin.Pair;
import kotlin.jvm.functions.Function2;
/* compiled from: Strings.kt */
public final class u extends o implements Function2<CharSequence, Integer, Pair<? extends Integer, ? extends Integer>> {
public final /* synthetic */ char[] $delimiters;
public final /* synthetic */ boolean $ignoreCase;
/* JADX INFO: super call moved to the top of the method (can break code semantics) */
public u(char[] cArr, boolean z2) {
super(2);
this.$delimiters = cArr;
this.$ignoreCase = z2;
}
/* Return type fixed from 'java.lang.Object' to match base method */
/* JADX DEBUG: Method arguments types fixed to match base method, original types: [java.lang.Object, java.lang.Object] */
@Override // kotlin.jvm.functions.Function2
public /* bridge */ /* synthetic */ Pair<? extends Integer, ? extends Integer> invoke(CharSequence charSequence, Integer num) {
return invoke(charSequence, num.intValue());
}
public final Pair<Integer, Integer> invoke(CharSequence charSequence, int i) {
m.checkNotNullParameter(charSequence, "$receiver");
int indexOfAny = w.indexOfAny(charSequence, this.$delimiters, i, this.$ignoreCase);
if (indexOfAny < 0) {
return null;
}
return d0.o.to(Integer.valueOf(indexOfAny), 1);
}
}