soul-browser/sources/java/kotlin/text/Regex.java
KaKi87 550ddb0413
Decompile and recreate Soul Browser v1.4.85 with APK CI builds (#1)
* Decompile and recreate Soul Browser v1.4.85 with APK CI builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix CI build: include bundled google.jks and remove PR trigger

The apktool build failed in CI because app/unknown/.../google.jks was
excluded by the *.jks gitignore rule. Whitelist app-bundled JKS files
and commit the missing resource.

Also remove the redundant pull_request workflow trigger.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Change package ID to com.github.kaki87.soulbrowser

Rename the application ID so the rebuilt APK can be installed
alongside the original Soul Browser from Google Play.

- Update AndroidManifest package, permissions, providers, and actions
- Update R class references in smali (com/github/kaki87/soulbrowser/R)
- Update shortcuts.xml targetPackage
- Rename app label to "Soul Rebuild" for easy identification

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install compatibility: remove split APK metadata and bundle native libs

The rebuilt APK still declared requiredSplitTypes and Play Store split
metadata, causing Android to reject standalone installs as incompatible.

- Remove requiredSplitTypes and split-related manifest meta-data
- Merge native libs from all ABI splits with uncompressed storage
- Page-align before signing for extractNativeLibs=false
- Add .so to apktool doNotCompress list

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix install failure: use apksigner v2/v3 and bundle arm64 native libs

Target SDK 36 requires APK Signature Scheme v2+, but jarsigner only
produces v1 signatures, causing Android to reject the install.

- Sign with apksigner (v1+v2+v3) instead of jarsigner
- Add arm64-v8a native libraries from universal Soul Browser 1.4.79
- Set extractNativeLibs=true for reliable sideload installs
- Commit stable debug keystore for consistent signatures across builds

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Add committed debug keystore for consistent APK signatures

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix startup crash: use original classes2.dex desugar libraries

Apktool recompiles smali_classes2 into a broken classes2.dex, causing
ClassNotFoundException for j$.com.android.tools.r8.a at ML Kit init.

Inject the original classes2.dex (Java 8+ desugar libs) after apktool
build instead of using the recompiled version.

Co-authored-by: KaKi87 <KaKi87@pm.me>

* Fix missing drawable resources from density split APKs

The base APK is an app bundle module; density-specific drawables like
seek_thumb_nor_b live in config.xhdpi.apk and were missing after rebuild,
causing Resources$NotFoundException at runtime.

- Merge non-9-patch resources from split APKs before apktool build
- Sync public.xml IDs from R smali only when backing files exist
- Add 713 density-specific resource IDs to public.xml

Co-authored-by: KaKi87 <KaKi87@pm.me>

---------

Co-authored-by: Cursor Agent <cursoragent@cursor.com>
2026-08-10 16:07:14 +02:00

412 lines
22 KiB
Java

package kotlin.text;
import com.google.android.gms.ads.RequestConfiguration;
import j$.util.DesugarCollections;
import java.io.InvalidObjectException;
import java.io.ObjectInputStream;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.EnumSet;
import java.util.List;
import java.util.Set;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import kotlin.ExperimentalStdlibApi;
import kotlin.Metadata;
import kotlin.PublishedApi;
import kotlin.SinceKotlin;
import kotlin.WasExperimental;
import kotlin.collections.CollectionsKt;
import kotlin.jvm.functions.Function0;
import kotlin.jvm.functions.Function1;
import kotlin.jvm.internal.DefaultConstructorMarker;
import kotlin.jvm.internal.Intrinsics;
import kotlin.jvm.internal.SourceDebugExtension;
import kotlin.ranges.RangesKt;
import kotlin.sequences.Sequence;
import kotlin.sequences.SequencesKt;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
@Metadata(d1 = {"\u0000r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\u0018\u0000 52\u00060\u0001j\u0002`\u0002:\u000245B\u0011\b\u0001\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0004\b\u0005\u0010\u0006B\u0011\b\u0016\u0012\u0006\u0010\u0007\u001a\u00020\\u0006\u0004\b\u0005\u0010\tB\u0019\b\u0016\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\u0006\u0010\n\u001a\u00020\u000b¢\u0006\u0004\b\u0005\u0010\fB\u001f\b\u0016\u0012\u0006\u0010\u0007\u001a\u00020\b\u0012\f\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000b0\u000e¢\u0006\u0004\b\u0005\u0010\u000fJ\u0011\u0010\u0015\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0018H\u0086\u0004J\u000e\u0010\u0019\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u0018J\u001a\u0010\u001a\u001a\u0004\u0018\u00010\u001b2\u0006\u0010\u0017\u001a\u00020\u00182\b\b\u0002\u0010\u001c\u001a\u00020\u001dJ\u001e\u0010\u001e\u001a\b\u0012\u0004\u0012\u00020\u001b0\u001f2\u0006\u0010\u0017\u001a\u00020\u00182\b\b\u0002\u0010\u001c\u001a\u00020\u001dJ\u0010\u0010 \u001a\u0004\u0018\u00010\u001b2\u0006\u0010\u0017\u001a\u00020\u0018J\u001a\u0010!\u001a\u0004\u0018\u00010\u001b2\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\"\u001a\u00020\u001dH\u0007J\u0018\u0010#\u001a\u00020\u00162\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010\"\u001a\u00020\u001dH\u0007J\u0016\u0010$\u001a\u00020\b2\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010%\u001a\u00020\bJ\"\u0010$\u001a\u00020\b2\u0006\u0010\u0017\u001a\u00020\u00182\u0012\u0010&\u001a\u000e\u0012\u0004\u0012\u00020\u001b\u0012\u0004\u0012\u00020\u00180'J\u0016\u0010(\u001a\u00020\b2\u0006\u0010\u0017\u001a\u00020\u00182\u0006\u0010%\u001a\u00020\bJ\u001e\u0010)\u001a\b\u0012\u0004\u0012\u00020\b0*2\u0006\u0010\u0017\u001a\u00020\u00182\b\b\u0002\u0010+\u001a\u00020\u001dJ \u0010,\u001a\b\u0012\u0004\u0012\u00020\b0\u001f2\u0006\u0010\u0017\u001a\u00020\u00182\b\b\u0002\u0010+\u001a\u00020\u001dH\u0007J\b\u0010-\u001a\u00020\bH\u0016J\u0006\u0010.\u001a\u00020\u0004J\b\u0010/\u001a\u000200H\u0002J\u0010\u00101\u001a\u0002022\u0006\u0010\u0017\u001a\u000203H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\b8F¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011R\u0016\u0010\u0012\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u000eX\u0082\u000e¢\u0006\u0002\n\u0000R\u0017\u0010\r\u001a\b\u0012\u0004\u0012\u00020\u000b0\u000e8F¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014¨\u00066"}, d2 = {"Lkotlin/text/Regex;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "nativePattern", "Ljava/util/regex/Pattern;", "<init>", "(Ljava/util/regex/Pattern;)V", "pattern", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;)V", "option", "Lkotlin/text/RegexOption;", "(Ljava/lang/String;Lkotlin/text/RegexOption;)V", "options", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "(Ljava/lang/String;Ljava/util/Set;)V", "getPattern", "()Ljava/lang/String;", "_options", "getOptions", "()Ljava/util/Set;", "matches", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "input", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "containsMatchIn", "find", "Lkotlin/text/MatchResult;", "startIndex", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "findAll", "Lkotlin/sequences/Sequence;", "matchEntire", "matchAt", "index", "matchesAt", "replace", "replacement", "transform", "Lkotlin/Function1;", "replaceFirst", "split", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "limit", "splitToSequence", "toString", "toPattern", "writeReplace", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "readObject", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Ljava/io/ObjectInputStream;", "Serialized", "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
@SourceDebugExtension({"SMAP\nRegex.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Regex.kt\nkotlin/text/Regex\n+ 2 Regex.kt\nkotlin/text/RegexKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,404:1\n24#2,3:405\n1#3:408\n*S KotlinDebug\n*F\n+ 1 Regex.kt\nkotlin/text/Regex\n*L\n105#1:405,3\n*E\n"})
/* loaded from: classes4.dex */
public final class Regex implements Serializable {
/* renamed from: Companion, reason: from kotlin metadata */
@NotNull
public static final Companion INSTANCE = new Companion(null);
@Nullable
private Set<? extends RegexOption> _options;
@NotNull
private final Pattern nativePattern;
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\u0003\u0018\u00002\u00020\u0001B\t\b\u0002¢\u0006\u0004\b\u0002\u0010\u0003J\u000e\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007J\u000e\u0010\b\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0007J\u000e\u0010\t\u001a\u00020\u00072\u0006\u0010\u0006\u001a\u00020\u0007J\u0010\u0010\n\u001a\u00020\u000b2\u0006\u0010\f\u001a\u00020\u000bH\u0002¨\u0006\r"}, d2 = {"Lkotlin/text/Regex$Companion;", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "()V", "fromLiteral", "Lkotlin/text/Regex;", "literal", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "escape", "escapeReplacement", "ensureUnicodeCase", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "flags", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Companion {
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
this();
}
/* JADX INFO: Access modifiers changed from: private */
public final int ensureUnicodeCase(int flags) {
return (flags & 2) != 0 ? flags | 64 : flags;
}
@NotNull
public final String escape(@NotNull String literal) {
Intrinsics.checkNotNullParameter(literal, "literal");
String quote = Pattern.quote(literal);
Intrinsics.checkNotNullExpressionValue(quote, "quote(...)");
return quote;
}
@NotNull
public final String escapeReplacement(@NotNull String literal) {
Intrinsics.checkNotNullParameter(literal, "literal");
String quoteReplacement = Matcher.quoteReplacement(literal);
Intrinsics.checkNotNullExpressionValue(quoteReplacement, "quoteReplacement(...)");
return quoteReplacement;
}
@NotNull
public final Regex fromLiteral(@NotNull String literal) {
Intrinsics.checkNotNullParameter(literal, "literal");
return new Regex(literal, RegexOption.LITERAL);
}
private Companion() {
}
}
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0002\b\u0007\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0002\u0018\u0000 \u000f2\u00060\u0001j\u0002`\u0002:\u0001\u000fB\u0017\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0004\b\u0007\u0010\bJ\b\u0010\r\u001a\u00020\u000eH\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\\u0006\u0010"}, d2 = {"Lkotlin/text/Regex$Serialized;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "pattern", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "flags", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "<init>", "(Ljava/lang/String;I)V", "getPattern", "()Ljava/lang/String;", "getFlags", "()I", "readResolve", RequestConfiguration.MAX_AD_CONTENT_RATING_UNSPECIFIED, "Companion", "kotlin-stdlib"}, k = 1, mv = {2, 2, 0}, xi = 48)
/* loaded from: classes4.dex */
public static final class Serialized implements Serializable {
private static final long serialVersionUID = 0;
private final int flags;
@NotNull
private final String pattern;
public Serialized(@NotNull String pattern, int i) {
Intrinsics.checkNotNullParameter(pattern, "pattern");
this.pattern = pattern;
this.flags = i;
}
private final Object readResolve() {
Pattern compile = Pattern.compile(this.pattern, this.flags);
Intrinsics.checkNotNullExpressionValue(compile, "compile(...)");
return new Regex(compile);
}
public final int getFlags() {
return this.flags;
}
@NotNull
public final String getPattern() {
return this.pattern;
}
}
@PublishedApi
public Regex(@NotNull Pattern nativePattern) {
Intrinsics.checkNotNullParameter(nativePattern, "nativePattern");
this.nativePattern = nativePattern;
}
public static /* synthetic */ MatchResult find$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
return regex.find(charSequence, i);
}
public static /* synthetic */ Sequence findAll$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
return regex.findAll(charSequence, i);
}
private final void readObject(ObjectInputStream input) {
throw new InvalidObjectException("Deserialization is supported via proxy only");
}
public static /* synthetic */ List split$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
return regex.split(charSequence, i);
}
public static /* synthetic */ Sequence splitToSequence$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
if ((i2 & 2) != 0) {
i = 0;
}
return regex.splitToSequence(charSequence, i);
}
private final Object writeReplace() {
String pattern = this.nativePattern.pattern();
Intrinsics.checkNotNullExpressionValue(pattern, "pattern(...)");
return new Serialized(pattern, this.nativePattern.flags());
}
public final boolean containsMatchIn(@NotNull CharSequence input) {
Intrinsics.checkNotNullParameter(input, "input");
return this.nativePattern.matcher(input).find();
}
@Nullable
public final MatchResult find(@NotNull CharSequence input, int startIndex) {
Intrinsics.checkNotNullParameter(input, "input");
Matcher matcher = this.nativePattern.matcher(input);
Intrinsics.checkNotNullExpressionValue(matcher, "matcher(...)");
return RegexKt.access$findNext(matcher, startIndex, input);
}
/* JADX WARN: Type inference failed for: r0v3, types: [kotlin.text.b] */
@NotNull
public final Sequence<MatchResult> findAll(@NotNull final CharSequence input, final int startIndex) {
Intrinsics.checkNotNullParameter(input, "input");
if (startIndex >= 0 && startIndex <= input.length()) {
return SequencesKt.q(new Function0() { // from class: kotlin.text.b
@Override // kotlin.jvm.functions.Function0
public final Object invoke() {
MatchResult find;
find = Regex.this.find(input, startIndex);
return find;
}
}, Regex$findAll$2.INSTANCE);
}
StringBuilder s = android.support.v4.media.a.s(startIndex, "Start index out of bounds: ", ", input length: ");
s.append(input.length());
throw new IndexOutOfBoundsException(s.toString());
}
@NotNull
public final Set<RegexOption> getOptions() {
Set set = this._options;
if (set == null) {
final int flags = this.nativePattern.flags();
EnumSet allOf = EnumSet.allOf(RegexOption.class);
Intrinsics.checkNotNull(allOf);
CollectionsKt.s(allOf, new Function1<RegexOption, Boolean>() { // from class: kotlin.text.Regex$special$$inlined$fromInt$1
@Override // kotlin.jvm.functions.Function1
public final Boolean invoke(RegexOption regexOption) {
RegexOption regexOption2 = regexOption;
return Boolean.valueOf((flags & regexOption2.getMask()) == regexOption2.getValue());
}
});
Set<RegexOption> unmodifiableSet = DesugarCollections.unmodifiableSet(allOf);
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(...)");
this._options = unmodifiableSet;
return unmodifiableSet;
}
return set;
}
@NotNull
public final String getPattern() {
String pattern = this.nativePattern.pattern();
Intrinsics.checkNotNullExpressionValue(pattern, "pattern(...)");
return pattern;
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
@Nullable
public final MatchResult matchAt(@NotNull CharSequence input, int index) {
Intrinsics.checkNotNullParameter(input, "input");
Matcher region = this.nativePattern.matcher(input).useAnchoringBounds(false).useTransparentBounds(true).region(index, input.length());
if (region.lookingAt()) {
Intrinsics.checkNotNull(region);
return new MatcherMatchResult(region, input);
}
return null;
}
@Nullable
public final MatchResult matchEntire(@NotNull CharSequence input) {
Intrinsics.checkNotNullParameter(input, "input");
Matcher matcher = this.nativePattern.matcher(input);
Intrinsics.checkNotNullExpressionValue(matcher, "matcher(...)");
return RegexKt.access$matchEntire(matcher, input);
}
public final boolean matches(@NotNull CharSequence input) {
Intrinsics.checkNotNullParameter(input, "input");
return this.nativePattern.matcher(input).matches();
}
@SinceKotlin(version = "1.7")
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
public final boolean matchesAt(@NotNull CharSequence input, int index) {
Intrinsics.checkNotNullParameter(input, "input");
return this.nativePattern.matcher(input).useAnchoringBounds(false).useTransparentBounds(true).region(index, input.length()).lookingAt();
}
@NotNull
public final String replace(@NotNull CharSequence input, @NotNull String replacement) {
Intrinsics.checkNotNullParameter(input, "input");
Intrinsics.checkNotNullParameter(replacement, "replacement");
String replaceAll = this.nativePattern.matcher(input).replaceAll(replacement);
Intrinsics.checkNotNullExpressionValue(replaceAll, "replaceAll(...)");
return replaceAll;
}
@NotNull
public final String replaceFirst(@NotNull CharSequence input, @NotNull String replacement) {
Intrinsics.checkNotNullParameter(input, "input");
Intrinsics.checkNotNullParameter(replacement, "replacement");
String replaceFirst = this.nativePattern.matcher(input).replaceFirst(replacement);
Intrinsics.checkNotNullExpressionValue(replaceFirst, "replaceFirst(...)");
return replaceFirst;
}
@NotNull
public final List<String> split(@NotNull CharSequence input, int limit) {
Intrinsics.checkNotNullParameter(input, "input");
StringsKt__StringsKt.requireNonNegativeLimit(limit);
Matcher matcher = this.nativePattern.matcher(input);
if (limit != 1 && matcher.find()) {
int i = 10;
if (limit > 0) {
i = RangesKt.coerceAtMost(limit, 10);
}
ArrayList arrayList = new ArrayList(i);
int i2 = limit - 1;
int i3 = 0;
do {
arrayList.add(input.subSequence(i3, matcher.start()).toString());
i3 = matcher.end();
if (i2 >= 0 && arrayList.size() == i2) {
break;
}
} while (matcher.find());
arrayList.add(input.subSequence(i3, input.length()).toString());
return arrayList;
}
return CollectionsKt.listOf(input.toString());
}
@SinceKotlin(version = "1.6")
@NotNull
public final Sequence<String> splitToSequence(@NotNull CharSequence input, int limit) {
Intrinsics.checkNotNullParameter(input, "input");
StringsKt__StringsKt.requireNonNegativeLimit(limit);
return SequencesKt.sequence(new Regex$splitToSequence$1(this, input, limit, null));
}
@NotNull
/* renamed from: toPattern, reason: from getter */
public final Pattern getNativePattern() {
return this.nativePattern;
}
@NotNull
public String toString() {
String pattern = this.nativePattern.toString();
Intrinsics.checkNotNullExpressionValue(pattern, "toString(...)");
return pattern;
}
@NotNull
public final String replace(@NotNull CharSequence input, @NotNull Function1<? super MatchResult, ? extends CharSequence> transform) {
Intrinsics.checkNotNullParameter(input, "input");
Intrinsics.checkNotNullParameter(transform, "transform");
int i = 0;
MatchResult find$default = find$default(this, input, 0, 2, null);
if (find$default == null) {
return input.toString();
}
int length = input.length();
StringBuilder sb = new StringBuilder(length);
do {
sb.append(input, i, find$default.getRange().getStart().intValue());
sb.append(transform.invoke(find$default));
i = find$default.getRange().getEndInclusive().intValue() + 1;
find$default = find$default.next();
if (i >= length) {
break;
}
} while (find$default != null);
if (i < length) {
sb.append(input, i, length);
}
String sb2 = sb.toString();
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
return sb2;
}
/* 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 Regex(@org.jetbrains.annotations.NotNull java.lang.String r2) {
/*
r1 = this;
java.lang.String r0 = "pattern"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r2, r0)
java.util.regex.Pattern r2 = java.util.regex.Pattern.compile(r2)
java.lang.String r0 = "compile(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r0)
r1.<init>(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex.<init>(java.lang.String):void");
}
/* 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 Regex(@org.jetbrains.annotations.NotNull java.lang.String r2, @org.jetbrains.annotations.NotNull kotlin.text.RegexOption r3) {
/*
r1 = this;
java.lang.String r0 = "pattern"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r2, r0)
java.lang.String r0 = "option"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r3, r0)
kotlin.text.Regex$Companion r0 = kotlin.text.Regex.INSTANCE
int r3 = r3.getValue()
int r3 = kotlin.text.Regex.Companion.access$ensureUnicodeCase(r0, r3)
java.util.regex.Pattern r2 = java.util.regex.Pattern.compile(r2, r3)
java.lang.String r3 = "compile(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r3)
r1.<init>(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex.<init>(java.lang.String, kotlin.text.RegexOption):void");
}
/* 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 Regex(@org.jetbrains.annotations.NotNull java.lang.String r2, @org.jetbrains.annotations.NotNull java.util.Set<? extends kotlin.text.RegexOption> r3) {
/*
r1 = this;
java.lang.String r0 = "pattern"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r2, r0)
java.lang.String r0 = "options"
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r3, r0)
kotlin.text.Regex$Companion r0 = kotlin.text.Regex.INSTANCE
int r3 = kotlin.text.RegexKt.access$toInt(r3)
int r3 = kotlin.text.Regex.Companion.access$ensureUnicodeCase(r0, r3)
java.util.regex.Pattern r2 = java.util.regex.Pattern.compile(r2, r3)
java.lang.String r3 = "compile(...)"
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r2, r3)
r1.<init>(r2)
return
*/
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex.<init>(java.lang.String, java.util.Set):void");
}
}