Initial import of ADIF API reverse-engineering toolkit
This commit is contained in:
114
apk_decompiled/sources/kotlin/text/CharCategory.java
Normal file
114
apk_decompiled/sources/kotlin/text/CharCategory.java
Normal file
@@ -0,0 +1,114 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\f\n\u0002\b \b\u0086\u0081\u0002\u0018\u0000 -2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001-B\u0017\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\u0011\u0010\u000b\u001a\u00020\f2\u0006\u0010\r\u001a\u00020\u000eH\u0086\u0002R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nj\u0002\b\u000fj\u0002\b\u0010j\u0002\b\u0011j\u0002\b\u0012j\u0002\b\u0013j\u0002\b\u0014j\u0002\b\u0015j\u0002\b\u0016j\u0002\b\u0017j\u0002\b\u0018j\u0002\b\u0019j\u0002\b\u001aj\u0002\b\u001bj\u0002\b\u001cj\u0002\b\u001dj\u0002\b\u001ej\u0002\b\u001fj\u0002\b j\u0002\b!j\u0002\b\"j\u0002\b#j\u0002\b$j\u0002\b%j\u0002\b&j\u0002\b'j\u0002\b(j\u0002\b)j\u0002\b*j\u0002\b+j\u0002\b,¨\u0006."}, d2 = {"Lkotlin/text/CharCategory;", "", "value", "", "code", "", "(Ljava/lang/String;IILjava/lang/String;)V", "getCode", "()Ljava/lang/String;", "getValue", "()I", "contains", "", "char", "", "UNASSIGNED", "UPPERCASE_LETTER", "LOWERCASE_LETTER", "TITLECASE_LETTER", "MODIFIER_LETTER", "OTHER_LETTER", "NON_SPACING_MARK", "ENCLOSING_MARK", "COMBINING_SPACING_MARK", "DECIMAL_DIGIT_NUMBER", "LETTER_NUMBER", "OTHER_NUMBER", "SPACE_SEPARATOR", "LINE_SEPARATOR", "PARAGRAPH_SEPARATOR", "CONTROL", "FORMAT", "PRIVATE_USE", "SURROGATE", "DASH_PUNCTUATION", "START_PUNCTUATION", "END_PUNCTUATION", "CONNECTOR_PUNCTUATION", "OTHER_PUNCTUATION", "MATH_SYMBOL", "CURRENCY_SYMBOL", "MODIFIER_SYMBOL", "OTHER_SYMBOL", "INITIAL_QUOTE_PUNCTUATION", "FINAL_QUOTE_PUNCTUATION", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CharCategory {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ CharCategory[] $VALUES;
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE;
|
||||
private final String code;
|
||||
private final int value;
|
||||
public static final CharCategory UNASSIGNED = new CharCategory("UNASSIGNED", 0, 0, "Cn");
|
||||
public static final CharCategory UPPERCASE_LETTER = new CharCategory("UPPERCASE_LETTER", 1, 1, "Lu");
|
||||
public static final CharCategory LOWERCASE_LETTER = new CharCategory("LOWERCASE_LETTER", 2, 2, "Ll");
|
||||
public static final CharCategory TITLECASE_LETTER = new CharCategory("TITLECASE_LETTER", 3, 3, "Lt");
|
||||
public static final CharCategory MODIFIER_LETTER = new CharCategory("MODIFIER_LETTER", 4, 4, "Lm");
|
||||
public static final CharCategory OTHER_LETTER = new CharCategory("OTHER_LETTER", 5, 5, "Lo");
|
||||
public static final CharCategory NON_SPACING_MARK = new CharCategory("NON_SPACING_MARK", 6, 6, "Mn");
|
||||
public static final CharCategory ENCLOSING_MARK = new CharCategory("ENCLOSING_MARK", 7, 7, "Me");
|
||||
public static final CharCategory COMBINING_SPACING_MARK = new CharCategory("COMBINING_SPACING_MARK", 8, 8, "Mc");
|
||||
public static final CharCategory DECIMAL_DIGIT_NUMBER = new CharCategory("DECIMAL_DIGIT_NUMBER", 9, 9, "Nd");
|
||||
public static final CharCategory LETTER_NUMBER = new CharCategory("LETTER_NUMBER", 10, 10, "Nl");
|
||||
public static final CharCategory OTHER_NUMBER = new CharCategory("OTHER_NUMBER", 11, 11, "No");
|
||||
public static final CharCategory SPACE_SEPARATOR = new CharCategory("SPACE_SEPARATOR", 12, 12, "Zs");
|
||||
public static final CharCategory LINE_SEPARATOR = new CharCategory("LINE_SEPARATOR", 13, 13, "Zl");
|
||||
public static final CharCategory PARAGRAPH_SEPARATOR = new CharCategory("PARAGRAPH_SEPARATOR", 14, 14, "Zp");
|
||||
public static final CharCategory CONTROL = new CharCategory("CONTROL", 15, 15, "Cc");
|
||||
public static final CharCategory FORMAT = new CharCategory("FORMAT", 16, 16, "Cf");
|
||||
public static final CharCategory PRIVATE_USE = new CharCategory("PRIVATE_USE", 17, 18, "Co");
|
||||
public static final CharCategory SURROGATE = new CharCategory("SURROGATE", 18, 19, "Cs");
|
||||
public static final CharCategory DASH_PUNCTUATION = new CharCategory("DASH_PUNCTUATION", 19, 20, "Pd");
|
||||
public static final CharCategory START_PUNCTUATION = new CharCategory("START_PUNCTUATION", 20, 21, "Ps");
|
||||
public static final CharCategory END_PUNCTUATION = new CharCategory("END_PUNCTUATION", 21, 22, "Pe");
|
||||
public static final CharCategory CONNECTOR_PUNCTUATION = new CharCategory("CONNECTOR_PUNCTUATION", 22, 23, "Pc");
|
||||
public static final CharCategory OTHER_PUNCTUATION = new CharCategory("OTHER_PUNCTUATION", 23, 24, "Po");
|
||||
public static final CharCategory MATH_SYMBOL = new CharCategory("MATH_SYMBOL", 24, 25, "Sm");
|
||||
public static final CharCategory CURRENCY_SYMBOL = new CharCategory("CURRENCY_SYMBOL", 25, 26, "Sc");
|
||||
public static final CharCategory MODIFIER_SYMBOL = new CharCategory("MODIFIER_SYMBOL", 26, 27, "Sk");
|
||||
public static final CharCategory OTHER_SYMBOL = new CharCategory("OTHER_SYMBOL", 27, 28, "So");
|
||||
public static final CharCategory INITIAL_QUOTE_PUNCTUATION = new CharCategory("INITIAL_QUOTE_PUNCTUATION", 28, 29, "Pi");
|
||||
public static final CharCategory FINAL_QUOTE_PUNCTUATION = new CharCategory("FINAL_QUOTE_PUNCTUATION", 29, 30, "Pf");
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/text/CharCategory$Companion;", "", "()V", "valueOf", "Lkotlin/text/CharCategory;", "category", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public final CharCategory valueOf(int category) {
|
||||
if (new IntRange(0, 16).contains(category)) {
|
||||
return (CharCategory) CharCategory.getEntries().get(category);
|
||||
}
|
||||
if (new IntRange(18, 30).contains(category)) {
|
||||
return (CharCategory) CharCategory.getEntries().get(category - 1);
|
||||
}
|
||||
throw new IllegalArgumentException(w.i(category, "Category #", " is not defined."));
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private static final /* synthetic */ CharCategory[] $values() {
|
||||
return new CharCategory[]{UNASSIGNED, UPPERCASE_LETTER, LOWERCASE_LETTER, TITLECASE_LETTER, MODIFIER_LETTER, OTHER_LETTER, NON_SPACING_MARK, ENCLOSING_MARK, COMBINING_SPACING_MARK, DECIMAL_DIGIT_NUMBER, LETTER_NUMBER, OTHER_NUMBER, SPACE_SEPARATOR, LINE_SEPARATOR, PARAGRAPH_SEPARATOR, CONTROL, FORMAT, PRIVATE_USE, SURROGATE, DASH_PUNCTUATION, START_PUNCTUATION, END_PUNCTUATION, CONNECTOR_PUNCTUATION, OTHER_PUNCTUATION, MATH_SYMBOL, CURRENCY_SYMBOL, MODIFIER_SYMBOL, OTHER_SYMBOL, INITIAL_QUOTE_PUNCTUATION, FINAL_QUOTE_PUNCTUATION};
|
||||
}
|
||||
|
||||
static {
|
||||
CharCategory[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
INSTANCE = new Companion(null);
|
||||
}
|
||||
|
||||
private CharCategory(String str, int i, int i4, String str2) {
|
||||
this.value = i4;
|
||||
this.code = str2;
|
||||
}
|
||||
|
||||
public static EnumEntries<CharCategory> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static CharCategory valueOf(String str) {
|
||||
return (CharCategory) Enum.valueOf(CharCategory.class, str);
|
||||
}
|
||||
|
||||
public static CharCategory[] values() {
|
||||
return (CharCategory[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final boolean contains(char r12) {
|
||||
return Character.getType(r12) == this.value;
|
||||
}
|
||||
|
||||
public final String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public final int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
116
apk_decompiled/sources/kotlin/text/CharDirectionality.java
Normal file
116
apk_decompiled/sources/kotlin/text/CharDirectionality.java
Normal file
@@ -0,0 +1,116 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0002\b\u0019\b\u0086\u0081\u0002\u0018\u0000 \u001b2\b\u0012\u0004\u0012\u00020\u00000\u0001:\u0001\u001bB\u000f\b\u0002\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006j\u0002\b\u0007j\u0002\b\bj\u0002\b\tj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000fj\u0002\b\u0010j\u0002\b\u0011j\u0002\b\u0012j\u0002\b\u0013j\u0002\b\u0014j\u0002\b\u0015j\u0002\b\u0016j\u0002\b\u0017j\u0002\b\u0018j\u0002\b\u0019j\u0002\b\u001a¨\u0006\u001c"}, d2 = {"Lkotlin/text/CharDirectionality;", "", "value", "", "(Ljava/lang/String;II)V", "getValue", "()I", "UNDEFINED", "LEFT_TO_RIGHT", "RIGHT_TO_LEFT", "RIGHT_TO_LEFT_ARABIC", "EUROPEAN_NUMBER", "EUROPEAN_NUMBER_SEPARATOR", "EUROPEAN_NUMBER_TERMINATOR", "ARABIC_NUMBER", "COMMON_NUMBER_SEPARATOR", "NONSPACING_MARK", "BOUNDARY_NEUTRAL", "PARAGRAPH_SEPARATOR", "SEGMENT_SEPARATOR", "WHITESPACE", "OTHER_NEUTRALS", "LEFT_TO_RIGHT_EMBEDDING", "LEFT_TO_RIGHT_OVERRIDE", "RIGHT_TO_LEFT_EMBEDDING", "RIGHT_TO_LEFT_OVERRIDE", "POP_DIRECTIONAL_FORMAT", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CharDirectionality {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ CharDirectionality[] $VALUES;
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE;
|
||||
private static final Lazy<Map<Integer, CharDirectionality>> directionalityMap$delegate;
|
||||
private final int value;
|
||||
public static final CharDirectionality UNDEFINED = new CharDirectionality("UNDEFINED", 0, -1);
|
||||
public static final CharDirectionality LEFT_TO_RIGHT = new CharDirectionality("LEFT_TO_RIGHT", 1, 0);
|
||||
public static final CharDirectionality RIGHT_TO_LEFT = new CharDirectionality("RIGHT_TO_LEFT", 2, 1);
|
||||
public static final CharDirectionality RIGHT_TO_LEFT_ARABIC = new CharDirectionality("RIGHT_TO_LEFT_ARABIC", 3, 2);
|
||||
public static final CharDirectionality EUROPEAN_NUMBER = new CharDirectionality("EUROPEAN_NUMBER", 4, 3);
|
||||
public static final CharDirectionality EUROPEAN_NUMBER_SEPARATOR = new CharDirectionality("EUROPEAN_NUMBER_SEPARATOR", 5, 4);
|
||||
public static final CharDirectionality EUROPEAN_NUMBER_TERMINATOR = new CharDirectionality("EUROPEAN_NUMBER_TERMINATOR", 6, 5);
|
||||
public static final CharDirectionality ARABIC_NUMBER = new CharDirectionality("ARABIC_NUMBER", 7, 6);
|
||||
public static final CharDirectionality COMMON_NUMBER_SEPARATOR = new CharDirectionality("COMMON_NUMBER_SEPARATOR", 8, 7);
|
||||
public static final CharDirectionality NONSPACING_MARK = new CharDirectionality("NONSPACING_MARK", 9, 8);
|
||||
public static final CharDirectionality BOUNDARY_NEUTRAL = new CharDirectionality("BOUNDARY_NEUTRAL", 10, 9);
|
||||
public static final CharDirectionality PARAGRAPH_SEPARATOR = new CharDirectionality("PARAGRAPH_SEPARATOR", 11, 10);
|
||||
public static final CharDirectionality SEGMENT_SEPARATOR = new CharDirectionality("SEGMENT_SEPARATOR", 12, 11);
|
||||
public static final CharDirectionality WHITESPACE = new CharDirectionality("WHITESPACE", 13, 12);
|
||||
public static final CharDirectionality OTHER_NEUTRALS = new CharDirectionality("OTHER_NEUTRALS", 14, 13);
|
||||
public static final CharDirectionality LEFT_TO_RIGHT_EMBEDDING = new CharDirectionality("LEFT_TO_RIGHT_EMBEDDING", 15, 14);
|
||||
public static final CharDirectionality LEFT_TO_RIGHT_OVERRIDE = new CharDirectionality("LEFT_TO_RIGHT_OVERRIDE", 16, 15);
|
||||
public static final CharDirectionality RIGHT_TO_LEFT_EMBEDDING = new CharDirectionality("RIGHT_TO_LEFT_EMBEDDING", 17, 16);
|
||||
public static final CharDirectionality RIGHT_TO_LEFT_OVERRIDE = new CharDirectionality("RIGHT_TO_LEFT_OVERRIDE", 18, 17);
|
||||
public static final CharDirectionality POP_DIRECTIONAL_FORMAT = new CharDirectionality("POP_DIRECTIONAL_FORMAT", 19, 18);
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001c\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010$\n\u0002\u0010\b\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u000e\u0010\u000b\u001a\u00020\u00062\u0006\u0010\f\u001a\u00020\u0005R'\u0010\u0003\u001a\u000e\u0012\u0004\u0012\u00020\u0005\u0012\u0004\u0012\u00020\u00060\u00048BX\u0082\u0084\u0002¢\u0006\f\n\u0004\b\t\u0010\n\u001a\u0004\b\u0007\u0010\b¨\u0006\r"}, d2 = {"Lkotlin/text/CharDirectionality$Companion;", "", "()V", "directionalityMap", "", "", "Lkotlin/text/CharDirectionality;", "getDirectionalityMap", "()Ljava/util/Map;", "directionalityMap$delegate", "Lkotlin/Lazy;", "valueOf", "directionality", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private final Map<Integer, CharDirectionality> getDirectionalityMap() {
|
||||
return (Map) CharDirectionality.directionalityMap$delegate.getValue();
|
||||
}
|
||||
|
||||
public final CharDirectionality valueOf(int directionality) {
|
||||
CharDirectionality charDirectionality = getDirectionalityMap().get(Integer.valueOf(directionality));
|
||||
if (charDirectionality != null) {
|
||||
return charDirectionality;
|
||||
}
|
||||
throw new IllegalArgumentException(w.i(directionality, "Directionality #", " is not defined."));
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
private static final /* synthetic */ CharDirectionality[] $values() {
|
||||
return new CharDirectionality[]{UNDEFINED, LEFT_TO_RIGHT, RIGHT_TO_LEFT, RIGHT_TO_LEFT_ARABIC, EUROPEAN_NUMBER, EUROPEAN_NUMBER_SEPARATOR, EUROPEAN_NUMBER_TERMINATOR, ARABIC_NUMBER, COMMON_NUMBER_SEPARATOR, NONSPACING_MARK, BOUNDARY_NEUTRAL, PARAGRAPH_SEPARATOR, SEGMENT_SEPARATOR, WHITESPACE, OTHER_NEUTRALS, LEFT_TO_RIGHT_EMBEDDING, LEFT_TO_RIGHT_OVERRIDE, RIGHT_TO_LEFT_EMBEDDING, RIGHT_TO_LEFT_OVERRIDE, POP_DIRECTIONAL_FORMAT};
|
||||
}
|
||||
|
||||
static {
|
||||
CharDirectionality[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
INSTANCE = new Companion(null);
|
||||
directionalityMap$delegate = LazyKt.lazy(new Function0<Map<Integer, ? extends CharDirectionality>>() { // from class: kotlin.text.CharDirectionality$Companion$directionalityMap$2
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final Map<Integer, ? extends CharDirectionality> invoke() {
|
||||
int collectionSizeOrDefault;
|
||||
EnumEntries<CharDirectionality> entries = CharDirectionality.getEntries();
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(entries, 10);
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(collectionSizeOrDefault), 16));
|
||||
for (Object obj : entries) {
|
||||
linkedHashMap.put(Integer.valueOf(((CharDirectionality) obj).getValue()), obj);
|
||||
}
|
||||
return linkedHashMap;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
private CharDirectionality(String str, int i, int i4) {
|
||||
this.value = i4;
|
||||
}
|
||||
|
||||
public static EnumEntries<CharDirectionality> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static CharDirectionality valueOf(String str) {
|
||||
return (CharDirectionality) Enum.valueOf(CharDirectionality.class, str);
|
||||
}
|
||||
|
||||
public static CharDirectionality[] values() {
|
||||
return (CharDirectionality[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
public final int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
}
|
||||
10
apk_decompiled/sources/kotlin/text/CharsKt.java
Normal file
10
apk_decompiled/sources/kotlin/text/CharsKt.java
Normal file
@@ -0,0 +1,10 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/text/CharsKt__CharJVMKt", "kotlin/text/CharsKt__CharKt"}, k = 4, mv = {1, 9, 0}, xi = 49)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CharsKt extends CharsKt__CharKt {
|
||||
private CharsKt() {
|
||||
}
|
||||
}
|
||||
223
apk_decompiled/sources/kotlin/text/CharsKt__CharJVMKt.java
Normal file
223
apk_decompiled/sources/kotlin/text/CharsKt__CharJVMKt.java
Normal file
@@ -0,0 +1,223 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import java.util.Locale;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.PublishedApi;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\f\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\u001a\u0010\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\nH\u0001\u001a\u0018\u0010\f\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\nH\u0000\u001a\r\u0010\u000e\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0010\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0011\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0012\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0013\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0014\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0015\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0016\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0017\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0018\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u0019\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u001a\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\r\u0010\u001b\u001a\u00020\u000f*\u00020\u0002H\u0087\b\u001a\n\u0010\u001c\u001a\u00020\u000f*\u00020\u0002\u001a\r\u0010\u001d\u001a\u00020\u001e*\u00020\u0002H\u0087\b\u001a\u0014\u0010\u001d\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010!\u001a\u00020\u0002*\u00020\u0002H\u0087\b\u001a\u0014\u0010\"\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010#\u001a\u00020\u0002*\u00020\u0002H\u0087\b\u001a\r\u0010$\u001a\u00020\u0002*\u00020\u0002H\u0087\b\u001a\r\u0010%\u001a\u00020\u0002*\u00020\u0002H\u0087\b\u001a\r\u0010&\u001a\u00020\u0002*\u00020\u0002H\u0087\b\u001a\r\u0010'\u001a\u00020\u001e*\u00020\u0002H\u0087\b\u001a\u0014\u0010'\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010(\u001a\u00020\u0002*\u00020\u0002H\u0087\b\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\u0015\u0010\u0005\u001a\u00020\u0006*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\u0006)"}, d2 = {"category", "Lkotlin/text/CharCategory;", "", "getCategory", "(C)Lkotlin/text/CharCategory;", "directionality", "Lkotlin/text/CharDirectionality;", "getDirectionality", "(C)Lkotlin/text/CharDirectionality;", "checkRadix", "", "radix", "digitOf", "char", "isDefined", "", "isDigit", "isHighSurrogate", "isISOControl", "isIdentifierIgnorable", "isJavaIdentifierPart", "isJavaIdentifierStart", "isLetter", "isLetterOrDigit", "isLowSurrogate", "isLowerCase", "isTitleCase", "isUpperCase", "isWhitespace", "lowercase", "", "locale", "Ljava/util/Locale;", "lowercaseChar", "titlecase", "titlecaseChar", "toLowerCase", "toTitleCase", "toUpperCase", "uppercase", "uppercaseChar", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/CharsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public class CharsKt__CharJVMKt {
|
||||
@PublishedApi
|
||||
public static int checkRadix(int i) {
|
||||
if (new IntRange(2, 36).contains(i)) {
|
||||
return i;
|
||||
}
|
||||
StringBuilder t2 = w.t(i, "radix ", " was not in valid range ");
|
||||
t2.append(new IntRange(2, 36));
|
||||
throw new IllegalArgumentException(t2.toString());
|
||||
}
|
||||
|
||||
public static final int digitOf(char c4, int i) {
|
||||
return Character.digit((int) c4, i);
|
||||
}
|
||||
|
||||
public static final CharCategory getCategory(char c4) {
|
||||
return CharCategory.INSTANCE.valueOf(Character.getType(c4));
|
||||
}
|
||||
|
||||
public static final CharDirectionality getDirectionality(char c4) {
|
||||
return CharDirectionality.INSTANCE.valueOf(Character.getDirectionality(c4));
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isDefined(char c4) {
|
||||
return Character.isDefined(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isDigit(char c4) {
|
||||
return Character.isDigit(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isHighSurrogate(char c4) {
|
||||
return Character.isHighSurrogate(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isISOControl(char c4) {
|
||||
return Character.isISOControl(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isIdentifierIgnorable(char c4) {
|
||||
return Character.isIdentifierIgnorable(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isJavaIdentifierPart(char c4) {
|
||||
return Character.isJavaIdentifierPart(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isJavaIdentifierStart(char c4) {
|
||||
return Character.isJavaIdentifierStart(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isLetter(char c4) {
|
||||
return Character.isLetter(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isLetterOrDigit(char c4) {
|
||||
return Character.isLetterOrDigit(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isLowSurrogate(char c4) {
|
||||
return Character.isLowSurrogate(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isLowerCase(char c4) {
|
||||
return Character.isLowerCase(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isTitleCase(char c4) {
|
||||
return Character.isTitleCase(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final boolean isUpperCase(char c4) {
|
||||
return Character.isUpperCase(c4);
|
||||
}
|
||||
|
||||
public static boolean isWhitespace(char c4) {
|
||||
return Character.isWhitespace(c4) || Character.isSpaceChar(c4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
@InlineOnly
|
||||
private static final String lowercase(char c4) {
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = valueOf.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
return lowerCase;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
@InlineOnly
|
||||
private static final char lowercaseChar(char c4) {
|
||||
return Character.toLowerCase(c4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final String titlecase(char c4, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String uppercase = uppercase(c4, locale);
|
||||
if (uppercase.length() <= 1) {
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
|
||||
if (Intrinsics.areEqual(uppercase, upperCase)) {
|
||||
return String.valueOf(Character.toTitleCase(c4));
|
||||
}
|
||||
} else if (c4 != 329) {
|
||||
char charAt = uppercase.charAt(0);
|
||||
Intrinsics.checkNotNull(uppercase, "null cannot be cast to non-null type java.lang.String");
|
||||
String substring = uppercase.substring(1);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
Intrinsics.checkNotNull(substring, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = substring.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
return charAt + lowerCase;
|
||||
}
|
||||
return uppercase;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
@InlineOnly
|
||||
private static final char titlecaseChar(char c4) {
|
||||
return Character.toTitleCase(c4);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use lowercaseChar() instead.", replaceWith = @ReplaceWith(expression = "lowercaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
@InlineOnly
|
||||
private static final char toLowerCase(char c4) {
|
||||
return Character.toLowerCase(c4);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use titlecaseChar() instead.", replaceWith = @ReplaceWith(expression = "titlecaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
@InlineOnly
|
||||
private static final char toTitleCase(char c4) {
|
||||
return Character.toTitleCase(c4);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use uppercaseChar() instead.", replaceWith = @ReplaceWith(expression = "uppercaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
@InlineOnly
|
||||
private static final char toUpperCase(char c4) {
|
||||
return Character.toUpperCase(c4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
@InlineOnly
|
||||
private static final String uppercase(char c4) {
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
|
||||
return upperCase;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
@InlineOnly
|
||||
private static final char uppercaseChar(char c4) {
|
||||
return Character.toUpperCase(c4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final String lowercase(char c4, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = valueOf.toLowerCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
return lowerCase;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final String uppercase(char c4, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
|
||||
return upperCase;
|
||||
}
|
||||
}
|
||||
113
apk_decompiled/sources/kotlin/text/CharsKt__CharKt.java
Normal file
113
apk_decompiled/sources/kotlin/text/CharsKt__CharKt.java
Normal file
@@ -0,0 +1,113 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.CharRange;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0010\f\n\u0002\u0010\b\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\u0002\u001a\f\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\f\u0010\u0004\u001a\u00020\u0002*\u00020\u0001H\u0007\u001a\u0014\u0010\u0004\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0002*\u00020\u0001H\u0007¢\u0006\u0002\u0010\u0006\u001a\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0007\u001a\u001c\u0010\b\u001a\u00020\t*\u00020\u00012\u0006\u0010\n\u001a\u00020\u00012\b\b\u0002\u0010\u000b\u001a\u00020\t\u001a\n\u0010\f\u001a\u00020\t*\u00020\u0001\u001a\u0015\u0010\r\u001a\u00020\u000e*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000eH\u0087\n\u001a\f\u0010\u000f\u001a\u00020\u000e*\u00020\u0001H\u0007¨\u0006\u0010"}, d2 = {"digitToChar", "", "", "radix", "digitToInt", "digitToIntOrNull", "(C)Ljava/lang/Integer;", "(CI)Ljava/lang/Integer;", "equals", "", "other", "ignoreCase", "isSurrogate", "plus", "", "titlecase", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/CharsKt")
|
||||
@SourceDebugExtension({"SMAP\nChar.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Char.kt\nkotlin/text/CharsKt__CharKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,344:1\n1#2:345\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
class CharsKt__CharKt extends CharsKt__CharJVMKt {
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final char digitToChar(int i) {
|
||||
if (new IntRange(0, 9).contains(i)) {
|
||||
return (char) (i + 48);
|
||||
}
|
||||
throw new IllegalArgumentException(w.i(i, "Int ", " is not a decimal digit"));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final int digitToInt(char c4) {
|
||||
int digitOf = CharsKt__CharJVMKt.digitOf(c4, 10);
|
||||
if (digitOf >= 0) {
|
||||
return digitOf;
|
||||
}
|
||||
throw new IllegalArgumentException("Char " + c4 + " is not a decimal digit");
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final Integer digitToIntOrNull(char c4) {
|
||||
Integer valueOf = Integer.valueOf(CharsKt__CharJVMKt.digitOf(c4, 10));
|
||||
if (valueOf.intValue() >= 0) {
|
||||
return valueOf;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final boolean equals(char c4, char c5, boolean z3) {
|
||||
if (c4 == c5) {
|
||||
return true;
|
||||
}
|
||||
if (!z3) {
|
||||
return false;
|
||||
}
|
||||
char upperCase = Character.toUpperCase(c4);
|
||||
char upperCase2 = Character.toUpperCase(c5);
|
||||
return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
|
||||
}
|
||||
|
||||
public static /* synthetic */ boolean equals$default(char c4, char c5, boolean z3, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z3 = false;
|
||||
}
|
||||
return equals(c4, c5, z3);
|
||||
}
|
||||
|
||||
public static final boolean isSurrogate(char c4) {
|
||||
return new CharRange((char) 55296, (char) 57343).contains(c4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final String plus(char c4, String other) {
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
return c4 + other;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
public static final String titlecase(char c4) {
|
||||
return _OneToManyTitlecaseMappingsKt.titlecaseImpl(c4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final Integer digitToIntOrNull(char c4, int i) {
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
Integer valueOf = Integer.valueOf(CharsKt__CharJVMKt.digitOf(c4, i));
|
||||
if (valueOf.intValue() >= 0) {
|
||||
return valueOf;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final int digitToInt(char c4, int i) {
|
||||
Integer digitToIntOrNull = digitToIntOrNull(c4, i);
|
||||
if (digitToIntOrNull != null) {
|
||||
return digitToIntOrNull.intValue();
|
||||
}
|
||||
throw new IllegalArgumentException("Char " + c4 + " is not a digit in the given radix=" + i);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final char digitToChar(int i, int i4) {
|
||||
if (!new IntRange(2, 36).contains(i4)) {
|
||||
throw new IllegalArgumentException(w.i(i4, "Invalid radix: ", ". Valid radix values are in range 2..36"));
|
||||
}
|
||||
if (i < 0 || i >= i4) {
|
||||
throw new IllegalArgumentException(w.k("Digit ", i, i4, " does not represent a valid digit in radix "));
|
||||
}
|
||||
return (char) (i < 10 ? i + 48 : ((char) (i + 65)) - '\n');
|
||||
}
|
||||
}
|
||||
94
apk_decompiled/sources/kotlin/text/Charsets.java
Normal file
94
apk_decompiled/sources/kotlin/text/Charsets.java
Normal file
@@ -0,0 +1,94 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0010\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0010\u0010\u0003\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0006\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0007\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\b\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0011\u0010\t\u001a\u00020\u00048G¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\f\u001a\u00020\u00048G¢\u0006\u0006\u001a\u0004\b\r\u0010\u000bR\u0011\u0010\u000e\u001a\u00020\u00048G¢\u0006\u0006\u001a\u0004\b\u000f\u0010\u000bR\u0010\u0010\u0010\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000R\u0010\u0010\u0011\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0012\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0013\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000¨\u0006\u0014"}, d2 = {"Lkotlin/text/Charsets;", "", "()V", "ISO_8859_1", "Ljava/nio/charset/Charset;", "US_ASCII", "UTF_16", "UTF_16BE", "UTF_16LE", "UTF_32", "UTF32", "()Ljava/nio/charset/Charset;", "UTF_32BE", "UTF32_BE", "UTF_32LE", "UTF32_LE", "UTF_8", "utf_32", "utf_32be", "utf_32le", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Charsets {
|
||||
public static final Charsets INSTANCE = new Charsets();
|
||||
|
||||
@JvmField
|
||||
public static final Charset ISO_8859_1;
|
||||
|
||||
@JvmField
|
||||
public static final Charset US_ASCII;
|
||||
|
||||
@JvmField
|
||||
public static final Charset UTF_16;
|
||||
|
||||
@JvmField
|
||||
public static final Charset UTF_16BE;
|
||||
|
||||
@JvmField
|
||||
public static final Charset UTF_16LE;
|
||||
|
||||
@JvmField
|
||||
public static final Charset UTF_8;
|
||||
private static volatile Charset utf_32;
|
||||
private static volatile Charset utf_32be;
|
||||
private static volatile Charset utf_32le;
|
||||
|
||||
static {
|
||||
Charset forName = Charset.forName("UTF-8");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
UTF_8 = forName;
|
||||
Charset forName2 = Charset.forName("UTF-16");
|
||||
Intrinsics.checkNotNullExpressionValue(forName2, "forName(...)");
|
||||
UTF_16 = forName2;
|
||||
Charset forName3 = Charset.forName("UTF-16BE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName3, "forName(...)");
|
||||
UTF_16BE = forName3;
|
||||
Charset forName4 = Charset.forName("UTF-16LE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName4, "forName(...)");
|
||||
UTF_16LE = forName4;
|
||||
Charset forName5 = Charset.forName("US-ASCII");
|
||||
Intrinsics.checkNotNullExpressionValue(forName5, "forName(...)");
|
||||
US_ASCII = forName5;
|
||||
Charset forName6 = Charset.forName("ISO-8859-1");
|
||||
Intrinsics.checkNotNullExpressionValue(forName6, "forName(...)");
|
||||
ISO_8859_1 = forName6;
|
||||
}
|
||||
|
||||
private Charsets() {
|
||||
}
|
||||
|
||||
@JvmName(name = "UTF32")
|
||||
public final Charset UTF32() {
|
||||
Charset charset = utf_32;
|
||||
if (charset != null) {
|
||||
return charset;
|
||||
}
|
||||
Charset forName = Charset.forName("UTF-32");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
utf_32 = forName;
|
||||
return forName;
|
||||
}
|
||||
|
||||
@JvmName(name = "UTF32_BE")
|
||||
public final Charset UTF32_BE() {
|
||||
Charset charset = utf_32be;
|
||||
if (charset != null) {
|
||||
return charset;
|
||||
}
|
||||
Charset forName = Charset.forName("UTF-32BE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
utf_32be = forName;
|
||||
return forName;
|
||||
}
|
||||
|
||||
@JvmName(name = "UTF32_LE")
|
||||
public final Charset UTF32_LE() {
|
||||
Charset charset = utf_32le;
|
||||
if (charset != null) {
|
||||
return charset;
|
||||
}
|
||||
Charset forName = Charset.forName("UTF-32LE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
utf_32le = forName;
|
||||
return forName;
|
||||
}
|
||||
}
|
||||
20
apk_decompiled/sources/kotlin/text/CharsetsKt.java
Normal file
20
apk_decompiled/sources/kotlin/text/CharsetsKt.java
Normal file
@@ -0,0 +1,20 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\u0011\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0087\b¨\u0006\u0004"}, d2 = {"charset", "Ljava/nio/charset/Charset;", "charsetName", "", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "CharsetsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class CharsetsKt {
|
||||
@InlineOnly
|
||||
private static final Charset charset(String charsetName) {
|
||||
Intrinsics.checkNotNullParameter(charsetName, "charsetName");
|
||||
Charset forName = Charset.forName(charsetName);
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(...)");
|
||||
return forName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,189 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Iterator;
|
||||
import java.util.NoSuchElementException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.RangesKt___RangesKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000%\n\u0000\n\u0002\u0010(\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0013\n\u0002\u0010\u0002\n\u0000\n\u0002\u0010\u000b\n\u0002\b\u0002*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001J\b\u0010\u0017\u001a\u00020\u0018H\u0002J\t\u0010\u0019\u001a\u00020\u001aH\u0096\u0002J\t\u0010\u001b\u001a\u00020\u0002H\u0096\u0002R\u001a\u0010\u0003\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0005\u0010\u0006\"\u0004\b\u0007\u0010\bR\u001a\u0010\t\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\n\u0010\u0006\"\u0004\b\u000b\u0010\bR\u001c\u0010\f\u001a\u0004\u0018\u00010\u0002X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\r\u0010\u000e\"\u0004\b\u000f\u0010\u0010R\u001a\u0010\u0011\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0006\"\u0004\b\u0013\u0010\bR\u001a\u0010\u0014\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0015\u0010\u0006\"\u0004\b\u0016\u0010\b¨\u0006\u001c"}, d2 = {"kotlin/text/DelimitedRangesSequence$iterator$1", "", "Lkotlin/ranges/IntRange;", "counter", "", "getCounter", "()I", "setCounter", "(I)V", "currentStartIndex", "getCurrentStartIndex", "setCurrentStartIndex", "nextItem", "getNextItem", "()Lkotlin/ranges/IntRange;", "setNextItem", "(Lkotlin/ranges/IntRange;)V", "nextSearchIndex", "getNextSearchIndex", "setNextSearchIndex", "nextState", "getNextState", "setNextState", "calcNext", "", "hasNext", "", "next", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DelimitedRangesSequence$iterator$1 implements Iterator<IntRange>, KMappedMarker {
|
||||
private int counter;
|
||||
private int currentStartIndex;
|
||||
private IntRange nextItem;
|
||||
private int nextSearchIndex;
|
||||
private int nextState = -1;
|
||||
final /* synthetic */ DelimitedRangesSequence this$0;
|
||||
|
||||
public DelimitedRangesSequence$iterator$1(DelimitedRangesSequence delimitedRangesSequence) {
|
||||
int i;
|
||||
CharSequence charSequence;
|
||||
int coerceIn;
|
||||
this.this$0 = delimitedRangesSequence;
|
||||
i = delimitedRangesSequence.startIndex;
|
||||
charSequence = delimitedRangesSequence.input;
|
||||
coerceIn = RangesKt___RangesKt.coerceIn(i, 0, charSequence.length());
|
||||
this.currentStartIndex = coerceIn;
|
||||
this.nextSearchIndex = coerceIn;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:9:0x0020, code lost:
|
||||
|
||||
if (r0 < r4) goto L10;
|
||||
*/
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
private final void calcNext() {
|
||||
/*
|
||||
r6 = this;
|
||||
int r0 = r6.nextSearchIndex
|
||||
r1 = 0
|
||||
if (r0 >= 0) goto Lb
|
||||
r6.nextState = r1
|
||||
r0 = 0
|
||||
r6.nextItem = r0
|
||||
return
|
||||
Lb:
|
||||
kotlin.text.DelimitedRangesSequence r0 = r6.this$0
|
||||
int r0 = kotlin.text.DelimitedRangesSequence.access$getLimit$p(r0)
|
||||
r2 = -1
|
||||
r3 = 1
|
||||
if (r0 <= 0) goto L22
|
||||
int r0 = r6.counter
|
||||
int r0 = r0 + r3
|
||||
r6.counter = r0
|
||||
kotlin.text.DelimitedRangesSequence r4 = r6.this$0
|
||||
int r4 = kotlin.text.DelimitedRangesSequence.access$getLimit$p(r4)
|
||||
if (r0 >= r4) goto L30
|
||||
L22:
|
||||
int r0 = r6.nextSearchIndex
|
||||
kotlin.text.DelimitedRangesSequence r4 = r6.this$0
|
||||
java.lang.CharSequence r4 = kotlin.text.DelimitedRangesSequence.access$getInput$p(r4)
|
||||
int r4 = r4.length()
|
||||
if (r0 <= r4) goto L46
|
||||
L30:
|
||||
kotlin.ranges.IntRange r0 = new kotlin.ranges.IntRange
|
||||
int r1 = r6.currentStartIndex
|
||||
kotlin.text.DelimitedRangesSequence r4 = r6.this$0
|
||||
java.lang.CharSequence r4 = kotlin.text.DelimitedRangesSequence.access$getInput$p(r4)
|
||||
int r4 = kotlin.text.StringsKt__StringsKt.getLastIndex(r4)
|
||||
r0.<init>(r1, r4)
|
||||
r6.nextItem = r0
|
||||
r6.nextSearchIndex = r2
|
||||
goto L9b
|
||||
L46:
|
||||
kotlin.text.DelimitedRangesSequence r0 = r6.this$0
|
||||
kotlin.jvm.functions.Function2 r0 = kotlin.text.DelimitedRangesSequence.access$getGetNextMatch$p(r0)
|
||||
kotlin.text.DelimitedRangesSequence r4 = r6.this$0
|
||||
java.lang.CharSequence r4 = kotlin.text.DelimitedRangesSequence.access$getInput$p(r4)
|
||||
int r5 = r6.nextSearchIndex
|
||||
java.lang.Integer r5 = java.lang.Integer.valueOf(r5)
|
||||
java.lang.Object r0 = r0.invoke(r4, r5)
|
||||
kotlin.Pair r0 = (kotlin.Pair) r0
|
||||
if (r0 != 0) goto L76
|
||||
kotlin.ranges.IntRange r0 = new kotlin.ranges.IntRange
|
||||
int r1 = r6.currentStartIndex
|
||||
kotlin.text.DelimitedRangesSequence r4 = r6.this$0
|
||||
java.lang.CharSequence r4 = kotlin.text.DelimitedRangesSequence.access$getInput$p(r4)
|
||||
int r4 = kotlin.text.StringsKt__StringsKt.getLastIndex(r4)
|
||||
r0.<init>(r1, r4)
|
||||
r6.nextItem = r0
|
||||
r6.nextSearchIndex = r2
|
||||
goto L9b
|
||||
L76:
|
||||
java.lang.Object r2 = r0.component1()
|
||||
java.lang.Number r2 = (java.lang.Number) r2
|
||||
int r2 = r2.intValue()
|
||||
java.lang.Object r0 = r0.component2()
|
||||
java.lang.Number r0 = (java.lang.Number) r0
|
||||
int r0 = r0.intValue()
|
||||
int r4 = r6.currentStartIndex
|
||||
kotlin.ranges.IntRange r4 = kotlin.ranges.RangesKt.until(r4, r2)
|
||||
r6.nextItem = r4
|
||||
int r2 = r2 + r0
|
||||
r6.currentStartIndex = r2
|
||||
if (r0 != 0) goto L98
|
||||
r1 = r3
|
||||
L98:
|
||||
int r2 = r2 + r1
|
||||
r6.nextSearchIndex = r2
|
||||
L9b:
|
||||
r6.nextState = r3
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.DelimitedRangesSequence$iterator$1.calcNext():void");
|
||||
}
|
||||
|
||||
public final int getCounter() {
|
||||
return this.counter;
|
||||
}
|
||||
|
||||
public final int getCurrentStartIndex() {
|
||||
return this.currentStartIndex;
|
||||
}
|
||||
|
||||
public final IntRange getNextItem() {
|
||||
return this.nextItem;
|
||||
}
|
||||
|
||||
public final int getNextSearchIndex() {
|
||||
return this.nextSearchIndex;
|
||||
}
|
||||
|
||||
public final int getNextState() {
|
||||
return this.nextState;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
if (this.nextState == -1) {
|
||||
calcNext();
|
||||
}
|
||||
return this.nextState == 1;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public void remove() {
|
||||
throw new UnsupportedOperationException("Operation is not supported for read-only collection");
|
||||
}
|
||||
|
||||
public final void setCounter(int i) {
|
||||
this.counter = i;
|
||||
}
|
||||
|
||||
public final void setCurrentStartIndex(int i) {
|
||||
this.currentStartIndex = i;
|
||||
}
|
||||
|
||||
public final void setNextItem(IntRange intRange) {
|
||||
this.nextItem = intRange;
|
||||
}
|
||||
|
||||
public final void setNextSearchIndex(int i) {
|
||||
this.nextSearchIndex = i;
|
||||
}
|
||||
|
||||
public final void setNextState(int i) {
|
||||
this.nextState = i;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public IntRange next() {
|
||||
if (this.nextState == -1) {
|
||||
calcNext();
|
||||
}
|
||||
if (this.nextState != 0) {
|
||||
IntRange intRange = this.nextItem;
|
||||
Intrinsics.checkNotNull(intRange, "null cannot be cast to non-null type kotlin.ranges.IntRange");
|
||||
this.nextItem = null;
|
||||
this.nextState = -1;
|
||||
return intRange;
|
||||
}
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,35 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Pair;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.sequences.Sequence;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010(\n\u0000\b\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00020\u0001BY\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012:\u0010\b\u001a6\u0012\u0004\u0012\u00020\u0004\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\f\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u0006\u0018\u00010\r0\t¢\u0006\u0002\b\u000e¢\u0006\u0002\u0010\u000fJ\u000f\u0010\u0010\u001a\b\u0012\u0004\u0012\u00020\u00020\u0011H\u0096\u0002RB\u0010\b\u001a6\u0012\u0004\u0012\u00020\u0004\u0012\u0013\u0012\u00110\u0006¢\u0006\f\b\n\u0012\b\b\u000b\u0012\u0004\b\b(\f\u0012\u0012\u0012\u0010\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u0006\u0018\u00010\r0\t¢\u0006\u0002\b\u000eX\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0003\u001a\u00020\u0004X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0006X\u0082\u0004¢\u0006\u0002\n\u0000¨\u0006\u0012"}, d2 = {"Lkotlin/text/DelimitedRangesSequence;", "Lkotlin/sequences/Sequence;", "Lkotlin/ranges/IntRange;", "input", "", "startIndex", "", "limit", "getNextMatch", "Lkotlin/Function2;", "Lkotlin/ParameterName;", AppMeasurementSdk.ConditionalUserProperty.NAME, "currentIndex", "Lkotlin/Pair;", "Lkotlin/ExtensionFunctionType;", "(Ljava/lang/CharSequence;IILkotlin/jvm/functions/Function2;)V", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class DelimitedRangesSequence implements Sequence<IntRange> {
|
||||
private final Function2<CharSequence, Integer, Pair<Integer, Integer>> getNextMatch;
|
||||
private final CharSequence input;
|
||||
private final int limit;
|
||||
private final int startIndex;
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public DelimitedRangesSequence(CharSequence input, int i, int i4, Function2<? super CharSequence, ? super Integer, Pair<Integer, Integer>> getNextMatch) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Intrinsics.checkNotNullParameter(getNextMatch, "getNextMatch");
|
||||
this.input = input;
|
||||
this.startIndex = i;
|
||||
this.limit = i4;
|
||||
this.getNextMatch = getNextMatch;
|
||||
}
|
||||
|
||||
@Override // kotlin.sequences.Sequence
|
||||
public Iterator<IntRange> iterator() {
|
||||
return new DelimitedRangesSequence$iterator$1(this);
|
||||
}
|
||||
}
|
||||
11
apk_decompiled/sources/kotlin/text/FlagEnum.java
Normal file
11
apk_decompiled/sources/kotlin/text/FlagEnum.java
Normal file
@@ -0,0 +1,11 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\bb\u0018\u00002\u00020\u0001R\u0012\u0010\u0002\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005R\u0012\u0010\u0006\u001a\u00020\u0003X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0007\u0010\u0005¨\u0006\b"}, d2 = {"Lkotlin/text/FlagEnum;", "", "mask", "", "getMask", "()I", "value", "getValue", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
interface FlagEnum {
|
||||
int getMask();
|
||||
|
||||
int getValue();
|
||||
}
|
||||
637
apk_decompiled/sources/kotlin/text/HexExtensionsKt.java
Normal file
637
apk_decompiled/sources/kotlin/text/HexExtensionsKt.java
Normal file
@@ -0,0 +1,637 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import com.google.firebase.dynamiclinks.DynamicLink;
|
||||
import java.util.Arrays;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.ULong;
|
||||
import kotlin.collections.AbstractList;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.ClosedRange;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.RangesKt;
|
||||
import kotlin.ranges.RangesKt___RangesKt;
|
||||
import kotlin.text.HexFormat;
|
||||
|
||||
@Metadata(d1 = {"\u0000L\n\u0000\n\u0002\u0010\u0015\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\t\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0012\n\u0002\u0010\u0002\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\b\u0003\n\u0002\u0010\u0005\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0012\n\u0002\b\u0004\n\u0002\u0010\n\n\u0002\b\u0004\u001a \u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\b\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\tH\u0002\u001a@\u0010\u000b\u001a\u00020\t2\u0006\u0010\f\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00020\t2\u0006\u0010\u0011\u001a\u00020\t2\u0006\u0010\u0012\u001a\u00020\tH\u0000\u001a@\u0010\u0013\u001a\u00020\t2\u0006\u0010\u0014\u001a\u00020\t2\u0006\u0010\r\u001a\u00020\t2\u0006\u0010\u000e\u001a\u00020\t2\u0006\u0010\u000f\u001a\u00020\t2\u0006\u0010\u0010\u001a\u00020\t2\u0006\u0010\u0011\u001a\u00020\t2\u0006\u0010\u0012\u001a\u00020\tH\u0000\u001a \u0010\u0015\u001a\u00020\u00062\u0006\u0010\u0005\u001a\u00020\u00062\u0006\u0010\u0007\u001a\u00020\u00062\u0006\u0010\n\u001a\u00020\tH\u0002\u001a,\u0010\u0016\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0017\u001a\u00020\u00032\u0006\u0010\u0018\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\t2\u0006\u0010\u001a\u001a\u00020\u0003H\u0002\u001a,\u0010\u001b\u001a\u00020\u001c*\u00020\u00032\u0006\u0010\u001d\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\t2\u0006\u0010\u001e\u001a\u00020\t2\u0006\u0010\u001f\u001a\u00020 H\u0002\u001a\u001c\u0010!\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0018\u001a\u00020\t2\u0006\u0010\u0019\u001a\u00020\tH\u0002\u001a\u0014\u0010\"\u001a\u00020\t*\u00020\u00032\u0006\u0010\u0018\u001a\u00020\tH\u0002\u001a*\u0010#\u001a\u00020$*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010#\u001a\u00020$*\u00020\u00032\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010'\u001a\u00020(*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010'\u001a\u00020(*\u00020\u00032\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010)\u001a\u00020\t*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010)\u001a\u00020\t*\u00020\u00032\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010*\u001a\u00020\u0006*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010*\u001a\u00020\u0006*\u00020\u00032\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a0\u0010+\u001a\u00020\u0006*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\u0006\u0010%\u001a\u00020&2\u0006\u0010\u001e\u001a\u00020\tH\u0003\u001a*\u0010,\u001a\u00020-*\u00020\u00032\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0003\u001a\u0016\u0010,\u001a\u00020-*\u00020\u00032\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020$2\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a*\u0010.\u001a\u00020\u0003*\u00020(2\b\b\u0002\u0010\u001d\u001a\u00020\t2\b\b\u0002\u0010\u0019\u001a\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020(2\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020\t2\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020\u00062\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u0016\u0010.\u001a\u00020\u0003*\u00020-2\b\b\u0002\u0010%\u001a\u00020&H\u0007\u001a\u001c\u0010/\u001a\u00020\u0003*\u00020\u00062\u0006\u0010%\u001a\u00020&2\u0006\u00100\u001a\u00020\tH\u0003\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0082\u0004¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0003X\u0082T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0004\u001a\u00020\u0003X\u0082T¢\u0006\u0002\n\u0000¨\u00061"}, d2 = {"HEX_DIGITS_TO_DECIMAL", "", "LOWER_CASE_HEX_DIGITS", "", "UPPER_CASE_HEX_DIGITS", "charsPerSet", "", "charsPerElement", "elementsPerSet", "", "elementSeparatorLength", "formattedStringLength", "totalBytes", "bytesPerLine", "bytesPerGroup", "groupSeparatorLength", "byteSeparatorLength", "bytePrefixLength", "byteSuffixLength", "parsedByteArrayMaxSize", "stringLength", "wholeElementsPerSet", "checkContainsAt", "part", FirebaseAnalytics.Param.INDEX, "endIndex", "partName", "checkHexLength", "", "startIndex", "maxDigits", "requireMaxLength", "", "checkNewLineAt", "decimalFromHexDigitAt", "hexToByte", "", "format", "Lkotlin/text/HexFormat;", "hexToByteArray", "", "hexToInt", "hexToLong", "hexToLongImpl", "hexToShort", "", "toHexString", "toHexStringImpl", "bits", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nHexExtensions.kt\nKotlin\n*S Kotlin\n*F\n+ 1 HexExtensions.kt\nkotlin/text/HexExtensionsKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n*L\n1#1,591:1\n1#2:592\n1183#3,3:593\n1183#3,3:596\n*S KotlinDebug\n*F\n+ 1 HexExtensions.kt\nkotlin/text/HexExtensionsKt\n*L\n13#1:593,3\n14#1:596,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class HexExtensionsKt {
|
||||
private static final int[] HEX_DIGITS_TO_DECIMAL;
|
||||
private static final String LOWER_CASE_HEX_DIGITS = "0123456789abcdef";
|
||||
private static final String UPPER_CASE_HEX_DIGITS = "0123456789ABCDEF";
|
||||
|
||||
static {
|
||||
int[] iArr = new int[128];
|
||||
int i = 0;
|
||||
for (int i4 = 0; i4 < 128; i4++) {
|
||||
iArr[i4] = -1;
|
||||
}
|
||||
int i5 = 0;
|
||||
int i6 = 0;
|
||||
while (i5 < LOWER_CASE_HEX_DIGITS.length()) {
|
||||
iArr[LOWER_CASE_HEX_DIGITS.charAt(i5)] = i6;
|
||||
i5++;
|
||||
i6++;
|
||||
}
|
||||
int i7 = 0;
|
||||
while (i < UPPER_CASE_HEX_DIGITS.length()) {
|
||||
iArr[UPPER_CASE_HEX_DIGITS.charAt(i)] = i7;
|
||||
i++;
|
||||
i7++;
|
||||
}
|
||||
HEX_DIGITS_TO_DECIMAL = iArr;
|
||||
}
|
||||
|
||||
private static final long charsPerSet(long j4, int i, int i4) {
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException("Failed requirement.");
|
||||
}
|
||||
long j5 = i;
|
||||
return ((j5 - 1) * i4) + (j4 * j5);
|
||||
}
|
||||
|
||||
private static final int checkContainsAt(String str, String str2, int i, int i4, String str3) {
|
||||
String str4;
|
||||
String str5;
|
||||
int i5;
|
||||
int length = str2.length() + i;
|
||||
if (length <= i4) {
|
||||
str4 = str;
|
||||
str5 = str2;
|
||||
i5 = i;
|
||||
if (StringsKt__StringsJVMKt.regionMatches(str4, i5, str5, 0, str2.length(), true)) {
|
||||
return length;
|
||||
}
|
||||
} else {
|
||||
str4 = str;
|
||||
str5 = str2;
|
||||
i5 = i;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Expected ");
|
||||
sb.append(str3);
|
||||
sb.append(" \"");
|
||||
sb.append(str5);
|
||||
sb.append("\" at index ");
|
||||
sb.append(i5);
|
||||
sb.append(", but was ");
|
||||
int coerceAtMost = RangesKt.coerceAtMost(length, i4);
|
||||
Intrinsics.checkNotNull(str4, "null cannot be cast to non-null type java.lang.String");
|
||||
String substring = str4.substring(i5, coerceAtMost);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
sb.append(substring);
|
||||
throw new NumberFormatException(sb.toString());
|
||||
}
|
||||
|
||||
private static final void checkHexLength(String str, int i, int i4, int i5, boolean z3) {
|
||||
int i6 = i4 - i;
|
||||
if (z3) {
|
||||
if (i6 == i5) {
|
||||
return;
|
||||
}
|
||||
} else if (i6 <= i5) {
|
||||
return;
|
||||
}
|
||||
String str2 = z3 ? "exactly" : "at most";
|
||||
Intrinsics.checkNotNull(str, "null cannot be cast to non-null type java.lang.String");
|
||||
String substring = str.substring(i, i4);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
throw new NumberFormatException("Expected " + str2 + ' ' + i5 + " hexadecimal digits at index " + i + ", but was " + substring + " of length " + i6);
|
||||
}
|
||||
|
||||
private static final int checkNewLineAt(String str, int i, int i4) {
|
||||
if (str.charAt(i) == '\r') {
|
||||
int i5 = i + 1;
|
||||
return (i5 >= i4 || str.charAt(i5) != '\n') ? i5 : i + 2;
|
||||
}
|
||||
if (str.charAt(i) == '\n') {
|
||||
return i + 1;
|
||||
}
|
||||
StringBuilder t2 = w.t(i, "Expected a new line at index ", ", but was ");
|
||||
t2.append(str.charAt(i));
|
||||
throw new NumberFormatException(t2.toString());
|
||||
}
|
||||
|
||||
private static final int decimalFromHexDigitAt(String str, int i) {
|
||||
int i4;
|
||||
char charAt = str.charAt(i);
|
||||
if (charAt <= 127 && (i4 = HEX_DIGITS_TO_DECIMAL[charAt]) >= 0) {
|
||||
return i4;
|
||||
}
|
||||
StringBuilder t2 = w.t(i, "Expected a hexadecimal digit at index ", ", but was ");
|
||||
t2.append(str.charAt(i));
|
||||
throw new NumberFormatException(t2.toString());
|
||||
}
|
||||
|
||||
public static final int formattedStringLength(int i, int i4, int i5, int i6, int i7, int i8, int i9) {
|
||||
boolean intRangeContains;
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException("Failed requirement.");
|
||||
}
|
||||
int i10 = i - 1;
|
||||
int i11 = i10 / i4;
|
||||
int i12 = (i4 - 1) / i5;
|
||||
int i13 = i % i4;
|
||||
if (i13 != 0) {
|
||||
i4 = i13;
|
||||
}
|
||||
int i14 = (i12 * i11) + ((i4 - 1) / i5);
|
||||
long j4 = ((i8 + 2 + i9) * i) + (((i10 - i11) - i14) * i7) + (i14 * i6) + i11;
|
||||
intRangeContains = RangesKt___RangesKt.intRangeContains((ClosedRange<Integer>) new IntRange(0, Integer.MAX_VALUE), j4);
|
||||
if (intRangeContains) {
|
||||
return (int) j4;
|
||||
}
|
||||
throw new IllegalArgumentException("The resulting string length is too big: " + ((Object) ULong.m336toStringimpl(ULong.m290constructorimpl(j4))));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final byte hexToByte(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return hexToByte(str, 0, str.length(), format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte hexToByte$default(String str, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToByte(str, hexFormat);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final byte[] hexToByteArray(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return hexToByteArray(str, 0, str.length(), format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte[] hexToByteArray$default(String str, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToByteArray(str, hexFormat);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final int hexToInt(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return hexToInt(str, 0, str.length(), format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ int hexToInt$default(String str, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToInt(str, hexFormat);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final long hexToLong(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return hexToLong(str, 0, str.length(), format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ long hexToLong$default(String str, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToLong(str, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final long hexToLongImpl(String str, int i, int i4, HexFormat hexFormat, int i5) {
|
||||
AbstractList.INSTANCE.checkBoundsIndexes$kotlin_stdlib(i, i4, str.length());
|
||||
String prefix = hexFormat.getNumber().getPrefix();
|
||||
String suffix = hexFormat.getNumber().getSuffix();
|
||||
if (suffix.length() + prefix.length() < i4 - i) {
|
||||
int checkContainsAt = checkContainsAt(str, prefix, i, i4, "prefix");
|
||||
int length = i4 - suffix.length();
|
||||
checkContainsAt(str, suffix, length, i4, DynamicLink.Builder.KEY_SUFFIX);
|
||||
checkHexLength(str, checkContainsAt, length, i5, false);
|
||||
long j4 = 0;
|
||||
while (checkContainsAt < length) {
|
||||
j4 = (j4 << 4) | decimalFromHexDigitAt(str, checkContainsAt);
|
||||
checkContainsAt++;
|
||||
}
|
||||
return j4;
|
||||
}
|
||||
StringBuilder sb = new StringBuilder("Expected a hexadecimal number with prefix \"");
|
||||
sb.append(prefix);
|
||||
sb.append("\" and suffix \"");
|
||||
sb.append(suffix);
|
||||
sb.append("\", but was ");
|
||||
Intrinsics.checkNotNull(str, "null cannot be cast to non-null type java.lang.String");
|
||||
String substring = str.substring(i, i4);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
sb.append(substring);
|
||||
throw new NumberFormatException(sb.toString());
|
||||
}
|
||||
|
||||
public static /* synthetic */ long hexToLongImpl$default(String str, int i, int i4, HexFormat hexFormat, int i5, int i6, Object obj) {
|
||||
if ((i6 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i6 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
return hexToLongImpl(str, i, i4, hexFormat, i5);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final short hexToShort(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return hexToShort(str, 0, str.length(), format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ short hexToShort$default(String str, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToShort(str, hexFormat);
|
||||
}
|
||||
|
||||
public static final int parsedByteArrayMaxSize(int i, int i4, int i5, int i6, int i7, int i8, int i9) {
|
||||
long charsPerSet;
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException("Failed requirement.");
|
||||
}
|
||||
long j4 = i8 + 2 + i9;
|
||||
long charsPerSet2 = charsPerSet(j4, i5, i7);
|
||||
if (i4 <= i5) {
|
||||
charsPerSet = charsPerSet(j4, i4, i7);
|
||||
} else {
|
||||
charsPerSet = charsPerSet(charsPerSet2, i4 / i5, i6);
|
||||
int i10 = i4 % i5;
|
||||
if (i10 != 0) {
|
||||
charsPerSet = charsPerSet + i6 + charsPerSet(j4, i10, i7);
|
||||
}
|
||||
}
|
||||
long j5 = i;
|
||||
long wholeElementsPerSet = wholeElementsPerSet(j5, charsPerSet, 1);
|
||||
long j6 = j5 - ((charsPerSet + 1) * wholeElementsPerSet);
|
||||
long wholeElementsPerSet2 = wholeElementsPerSet(j6, charsPerSet2, i6);
|
||||
long j7 = j6 - ((charsPerSet2 + i6) * wholeElementsPerSet2);
|
||||
long wholeElementsPerSet3 = wholeElementsPerSet(j7, j4, i7);
|
||||
return (int) ((wholeElementsPerSet2 * i5) + (wholeElementsPerSet * i4) + wholeElementsPerSet3 + (j7 - ((j4 + ((long) i7)) * wholeElementsPerSet3) > 0 ? 1 : 0));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final String toHexString(byte[] bArr, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(bArr, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return toHexString(bArr, 0, bArr.length, format);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(byte[] bArr, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(bArr, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final String toHexStringImpl(long j4, HexFormat hexFormat, int i) {
|
||||
if ((i & 3) != 0) {
|
||||
throw new IllegalArgumentException("Failed requirement.");
|
||||
}
|
||||
String str = hexFormat.getUpperCase() ? UPPER_CASE_HEX_DIGITS : LOWER_CASE_HEX_DIGITS;
|
||||
String prefix = hexFormat.getNumber().getPrefix();
|
||||
String suffix = hexFormat.getNumber().getSuffix();
|
||||
int length = suffix.length() + prefix.length() + (i >> 2);
|
||||
boolean removeLeadingZeros = hexFormat.getNumber().getRemoveLeadingZeros();
|
||||
StringBuilder sb = new StringBuilder(length);
|
||||
sb.append(prefix);
|
||||
while (i > 0) {
|
||||
i -= 4;
|
||||
int i4 = (int) ((j4 >> i) & 15);
|
||||
removeLeadingZeros = removeLeadingZeros && i4 == 0 && i > 0;
|
||||
if (!removeLeadingZeros) {
|
||||
sb.append(str.charAt(i4));
|
||||
}
|
||||
}
|
||||
sb.append(suffix);
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
private static final long wholeElementsPerSet(long j4, long j5, int i) {
|
||||
if (j4 <= 0 || j5 <= 0) {
|
||||
return 0L;
|
||||
}
|
||||
long j6 = i;
|
||||
return (j4 + j6) / (j5 + j6);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final byte hexToByte(String str, int i, int i4, HexFormat hexFormat) {
|
||||
return (byte) hexToLongImpl(str, i, i4, hexFormat, 2);
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte hexToByte$default(String str, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToByte(str, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final byte[] hexToByteArray(String str, int i, int i4, HexFormat hexFormat) {
|
||||
int i5 = i;
|
||||
AbstractList.INSTANCE.checkBoundsIndexes$kotlin_stdlib(i5, i4, str.length());
|
||||
int i6 = 0;
|
||||
if (i5 == i4) {
|
||||
return new byte[0];
|
||||
}
|
||||
HexFormat.BytesHexFormat bytes = hexFormat.getBytes();
|
||||
int bytesPerLine = bytes.getBytesPerLine();
|
||||
int bytesPerGroup = bytes.getBytesPerGroup();
|
||||
String bytePrefix = bytes.getBytePrefix();
|
||||
String byteSuffix = bytes.getByteSuffix();
|
||||
String byteSeparator = bytes.getByteSeparator();
|
||||
String groupSeparator = bytes.getGroupSeparator();
|
||||
int parsedByteArrayMaxSize = parsedByteArrayMaxSize(i4 - i5, bytesPerLine, bytesPerGroup, groupSeparator.length(), byteSeparator.length(), bytePrefix.length(), byteSuffix.length());
|
||||
byte[] bArr = new byte[parsedByteArrayMaxSize];
|
||||
int i7 = 0;
|
||||
int i8 = 0;
|
||||
int i9 = 0;
|
||||
while (i5 < i4) {
|
||||
if (i8 == bytesPerLine) {
|
||||
i5 = checkNewLineAt(str, i5, i4);
|
||||
i8 = i6;
|
||||
i9 = i8;
|
||||
} else if (i9 == bytesPerGroup) {
|
||||
i5 = checkContainsAt(str, groupSeparator, i5, i4, "group separator");
|
||||
i9 = i6;
|
||||
} else if (i9 != 0) {
|
||||
i5 = checkContainsAt(str, byteSeparator, i5, i4, "byte separator");
|
||||
}
|
||||
i8++;
|
||||
i9++;
|
||||
int checkContainsAt = checkContainsAt(str, bytePrefix, i5, i4, "byte prefix");
|
||||
checkHexLength(str, checkContainsAt, RangesKt.coerceAtMost(checkContainsAt + 2, i4), 2, true);
|
||||
bArr[i7] = (byte) ((decimalFromHexDigitAt(str, checkContainsAt) << 4) | decimalFromHexDigitAt(str, checkContainsAt + 1));
|
||||
i5 = checkContainsAt(str, byteSuffix, checkContainsAt + 2, i4, "byte suffix");
|
||||
groupSeparator = groupSeparator;
|
||||
i7++;
|
||||
i6 = 0;
|
||||
}
|
||||
if (i7 == parsedByteArrayMaxSize) {
|
||||
return bArr;
|
||||
}
|
||||
byte[] copyOf = Arrays.copyOf(bArr, i7);
|
||||
Intrinsics.checkNotNullExpressionValue(copyOf, "copyOf(...)");
|
||||
return copyOf;
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte[] hexToByteArray$default(String str, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToByteArray(str, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final int hexToInt(String str, int i, int i4, HexFormat hexFormat) {
|
||||
return (int) hexToLongImpl(str, i, i4, hexFormat, 8);
|
||||
}
|
||||
|
||||
public static /* synthetic */ int hexToInt$default(String str, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToInt(str, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final long hexToLong(String str, int i, int i4, HexFormat hexFormat) {
|
||||
return hexToLongImpl(str, i, i4, hexFormat, 16);
|
||||
}
|
||||
|
||||
public static /* synthetic */ long hexToLong$default(String str, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToLong(str, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
@ExperimentalStdlibApi
|
||||
private static final short hexToShort(String str, int i, int i4, HexFormat hexFormat) {
|
||||
return (short) hexToLongImpl(str, i, i4, hexFormat, 4);
|
||||
}
|
||||
|
||||
public static /* synthetic */ short hexToShort$default(String str, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = str.length();
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return hexToShort(str, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0079 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:18:0x007c A[SYNTHETIC] */
|
||||
@kotlin.SinceKotlin(version = "1.9")
|
||||
@kotlin.ExperimentalStdlibApi
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final java.lang.String toHexString(byte[] r16, int r17, int r18, kotlin.text.HexFormat r19) {
|
||||
/*
|
||||
r0 = r16
|
||||
r1 = r17
|
||||
r2 = r18
|
||||
java.lang.String r3 = "<this>"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r3)
|
||||
java.lang.String r3 = "format"
|
||||
r4 = r19
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r4, r3)
|
||||
kotlin.collections.AbstractList$Companion r3 = kotlin.collections.AbstractList.INSTANCE
|
||||
int r5 = r0.length
|
||||
r3.checkBoundsIndexes$kotlin_stdlib(r1, r2, r5)
|
||||
if (r1 != r2) goto L1d
|
||||
java.lang.String r0 = ""
|
||||
return r0
|
||||
L1d:
|
||||
boolean r3 = r4.getUpperCase()
|
||||
if (r3 == 0) goto L26
|
||||
java.lang.String r3 = "0123456789ABCDEF"
|
||||
goto L28
|
||||
L26:
|
||||
java.lang.String r3 = "0123456789abcdef"
|
||||
L28:
|
||||
kotlin.text.HexFormat$BytesHexFormat r4 = r4.getBytes()
|
||||
int r6 = r4.getBytesPerLine()
|
||||
int r7 = r4.getBytesPerGroup()
|
||||
java.lang.String r12 = r4.getBytePrefix()
|
||||
java.lang.String r13 = r4.getByteSuffix()
|
||||
java.lang.String r14 = r4.getByteSeparator()
|
||||
java.lang.String r4 = r4.getGroupSeparator()
|
||||
int r5 = r2 - r1
|
||||
int r8 = r4.length()
|
||||
int r9 = r14.length()
|
||||
int r10 = r12.length()
|
||||
int r11 = r13.length()
|
||||
int r5 = formattedStringLength(r5, r6, r7, r8, r9, r10, r11)
|
||||
java.lang.StringBuilder r8 = new java.lang.StringBuilder
|
||||
r8.<init>(r5)
|
||||
r10 = 0
|
||||
r11 = 0
|
||||
L61:
|
||||
if (r1 >= r2) goto L9b
|
||||
r15 = r0[r1]
|
||||
r9 = r15 & 255(0xff, float:3.57E-43)
|
||||
if (r10 != r6) goto L71
|
||||
r10 = 10
|
||||
r8.append(r10)
|
||||
r10 = 0
|
||||
L6f:
|
||||
r11 = 0
|
||||
goto L77
|
||||
L71:
|
||||
if (r11 != r7) goto L77
|
||||
r8.append(r4)
|
||||
goto L6f
|
||||
L77:
|
||||
if (r11 == 0) goto L7c
|
||||
r8.append(r14)
|
||||
L7c:
|
||||
r8.append(r12)
|
||||
int r9 = r9 >> 4
|
||||
char r9 = r3.charAt(r9)
|
||||
r8.append(r9)
|
||||
r9 = r15 & 15
|
||||
char r9 = r3.charAt(r9)
|
||||
r8.append(r9)
|
||||
r8.append(r13)
|
||||
int r11 = r11 + 1
|
||||
int r10 = r10 + 1
|
||||
int r1 = r1 + 1
|
||||
goto L61
|
||||
L9b:
|
||||
int r0 = r8.length()
|
||||
if (r5 != r0) goto Lab
|
||||
java.lang.String r0 = r8.toString()
|
||||
java.lang.String r1 = "toString(...)"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullExpressionValue(r0, r1)
|
||||
return r0
|
||||
Lab:
|
||||
java.lang.IllegalStateException r0 = new java.lang.IllegalStateException
|
||||
java.lang.String r1 = "Check failed."
|
||||
r0.<init>(r1)
|
||||
throw r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.HexExtensionsKt.toHexString(byte[], int, int, kotlin.text.HexFormat):java.lang.String");
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(byte[] bArr, int i, int i4, HexFormat hexFormat, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = bArr.length;
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(bArr, i, i4, hexFormat);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(byte b4, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(b4, hexFormat);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(short s4, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(s4, hexFormat);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(int i, HexFormat hexFormat, int i4, Object obj) {
|
||||
if ((i4 & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(i, hexFormat);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String toHexString$default(long j4, HexFormat hexFormat, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
hexFormat = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
return toHexString(j4, hexFormat);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final String toHexString(byte b4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return toHexStringImpl(b4, format, 8);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final String toHexString(short s4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return toHexStringImpl(s4, format, 16);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final String toHexString(int i, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return toHexStringImpl(i, format, 32);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
public static final String toHexString(long j4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return toHexStringImpl(j4, format, 64);
|
||||
}
|
||||
}
|
||||
545
apk_decompiled/sources/kotlin/text/HexFormat.java
Normal file
545
apk_decompiled/sources/kotlin/text/HexFormat.java
Normal file
@@ -0,0 +1,545 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.dynamiclinks.DynamicLink;
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.PublishedApi;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.Unit;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\b\n\u0002\u0010\u000e\n\u0002\b\u0005\b\u0007\u0018\u0000 \u00132\u00020\u0001:\u0004\u0011\u0012\u0013\u0014B\u001f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bJ\b\u0010\u000f\u001a\u00020\u0010H\u0016R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\nR\u0011\u0010\u0006\u001a\u00020\u0007¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\u000e¨\u0006\u0015"}, d2 = {"Lkotlin/text/HexFormat;", "", "upperCase", "", "bytes", "Lkotlin/text/HexFormat$BytesHexFormat;", "number", "Lkotlin/text/HexFormat$NumberHexFormat;", "(ZLkotlin/text/HexFormat$BytesHexFormat;Lkotlin/text/HexFormat$NumberHexFormat;)V", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat;", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat;", "getUpperCase", "()Z", "toString", "", "Builder", "BytesHexFormat", "Companion", "NumberHexFormat", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@ExperimentalStdlibApi
|
||||
/* loaded from: classes3.dex */
|
||||
public final class HexFormat {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final HexFormat Default;
|
||||
private static final HexFormat UpperCase;
|
||||
private final BytesHexFormat bytes;
|
||||
private final NumberHexFormat number;
|
||||
private final boolean upperCase;
|
||||
|
||||
@Metadata(d1 = {"\u00006\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0018\u00002\u00020\u0001B\u0007\b\u0001¢\u0006\u0002\u0010\u0002J\b\u0010\u0013\u001a\u00020\u0014H\u0001J%\u0010\u0007\u001a\u00020\u00152\u0017\u0010\u0016\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00150\u0017¢\u0006\u0002\b\u0018H\u0087\bø\u0001\u0000J%\u0010\n\u001a\u00020\u00152\u0017\u0010\u0016\u001a\u0013\u0012\u0004\u0012\u00020\u0006\u0012\u0004\u0012\u00020\u00150\u0017¢\u0006\u0002\b\u0018H\u0087\bø\u0001\u0000R\u0010\u0010\u0003\u001a\u0004\u0018\u00010\u0004X\u0082\u000e¢\u0006\u0002\n\u0000R\u0010\u0010\u0005\u001a\u0004\u0018\u00010\u0006X\u0082\u000e¢\u0006\u0002\n\u0000R\u0011\u0010\u0007\u001a\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\b\u0010\tR\u0011\u0010\n\u001a\u00020\u00068F¢\u0006\u0006\u001a\u0004\b\u000b\u0010\fR\u001a\u0010\r\u001a\u00020\u000eX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000f\u0010\u0010\"\u0004\b\u0011\u0010\u0012\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0019"}, d2 = {"Lkotlin/text/HexFormat$Builder;", "", "()V", "_bytes", "Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "_number", "Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "bytes", "getBytes", "()Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "number", "getNumber", "()Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "upperCase", "", "getUpperCase", "()Z", "setUpperCase", "(Z)V", "build", "Lkotlin/text/HexFormat;", "", "builderAction", "Lkotlin/Function1;", "Lkotlin/ExtensionFunctionType;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private BytesHexFormat.Builder _bytes;
|
||||
private NumberHexFormat.Builder _number;
|
||||
private boolean upperCase = HexFormat.INSTANCE.getDefault().getUpperCase();
|
||||
|
||||
@PublishedApi
|
||||
public Builder() {
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final void bytes(Function1<? super BytesHexFormat.Builder, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
builderAction.invoke(getBytes());
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final void number(Function1<? super NumberHexFormat.Builder, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
builderAction.invoke(getNumber());
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
public final HexFormat build() {
|
||||
BytesHexFormat default$kotlin_stdlib;
|
||||
NumberHexFormat default$kotlin_stdlib2;
|
||||
boolean z3 = this.upperCase;
|
||||
BytesHexFormat.Builder builder = this._bytes;
|
||||
if (builder == null || (default$kotlin_stdlib = builder.build$kotlin_stdlib()) == null) {
|
||||
default$kotlin_stdlib = BytesHexFormat.INSTANCE.getDefault$kotlin_stdlib();
|
||||
}
|
||||
NumberHexFormat.Builder builder2 = this._number;
|
||||
if (builder2 == null || (default$kotlin_stdlib2 = builder2.build$kotlin_stdlib()) == null) {
|
||||
default$kotlin_stdlib2 = NumberHexFormat.INSTANCE.getDefault$kotlin_stdlib();
|
||||
}
|
||||
return new HexFormat(z3, default$kotlin_stdlib, default$kotlin_stdlib2);
|
||||
}
|
||||
|
||||
public final BytesHexFormat.Builder getBytes() {
|
||||
if (this._bytes == null) {
|
||||
this._bytes = new BytesHexFormat.Builder();
|
||||
}
|
||||
BytesHexFormat.Builder builder = this._bytes;
|
||||
Intrinsics.checkNotNull(builder);
|
||||
return builder;
|
||||
}
|
||||
|
||||
public final NumberHexFormat.Builder getNumber() {
|
||||
if (this._number == null) {
|
||||
this._number = new NumberHexFormat.Builder();
|
||||
}
|
||||
NumberHexFormat.Builder builder = this._number;
|
||||
Intrinsics.checkNotNull(builder);
|
||||
return builder;
|
||||
}
|
||||
|
||||
public final boolean getUpperCase() {
|
||||
return this.upperCase;
|
||||
}
|
||||
|
||||
public final void setUpperCase(boolean z3) {
|
||||
this.upperCase = z3;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\r\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 \u001b2\u00020\u0001:\u0002\u001a\u001bB7\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006\u0012\u0006\u0010\u0007\u001a\u00020\u0006\u0012\u0006\u0010\b\u001a\u00020\u0006\u0012\u0006\u0010\t\u001a\u00020\u0006¢\u0006\u0002\u0010\nJ%\u0010\u0013\u001a\u00060\u0014j\u0002`\u00152\n\u0010\u0016\u001a\u00060\u0014j\u0002`\u00152\u0006\u0010\u0017\u001a\u00020\u0006H\u0000¢\u0006\u0002\b\u0018J\b\u0010\u0019\u001a\u00020\u0006H\u0016R\u0011\u0010\b\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000b\u0010\fR\u0011\u0010\u0007\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\r\u0010\fR\u0011\u0010\t\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u000e\u0010\fR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0011\u0010\u0010R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\u0012\u0010\f¨\u0006\u001c"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat;", "", "bytesPerLine", "", "bytesPerGroup", "groupSeparator", "", "byteSeparator", "bytePrefix", "byteSuffix", "(IILjava/lang/String;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)V", "getBytePrefix", "()Ljava/lang/String;", "getByteSeparator", "getByteSuffix", "getBytesPerGroup", "()I", "getBytesPerLine", "getGroupSeparator", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "toString", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class BytesHexFormat {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final BytesHexFormat Default = new BytesHexFormat(Integer.MAX_VALUE, Integer.MAX_VALUE, " ", "", "", "");
|
||||
private final String bytePrefix;
|
||||
private final String byteSeparator;
|
||||
private final String byteSuffix;
|
||||
private final int bytesPerGroup;
|
||||
private final int bytesPerLine;
|
||||
private final String groupSeparator;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u000b\n\u0002\u0010\b\n\u0002\b\f\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0000¢\u0006\u0002\u0010\u0002J\r\u0010\u001c\u001a\u00020\u001dH\u0000¢\u0006\u0002\b\u001eR$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR$\u0010\n\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000b\u0010\u0007\"\u0004\b\f\u0010\tR$\u0010\r\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u000e\u0010\u0007\"\u0004\b\u000f\u0010\tR$\u0010\u0011\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0012\u0010\u0013\"\u0004\b\u0014\u0010\u0015R$\u0010\u0016\u001a\u00020\u00102\u0006\u0010\u0003\u001a\u00020\u0010@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0017\u0010\u0013\"\u0004\b\u0018\u0010\u0015R\u001a\u0010\u0019\u001a\u00020\u0004X\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u001a\u0010\u0007\"\u0004\b\u001b\u0010\t¨\u0006\u001f"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Builder;", "", "()V", "value", "", "bytePrefix", "getBytePrefix", "()Ljava/lang/String;", "setBytePrefix", "(Ljava/lang/String;)V", "byteSeparator", "getByteSeparator", "setByteSeparator", "byteSuffix", "getByteSuffix", "setByteSuffix", "", "bytesPerGroup", "getBytesPerGroup", "()I", "setBytesPerGroup", "(I)V", "bytesPerLine", "getBytesPerLine", "setBytesPerLine", "groupSeparator", "getGroupSeparator", "setGroupSeparator", "build", "Lkotlin/text/HexFormat$BytesHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private String bytePrefix;
|
||||
private String byteSeparator;
|
||||
private String byteSuffix;
|
||||
private int bytesPerGroup;
|
||||
private int bytesPerLine;
|
||||
private String groupSeparator;
|
||||
|
||||
public Builder() {
|
||||
Companion companion = BytesHexFormat.INSTANCE;
|
||||
this.bytesPerLine = companion.getDefault$kotlin_stdlib().getBytesPerLine();
|
||||
this.bytesPerGroup = companion.getDefault$kotlin_stdlib().getBytesPerGroup();
|
||||
this.groupSeparator = companion.getDefault$kotlin_stdlib().getGroupSeparator();
|
||||
this.byteSeparator = companion.getDefault$kotlin_stdlib().getByteSeparator();
|
||||
this.bytePrefix = companion.getDefault$kotlin_stdlib().getBytePrefix();
|
||||
this.byteSuffix = companion.getDefault$kotlin_stdlib().getByteSuffix();
|
||||
}
|
||||
|
||||
public final BytesHexFormat build$kotlin_stdlib() {
|
||||
return new BytesHexFormat(this.bytesPerLine, this.bytesPerGroup, this.groupSeparator, this.byteSeparator, this.bytePrefix, this.byteSuffix);
|
||||
}
|
||||
|
||||
public final String getBytePrefix() {
|
||||
return this.bytePrefix;
|
||||
}
|
||||
|
||||
public final String getByteSeparator() {
|
||||
return this.byteSeparator;
|
||||
}
|
||||
|
||||
public final String getByteSuffix() {
|
||||
return this.byteSuffix;
|
||||
}
|
||||
|
||||
public final int getBytesPerGroup() {
|
||||
return this.bytesPerGroup;
|
||||
}
|
||||
|
||||
public final int getBytesPerLine() {
|
||||
return this.bytesPerLine;
|
||||
}
|
||||
|
||||
public final String getGroupSeparator() {
|
||||
return this.groupSeparator;
|
||||
}
|
||||
|
||||
public final void setBytePrefix(String value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
if (StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) || StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
|
||||
throw new IllegalArgumentException(w.z("LF and CR characters are prohibited in bytePrefix, but was ", value));
|
||||
}
|
||||
this.bytePrefix = value;
|
||||
}
|
||||
|
||||
public final void setByteSeparator(String value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
if (StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) || StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
|
||||
throw new IllegalArgumentException(w.z("LF and CR characters are prohibited in byteSeparator, but was ", value));
|
||||
}
|
||||
this.byteSeparator = value;
|
||||
}
|
||||
|
||||
public final void setByteSuffix(String value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
if (StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) || StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
|
||||
throw new IllegalArgumentException(w.z("LF and CR characters are prohibited in byteSuffix, but was ", value));
|
||||
}
|
||||
this.byteSuffix = value;
|
||||
}
|
||||
|
||||
public final void setBytesPerGroup(int i) {
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException(a.l(i, "Non-positive values are prohibited for bytesPerGroup, but was "));
|
||||
}
|
||||
this.bytesPerGroup = i;
|
||||
}
|
||||
|
||||
public final void setBytesPerLine(int i) {
|
||||
if (i <= 0) {
|
||||
throw new IllegalArgumentException(a.l(i, "Non-positive values are prohibited for bytesPerLine, but was "));
|
||||
}
|
||||
this.bytesPerLine = i;
|
||||
}
|
||||
|
||||
public final void setGroupSeparator(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<set-?>");
|
||||
this.groupSeparator = str;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/text/HexFormat$BytesHexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat$BytesHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$BytesHexFormat;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final BytesHexFormat getDefault$kotlin_stdlib() {
|
||||
return BytesHexFormat.Default;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public BytesHexFormat(int i, int i4, String groupSeparator, String byteSeparator, String bytePrefix, String byteSuffix) {
|
||||
Intrinsics.checkNotNullParameter(groupSeparator, "groupSeparator");
|
||||
Intrinsics.checkNotNullParameter(byteSeparator, "byteSeparator");
|
||||
Intrinsics.checkNotNullParameter(bytePrefix, "bytePrefix");
|
||||
Intrinsics.checkNotNullParameter(byteSuffix, "byteSuffix");
|
||||
this.bytesPerLine = i;
|
||||
this.bytesPerGroup = i4;
|
||||
this.groupSeparator = groupSeparator;
|
||||
this.byteSeparator = byteSeparator;
|
||||
this.bytePrefix = bytePrefix;
|
||||
this.byteSuffix = byteSuffix;
|
||||
}
|
||||
|
||||
public final StringBuilder appendOptionsTo$kotlin_stdlib(StringBuilder sb, String indent) {
|
||||
Intrinsics.checkNotNullParameter(sb, "sb");
|
||||
Intrinsics.checkNotNullParameter(indent, "indent");
|
||||
sb.append(indent);
|
||||
sb.append("bytesPerLine = ");
|
||||
sb.append(this.bytesPerLine);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("bytesPerGroup = ");
|
||||
sb.append(this.bytesPerGroup);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("groupSeparator = \"");
|
||||
sb.append(this.groupSeparator);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append("\",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("byteSeparator = \"");
|
||||
sb.append(this.byteSeparator);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append("\",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("bytePrefix = \"");
|
||||
sb.append(this.bytePrefix);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append("\",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("byteSuffix = \"");
|
||||
sb.append(this.byteSuffix);
|
||||
sb.append("\"");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public final String getBytePrefix() {
|
||||
return this.bytePrefix;
|
||||
}
|
||||
|
||||
public final String getByteSeparator() {
|
||||
return this.byteSeparator;
|
||||
}
|
||||
|
||||
public final String getByteSuffix() {
|
||||
return this.byteSuffix;
|
||||
}
|
||||
|
||||
public final int getBytesPerGroup() {
|
||||
return this.bytesPerGroup;
|
||||
}
|
||||
|
||||
public final int getBytesPerLine() {
|
||||
return this.bytesPerLine;
|
||||
}
|
||||
|
||||
public final String getGroupSeparator() {
|
||||
return this.groupSeparator;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("BytesHexFormat(");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
StringBuilder appendOptionsTo$kotlin_stdlib = appendOptionsTo$kotlin_stdlib(sb, " ");
|
||||
appendOptionsTo$kotlin_stdlib.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib, "append(...)");
|
||||
sb.append(")");
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006R\u0011\u0010\u0007\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\u0006¨\u0006\t"}, d2 = {"Lkotlin/text/HexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat;", "getDefault", "()Lkotlin/text/HexFormat;", "UpperCase", "getUpperCase", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final HexFormat getDefault() {
|
||||
return HexFormat.Default;
|
||||
}
|
||||
|
||||
public final HexFormat getUpperCase() {
|
||||
return HexFormat.UpperCase;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0002\b\u0007\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\u0018\u0000 \u00152\u00020\u0001:\u0002\u0014\u0015B\u001f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0003\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J%\u0010\r\u001a\u00060\u000ej\u0002`\u000f2\n\u0010\u0010\u001a\u00060\u000ej\u0002`\u000f2\u0006\u0010\u0011\u001a\u00020\u0003H\u0000¢\u0006\u0002\b\u0012J\b\u0010\u0013\u001a\u00020\u0003H\u0016R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000bR\u0011\u0010\u0004\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\f\u0010\t¨\u0006\u0016"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat;", "", "prefix", "", DynamicLink.Builder.KEY_SUFFIX, "removeLeadingZeros", "", "(Ljava/lang/String;Ljava/lang/String;Z)V", "getPrefix", "()Ljava/lang/String;", "getRemoveLeadingZeros", "()Z", "getSuffix", "appendOptionsTo", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "sb", "indent", "appendOptionsTo$kotlin_stdlib", "toString", "Builder", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class NumberHexFormat {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final NumberHexFormat Default = new NumberHexFormat("", "", false);
|
||||
private final String prefix;
|
||||
private final boolean removeLeadingZeros;
|
||||
private final String suffix;
|
||||
|
||||
@Metadata(d1 = {"\u0000$\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0006\n\u0002\u0010\u000b\n\u0002\b\b\n\u0002\u0018\u0002\n\u0002\b\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0000¢\u0006\u0002\u0010\u0002J\r\u0010\u0013\u001a\u00020\u0014H\u0000¢\u0006\u0002\b\u0015R$\u0010\u0005\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0006\u0010\u0007\"\u0004\b\b\u0010\tR\u001a\u0010\n\u001a\u00020\u000bX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\f\u0010\r\"\u0004\b\u000e\u0010\u000fR$\u0010\u0010\u001a\u00020\u00042\u0006\u0010\u0003\u001a\u00020\u0004@FX\u0086\u000e¢\u0006\u000e\n\u0000\u001a\u0004\b\u0011\u0010\u0007\"\u0004\b\u0012\u0010\t¨\u0006\u0016"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Builder;", "", "()V", "value", "", "prefix", "getPrefix", "()Ljava/lang/String;", "setPrefix", "(Ljava/lang/String;)V", "removeLeadingZeros", "", "getRemoveLeadingZeros", "()Z", "setRemoveLeadingZeros", "(Z)V", DynamicLink.Builder.KEY_SUFFIX, "getSuffix", "setSuffix", "build", "Lkotlin/text/HexFormat$NumberHexFormat;", "build$kotlin_stdlib", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Builder {
|
||||
private String prefix;
|
||||
private boolean removeLeadingZeros;
|
||||
private String suffix;
|
||||
|
||||
public Builder() {
|
||||
Companion companion = NumberHexFormat.INSTANCE;
|
||||
this.prefix = companion.getDefault$kotlin_stdlib().getPrefix();
|
||||
this.suffix = companion.getDefault$kotlin_stdlib().getSuffix();
|
||||
this.removeLeadingZeros = companion.getDefault$kotlin_stdlib().getRemoveLeadingZeros();
|
||||
}
|
||||
|
||||
public final NumberHexFormat build$kotlin_stdlib() {
|
||||
return new NumberHexFormat(this.prefix, this.suffix, this.removeLeadingZeros);
|
||||
}
|
||||
|
||||
public final String getPrefix() {
|
||||
return this.prefix;
|
||||
}
|
||||
|
||||
public final boolean getRemoveLeadingZeros() {
|
||||
return this.removeLeadingZeros;
|
||||
}
|
||||
|
||||
public final String getSuffix() {
|
||||
return this.suffix;
|
||||
}
|
||||
|
||||
public final void setPrefix(String value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
if (StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) || StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
|
||||
throw new IllegalArgumentException(w.z("LF and CR characters are prohibited in prefix, but was ", value));
|
||||
}
|
||||
this.prefix = value;
|
||||
}
|
||||
|
||||
public final void setRemoveLeadingZeros(boolean z3) {
|
||||
this.removeLeadingZeros = z3;
|
||||
}
|
||||
|
||||
public final void setSuffix(String value) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
if (StringsKt__StringsKt.contains$default((CharSequence) value, '\n', false, 2, (Object) null) || StringsKt__StringsKt.contains$default((CharSequence) value, '\r', false, 2, (Object) null)) {
|
||||
throw new IllegalArgumentException(w.z("LF and CR characters are prohibited in suffix, but was ", value));
|
||||
}
|
||||
this.suffix = value;
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\b\u0080\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0014\u0010\u0003\u001a\u00020\u0004X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0007"}, d2 = {"Lkotlin/text/HexFormat$NumberHexFormat$Companion;", "", "()V", "Default", "Lkotlin/text/HexFormat$NumberHexFormat;", "getDefault$kotlin_stdlib", "()Lkotlin/text/HexFormat$NumberHexFormat;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
public final NumberHexFormat getDefault$kotlin_stdlib() {
|
||||
return NumberHexFormat.Default;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
}
|
||||
|
||||
public NumberHexFormat(String prefix, String suffix, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(prefix, "prefix");
|
||||
Intrinsics.checkNotNullParameter(suffix, "suffix");
|
||||
this.prefix = prefix;
|
||||
this.suffix = suffix;
|
||||
this.removeLeadingZeros = z3;
|
||||
}
|
||||
|
||||
public final StringBuilder appendOptionsTo$kotlin_stdlib(StringBuilder sb, String indent) {
|
||||
Intrinsics.checkNotNullParameter(sb, "sb");
|
||||
Intrinsics.checkNotNullParameter(indent, "indent");
|
||||
sb.append(indent);
|
||||
sb.append("prefix = \"");
|
||||
sb.append(this.prefix);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append("\",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("suffix = \"");
|
||||
sb.append(this.suffix);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append("\",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(indent);
|
||||
sb.append("removeLeadingZeros = ");
|
||||
sb.append(this.removeLeadingZeros);
|
||||
return sb;
|
||||
}
|
||||
|
||||
public final String getPrefix() {
|
||||
return this.prefix;
|
||||
}
|
||||
|
||||
public final boolean getRemoveLeadingZeros() {
|
||||
return this.removeLeadingZeros;
|
||||
}
|
||||
|
||||
public final String getSuffix() {
|
||||
return this.suffix;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("NumberHexFormat(");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
StringBuilder appendOptionsTo$kotlin_stdlib = appendOptionsTo$kotlin_stdlib(sb, " ");
|
||||
appendOptionsTo$kotlin_stdlib.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib, "append(...)");
|
||||
sb.append(")");
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
}
|
||||
|
||||
static {
|
||||
BytesHexFormat.Companion companion = BytesHexFormat.INSTANCE;
|
||||
BytesHexFormat default$kotlin_stdlib = companion.getDefault$kotlin_stdlib();
|
||||
NumberHexFormat.Companion companion2 = NumberHexFormat.INSTANCE;
|
||||
Default = new HexFormat(false, default$kotlin_stdlib, companion2.getDefault$kotlin_stdlib());
|
||||
UpperCase = new HexFormat(true, companion.getDefault$kotlin_stdlib(), companion2.getDefault$kotlin_stdlib());
|
||||
}
|
||||
|
||||
public HexFormat(boolean z3, BytesHexFormat bytes, NumberHexFormat number) {
|
||||
Intrinsics.checkNotNullParameter(bytes, "bytes");
|
||||
Intrinsics.checkNotNullParameter(number, "number");
|
||||
this.upperCase = z3;
|
||||
this.bytes = bytes;
|
||||
this.number = number;
|
||||
}
|
||||
|
||||
public final BytesHexFormat getBytes() {
|
||||
return this.bytes;
|
||||
}
|
||||
|
||||
public final NumberHexFormat getNumber() {
|
||||
return this.number;
|
||||
}
|
||||
|
||||
public final boolean getUpperCase() {
|
||||
return this.upperCase;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.append("HexFormat(");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(" upperCase = ");
|
||||
sb.append(this.upperCase);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(",");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(" bytes = BytesHexFormat(");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
StringBuilder appendOptionsTo$kotlin_stdlib = this.bytes.appendOptionsTo$kotlin_stdlib(sb, " ");
|
||||
appendOptionsTo$kotlin_stdlib.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib, "append(...)");
|
||||
sb.append(" ),");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(" number = NumberHexFormat(");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
StringBuilder appendOptionsTo$kotlin_stdlib2 = this.number.appendOptionsTo$kotlin_stdlib(sb, " ");
|
||||
appendOptionsTo$kotlin_stdlib2.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(appendOptionsTo$kotlin_stdlib2, "append(...)");
|
||||
sb.append(" )");
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append(")");
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
}
|
||||
24
apk_decompiled/sources/kotlin/text/HexFormatKt.java
Normal file
24
apk_decompiled/sources/kotlin/text/HexFormatKt.java
Normal file
@@ -0,0 +1,24 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.Unit;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.HexFormat;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0000\u001a%\u0010\u0000\u001a\u00020\u00012\u0017\u0010\u0002\u001a\u0013\u0012\u0004\u0012\u00020\u0004\u0012\u0004\u0012\u00020\u00050\u0003¢\u0006\u0002\b\u0006H\u0087\bø\u0001\u0000\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0007"}, d2 = {"HexFormat", "Lkotlin/text/HexFormat;", "builderAction", "Lkotlin/Function1;", "Lkotlin/text/HexFormat$Builder;", "", "Lkotlin/ExtensionFunctionType;", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class HexFormatKt {
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
private static final HexFormat HexFormat(Function1<? super HexFormat.Builder, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
HexFormat.Builder builder = new HexFormat.Builder();
|
||||
builderAction.invoke(builder);
|
||||
return builder.build();
|
||||
}
|
||||
}
|
||||
72
apk_decompiled/sources/kotlin/text/MatchGroup.java
Normal file
72
apk_decompiled/sources/kotlin/text/MatchGroup.java
Normal file
@@ -0,0 +1,72 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
@Metadata(d1 = {"\u0000(\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\n\u0002\u0010\u000b\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\b\u0086\b\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\t\u0010\u000b\u001a\u00020\u0003HÆ\u0003J\t\u0010\f\u001a\u00020\u0005HÆ\u0003J\u001d\u0010\r\u001a\u00020\u00002\b\b\u0002\u0010\u0002\u001a\u00020\u00032\b\b\u0002\u0010\u0004\u001a\u00020\u0005HÆ\u0001J\u0013\u0010\u000e\u001a\u00020\u000f2\b\u0010\u0010\u001a\u0004\u0018\u00010\u0001HÖ\u0003J\t\u0010\u0011\u001a\u00020\u0012HÖ\u0001J\t\u0010\u0013\u001a\u00020\u0003HÖ\u0001R\u0011\u0010\u0004\u001a\u00020\u0005¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\n¨\u0006\u0014"}, d2 = {"Lkotlin/text/MatchGroup;", "", "value", "", "range", "Lkotlin/ranges/IntRange;", "(Ljava/lang/String;Lkotlin/ranges/IntRange;)V", "getRange", "()Lkotlin/ranges/IntRange;", "getValue", "()Ljava/lang/String;", "component1", "component2", "copy", "equals", "", "other", "hashCode", "", "toString", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final /* data */ class MatchGroup {
|
||||
private final IntRange range;
|
||||
private final String value;
|
||||
|
||||
public MatchGroup(String value, IntRange range) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Intrinsics.checkNotNullParameter(range, "range");
|
||||
this.value = value;
|
||||
this.range = range;
|
||||
}
|
||||
|
||||
public static /* synthetic */ MatchGroup copy$default(MatchGroup matchGroup, String str, IntRange intRange, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str = matchGroup.value;
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
intRange = matchGroup.range;
|
||||
}
|
||||
return matchGroup.copy(str, intRange);
|
||||
}
|
||||
|
||||
/* renamed from: component1, reason: from getter */
|
||||
public final String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
/* renamed from: component2, reason: from getter */
|
||||
public final IntRange getRange() {
|
||||
return this.range;
|
||||
}
|
||||
|
||||
public final MatchGroup copy(String value, IntRange range) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Intrinsics.checkNotNullParameter(range, "range");
|
||||
return new MatchGroup(value, range);
|
||||
}
|
||||
|
||||
public boolean equals(Object other) {
|
||||
if (this == other) {
|
||||
return true;
|
||||
}
|
||||
if (!(other instanceof MatchGroup)) {
|
||||
return false;
|
||||
}
|
||||
MatchGroup matchGroup = (MatchGroup) other;
|
||||
return Intrinsics.areEqual(this.value, matchGroup.value) && Intrinsics.areEqual(this.range, matchGroup.range);
|
||||
}
|
||||
|
||||
public final IntRange getRange() {
|
||||
return this.range;
|
||||
}
|
||||
|
||||
public final String getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public int hashCode() {
|
||||
return this.range.hashCode() + (this.value.hashCode() * 31);
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "MatchGroup(value=" + this.value + ", range=" + this.range + ')';
|
||||
}
|
||||
}
|
||||
12
apk_decompiled/sources/kotlin/text/MatchGroupCollection.java
Normal file
12
apk_decompiled/sources/kotlin/text/MatchGroupCollection.java
Normal file
@@ -0,0 +1,12 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u001e\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\b\n\u0000\bf\u0018\u00002\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001J\u0013\u0010\u0003\u001a\u0004\u0018\u00010\u00022\u0006\u0010\u0004\u001a\u00020\u0005H¦\u0002¨\u0006\u0006"}, d2 = {"Lkotlin/text/MatchGroupCollection;", "", "Lkotlin/text/MatchGroup;", "get", FirebaseAnalytics.Param.INDEX, "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface MatchGroupCollection extends Collection<MatchGroup>, KMappedMarker {
|
||||
MatchGroup get(int index);
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\bg\u0018\u00002\u00020\u0001J\u0013\u0010\u0002\u001a\u0004\u0018\u00010\u00032\u0006\u0010\u0004\u001a\u00020\u0005H¦\u0002¨\u0006\u0006"}, d2 = {"Lkotlin/text/MatchNamedGroupCollection;", "Lkotlin/text/MatchGroupCollection;", "get", "Lkotlin/text/MatchGroup;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface MatchNamedGroupCollection extends MatchGroupCollection {
|
||||
MatchGroup get(String name);
|
||||
}
|
||||
101
apk_decompiled/sources/kotlin/text/MatchResult.java
Normal file
101
apk_decompiled/sources/kotlin/text/MatchResult.java
Normal file
@@ -0,0 +1,101 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
@Metadata(d1 = {"\u0000.\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\b\bf\u0018\u00002\u00020\u0001:\u0001\u0017J\n\u0010\u0016\u001a\u0004\u0018\u00010\u0000H&R\u0014\u0010\u0002\u001a\u00020\u00038VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0004\u0010\u0005R\u0018\u0010\u0006\u001a\b\u0012\u0004\u0012\u00020\b0\u0007X¦\u0004¢\u0006\u0006\u001a\u0004\b\t\u0010\nR\u0012\u0010\u000b\u001a\u00020\fX¦\u0004¢\u0006\u0006\u001a\u0004\b\r\u0010\u000eR\u0012\u0010\u000f\u001a\u00020\u0010X¦\u0004¢\u0006\u0006\u001a\u0004\b\u0011\u0010\u0012R\u0012\u0010\u0013\u001a\u00020\bX¦\u0004¢\u0006\u0006\u001a\u0004\b\u0014\u0010\u0015¨\u0006\u0018"}, d2 = {"Lkotlin/text/MatchResult;", "", "destructured", "Lkotlin/text/MatchResult$Destructured;", "getDestructured", "()Lkotlin/text/MatchResult$Destructured;", "groupValues", "", "", "getGroupValues", "()Ljava/util/List;", "groups", "Lkotlin/text/MatchGroupCollection;", "getGroups", "()Lkotlin/text/MatchGroupCollection;", "range", "Lkotlin/ranges/IntRange;", "getRange", "()Lkotlin/ranges/IntRange;", "value", "getValue", "()Ljava/lang/String;", "next", "Destructured", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public interface MatchResult {
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class DefaultImpls {
|
||||
public static Destructured getDestructured(MatchResult matchResult) {
|
||||
return new Destructured(matchResult);
|
||||
}
|
||||
}
|
||||
|
||||
@Metadata(d1 = {"\u0000 \n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0004\n\u0002\u0010\u000e\n\u0002\b\n\n\u0002\u0010 \n\u0000\u0018\u00002\u00020\u0001B\u000f\b\u0000\u0012\u0006\u0010\u0002\u001a\u00020\u0003¢\u0006\u0002\u0010\u0004J\t\u0010\u0007\u001a\u00020\bH\u0087\nJ\t\u0010\t\u001a\u00020\bH\u0087\nJ\t\u0010\n\u001a\u00020\bH\u0087\nJ\t\u0010\u000b\u001a\u00020\bH\u0087\nJ\t\u0010\f\u001a\u00020\bH\u0087\nJ\t\u0010\r\u001a\u00020\bH\u0087\nJ\t\u0010\u000e\u001a\u00020\bH\u0087\nJ\t\u0010\u000f\u001a\u00020\bH\u0087\nJ\t\u0010\u0010\u001a\u00020\bH\u0087\nJ\t\u0010\u0011\u001a\u00020\bH\u0087\nJ\f\u0010\u0012\u001a\b\u0012\u0004\u0012\u00020\b0\u0013R\u0011\u0010\u0002\u001a\u00020\u0003¢\u0006\b\n\u0000\u001a\u0004\b\u0005\u0010\u0006¨\u0006\u0014"}, d2 = {"Lkotlin/text/MatchResult$Destructured;", "", "match", "Lkotlin/text/MatchResult;", "(Lkotlin/text/MatchResult;)V", "getMatch", "()Lkotlin/text/MatchResult;", "component1", "", "component10", "component2", "component3", "component4", "component5", "component6", "component7", "component8", "component9", "toList", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Destructured {
|
||||
private final MatchResult match;
|
||||
|
||||
public Destructured(MatchResult match) {
|
||||
Intrinsics.checkNotNullParameter(match, "match");
|
||||
this.match = match;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component1() {
|
||||
return getMatch().getGroupValues().get(1);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component10() {
|
||||
return getMatch().getGroupValues().get(10);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component2() {
|
||||
return getMatch().getGroupValues().get(2);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component3() {
|
||||
return getMatch().getGroupValues().get(3);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component4() {
|
||||
return getMatch().getGroupValues().get(4);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component5() {
|
||||
return getMatch().getGroupValues().get(5);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component6() {
|
||||
return getMatch().getGroupValues().get(6);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component7() {
|
||||
return getMatch().getGroupValues().get(7);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component8() {
|
||||
return getMatch().getGroupValues().get(8);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private final String component9() {
|
||||
return getMatch().getGroupValues().get(9);
|
||||
}
|
||||
|
||||
public final MatchResult getMatch() {
|
||||
return this.match;
|
||||
}
|
||||
|
||||
public final List<String> toList() {
|
||||
return this.match.getGroupValues().subList(1, this.match.getGroupValues().size());
|
||||
}
|
||||
}
|
||||
|
||||
Destructured getDestructured();
|
||||
|
||||
List<String> getGroupValues();
|
||||
|
||||
MatchGroupCollection getGroups();
|
||||
|
||||
IntRange getRange();
|
||||
|
||||
String getValue();
|
||||
|
||||
MatchResult next();
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.AbstractCollection;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.internal.PlatformImplementations;
|
||||
import kotlin.internal.PlatformImplementationsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000-\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\u00020\u00012\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u0002J\u0013\u0010\b\u001a\u0004\u0018\u00010\u00032\u0006\u0010\t\u001a\u00020\u0005H\u0096\u0002J\u0013\u0010\b\u001a\u0004\u0018\u00010\u00032\u0006\u0010\n\u001a\u00020\u000bH\u0096\u0002J\b\u0010\f\u001a\u00020\rH\u0016J\u0011\u0010\u000e\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00030\u000fH\u0096\u0002R\u0014\u0010\u0004\u001a\u00020\u00058VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0006\u0010\u0007¨\u0006\u0010"}, d2 = {"kotlin/text/MatcherMatchResult$groups$1", "Lkotlin/text/MatchNamedGroupCollection;", "Lkotlin/collections/AbstractCollection;", "Lkotlin/text/MatchGroup;", "size", "", "getSize", "()I", "get", FirebaseAnalytics.Param.INDEX, AppMeasurementSdk.ConditionalUserProperty.NAME, "", "isEmpty", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class MatcherMatchResult$groups$1 extends AbstractCollection<MatchGroup> implements MatchNamedGroupCollection {
|
||||
final /* synthetic */ MatcherMatchResult this$0;
|
||||
|
||||
public MatcherMatchResult$groups$1(MatcherMatchResult matcherMatchResult) {
|
||||
this.this$0 = matcherMatchResult;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj == null ? true : obj instanceof MatchGroup) {
|
||||
return contains((MatchGroup) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchGroupCollection
|
||||
public MatchGroup get(int index) {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
IntRange range;
|
||||
java.util.regex.MatchResult matchResult2;
|
||||
matchResult = this.this$0.getMatchResult();
|
||||
range = RegexKt.range(matchResult, index);
|
||||
if (range.getStart().intValue() < 0) {
|
||||
return null;
|
||||
}
|
||||
matchResult2 = this.this$0.getMatchResult();
|
||||
String group = matchResult2.group(index);
|
||||
Intrinsics.checkNotNullExpressionValue(group, "group(...)");
|
||||
return new MatchGroup(group, range);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
matchResult = this.this$0.getMatchResult();
|
||||
return matchResult.groupCount() + 1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection, java.lang.Iterable
|
||||
public Iterator<MatchGroup> iterator() {
|
||||
return SequencesKt.map(CollectionsKt.asSequence(CollectionsKt.getIndices(this)), new Function1<Integer, MatchGroup>() { // from class: kotlin.text.MatcherMatchResult$groups$1$iterator$1
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public /* bridge */ /* synthetic */ MatchGroup invoke(Integer num) {
|
||||
return invoke(num.intValue());
|
||||
}
|
||||
|
||||
public final MatchGroup invoke(int i) {
|
||||
return MatcherMatchResult$groups$1.this.get(i);
|
||||
}
|
||||
}).iterator();
|
||||
}
|
||||
|
||||
public /* bridge */ boolean contains(MatchGroup matchGroup) {
|
||||
return super.contains((MatcherMatchResult$groups$1) matchGroup);
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchNamedGroupCollection
|
||||
public MatchGroup get(String name) {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
PlatformImplementations platformImplementations = PlatformImplementationsKt.IMPLEMENTATIONS;
|
||||
matchResult = this.this$0.getMatchResult();
|
||||
return platformImplementations.getMatchResultNamedGroup(matchResult, name);
|
||||
}
|
||||
}
|
||||
126
apk_decompiled/sources/kotlin/text/MatcherMatchResult.java
Normal file
126
apk_decompiled/sources/kotlin/text/MatcherMatchResult.java
Normal file
@@ -0,0 +1,126 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.regex.Matcher;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.AbstractList;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.text.MatchResult;
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0010 \n\u0002\u0010\u000e\n\u0002\b\u0004\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0007\b\u0002\u0018\u00002\u00020\u0001B\u0015\u0012\u0006\u0010\u0002\u001a\u00020\u0003\u0012\u0006\u0010\u0004\u001a\u00020\u0005¢\u0006\u0002\u0010\u0006J\n\u0010\u001c\u001a\u0004\u0018\u00010\u0001H\u0016R\u001a\u0010\u0007\u001a\b\u0012\u0004\u0012\u00020\t0\b8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\n\u0010\u000bR\u0016\u0010\f\u001a\n\u0012\u0004\u0012\u00020\t\u0018\u00010\bX\u0082\u000e¢\u0006\u0002\n\u0000R\u0014\u0010\r\u001a\u00020\u000eX\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u000f\u0010\u0010R\u000e\u0010\u0004\u001a\u00020\u0005X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0011\u001a\u00020\u00128BX\u0082\u0004¢\u0006\u0006\u001a\u0004\b\u0013\u0010\u0014R\u000e\u0010\u0002\u001a\u00020\u0003X\u0082\u0004¢\u0006\u0002\n\u0000R\u0014\u0010\u0015\u001a\u00020\u00168VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u0017\u0010\u0018R\u0014\u0010\u0019\u001a\u00020\t8VX\u0096\u0004¢\u0006\u0006\u001a\u0004\b\u001a\u0010\u001b¨\u0006\u001d"}, d2 = {"Lkotlin/text/MatcherMatchResult;", "Lkotlin/text/MatchResult;", "matcher", "Ljava/util/regex/Matcher;", "input", "", "(Ljava/util/regex/Matcher;Ljava/lang/CharSequence;)V", "groupValues", "", "", "getGroupValues", "()Ljava/util/List;", "groupValues_", "groups", "Lkotlin/text/MatchGroupCollection;", "getGroups", "()Lkotlin/text/MatchGroupCollection;", "matchResult", "Ljava/util/regex/MatchResult;", "getMatchResult", "()Ljava/util/regex/MatchResult;", "range", "Lkotlin/ranges/IntRange;", "getRange", "()Lkotlin/ranges/IntRange;", "value", "getValue", "()Ljava/lang/String;", "next", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
final class MatcherMatchResult implements MatchResult {
|
||||
private List<String> groupValues_;
|
||||
private final MatchGroupCollection groups;
|
||||
private final CharSequence input;
|
||||
private final Matcher matcher;
|
||||
|
||||
public MatcherMatchResult(Matcher matcher, CharSequence input) {
|
||||
Intrinsics.checkNotNullParameter(matcher, "matcher");
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
this.matcher = matcher;
|
||||
this.input = input;
|
||||
this.groups = new MatcherMatchResult$groups$1(this);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final java.util.regex.MatchResult getMatchResult() {
|
||||
return this.matcher;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchResult.Destructured getDestructured() {
|
||||
return MatchResult.DefaultImpls.getDestructured(this);
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public List<String> getGroupValues() {
|
||||
if (this.groupValues_ == null) {
|
||||
this.groupValues_ = new AbstractList<String>() { // from class: kotlin.text.MatcherMatchResult$groupValues$1
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public final /* bridge */ boolean contains(Object obj) {
|
||||
if (obj instanceof String) {
|
||||
return contains((String) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, kotlin.collections.AbstractCollection
|
||||
/* renamed from: getSize */
|
||||
public int get_size() {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
matchResult = MatcherMatchResult.this.getMatchResult();
|
||||
return matchResult.groupCount() + 1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof String) {
|
||||
return indexOf((String) obj);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int lastIndexOf(Object obj) {
|
||||
if (obj instanceof String) {
|
||||
return lastIndexOf((String) obj);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public /* bridge */ boolean contains(String str) {
|
||||
return super.contains((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public String get(int index) {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
matchResult = MatcherMatchResult.this.getMatchResult();
|
||||
String group = matchResult.group(index);
|
||||
return group == null ? "" : group;
|
||||
}
|
||||
|
||||
public /* bridge */ int indexOf(String str) {
|
||||
return super.indexOf((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
|
||||
public /* bridge */ int lastIndexOf(String str) {
|
||||
return super.lastIndexOf((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
};
|
||||
}
|
||||
List<String> list = this.groupValues_;
|
||||
Intrinsics.checkNotNull(list);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchGroupCollection getGroups() {
|
||||
return this.groups;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public IntRange getRange() {
|
||||
return RegexKt.access$range(getMatchResult());
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public String getValue() {
|
||||
String group = getMatchResult().group();
|
||||
Intrinsics.checkNotNullExpressionValue(group, "group(...)");
|
||||
return group;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchResult next() {
|
||||
int end = getMatchResult().end() + (getMatchResult().end() == getMatchResult().start() ? 1 : 0);
|
||||
if (end > this.input.length()) {
|
||||
return null;
|
||||
}
|
||||
Matcher matcher = this.matcher.pattern().matcher(this.input);
|
||||
Intrinsics.checkNotNullExpressionValue(matcher, "matcher(...)");
|
||||
return RegexKt.access$findNext(matcher, end, this.input);
|
||||
}
|
||||
}
|
||||
22
apk_decompiled/sources/kotlin/text/Regex$findAll$2.java
Normal file
22
apk_decompiled/sources/kotlin/text/Regex$findAll$2.java
Normal file
@@ -0,0 +1,22 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReferenceImpl;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public /* synthetic */ class Regex$findAll$2 extends FunctionReferenceImpl implements Function1<MatchResult, MatchResult> {
|
||||
public static final Regex$findAll$2 INSTANCE = new Regex$findAll$2();
|
||||
|
||||
public Regex$findAll$2() {
|
||||
super(1, MatchResult.class, "next", "next()Lkotlin/text/MatchResult;", 0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final MatchResult invoke(MatchResult p02) {
|
||||
Intrinsics.checkNotNullParameter(p02, "p0");
|
||||
return p02.next();
|
||||
}
|
||||
}
|
||||
163
apk_decompiled/sources/kotlin/text/Regex$splitToSequence$1.java
Normal file
163
apk_decompiled/sources/kotlin/text/Regex$splitToSequence$1.java
Normal file
@@ -0,0 +1,163 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.Unit;
|
||||
import kotlin.coroutines.Continuation;
|
||||
import kotlin.coroutines.jvm.internal.DebugMetadata;
|
||||
import kotlin.coroutines.jvm.internal.RestrictedSuspendLambda;
|
||||
import kotlin.jvm.functions.Function2;
|
||||
import kotlin.sequences.SequenceScope;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0000\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u000e\u0010\u0000\u001a\u00020\u0001*\b\u0012\u0004\u0012\u00020\u00030\u0002H\u008a@"}, d2 = {"<anonymous>", "", "Lkotlin/sequences/SequenceScope;", ""}, k = 3, mv = {1, 9, 0}, xi = 48)
|
||||
@DebugMetadata(c = "kotlin.text.Regex$splitToSequence$1", f = "Regex.kt", i = {1, 1, 1}, l = {275, 283, 287}, m = "invokeSuspend", n = {"$this$sequence", "matcher", "splitCount"}, s = {"L$0", "L$1", "I$0"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Regex$splitToSequence$1 extends RestrictedSuspendLambda implements Function2<SequenceScope<? super String>, Continuation<? super Unit>, Object> {
|
||||
final /* synthetic */ CharSequence $input;
|
||||
final /* synthetic */ int $limit;
|
||||
int I$0;
|
||||
private /* synthetic */ Object L$0;
|
||||
Object L$1;
|
||||
int label;
|
||||
final /* synthetic */ Regex this$0;
|
||||
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
public Regex$splitToSequence$1(Regex regex, CharSequence charSequence, int i, Continuation<? super Regex$splitToSequence$1> continuation) {
|
||||
super(2, continuation);
|
||||
this.this$0 = regex;
|
||||
this.$input = charSequence;
|
||||
this.$limit = i;
|
||||
}
|
||||
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
public final Continuation<Unit> create(Object obj, Continuation<?> continuation) {
|
||||
Regex$splitToSequence$1 regex$splitToSequence$1 = new Regex$splitToSequence$1(this.this$0, this.$input, this.$limit, continuation);
|
||||
regex$splitToSequence$1.L$0 = obj;
|
||||
return regex$splitToSequence$1;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:18:0x006e, code lost:
|
||||
|
||||
if (r6.yield(r5, r9) != r0) goto L21;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:19:0x00ae, code lost:
|
||||
|
||||
return r0;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:21:0x009a, code lost:
|
||||
|
||||
if (r6.yield(r10, r9) == r0) goto L32;
|
||||
*/
|
||||
/* JADX WARN: Code restructure failed: missing block: B:31:0x00ac, code lost:
|
||||
|
||||
if (r10.yield(r1, r9) == r0) goto L32;
|
||||
*/
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:18:0x006e -> B:13:0x0071). Please report as a decompilation issue!!! */
|
||||
@Override // kotlin.coroutines.jvm.internal.BaseContinuationImpl
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public final java.lang.Object invokeSuspend(java.lang.Object r10) {
|
||||
/*
|
||||
r9 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r9.label
|
||||
r2 = 3
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L32
|
||||
if (r1 == r4) goto L2d
|
||||
if (r1 == r3) goto L1e
|
||||
if (r1 != r2) goto L16
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
goto L9d
|
||||
L16:
|
||||
java.lang.IllegalStateException r9 = new java.lang.IllegalStateException
|
||||
java.lang.String r10 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r9.<init>(r10)
|
||||
throw r9
|
||||
L1e:
|
||||
int r1 = r9.I$0
|
||||
java.lang.Object r5 = r9.L$1
|
||||
java.util.regex.Matcher r5 = (java.util.regex.Matcher) r5
|
||||
java.lang.Object r6 = r9.L$0
|
||||
kotlin.sequences.SequenceScope r6 = (kotlin.sequences.SequenceScope) r6
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
r10 = r5
|
||||
goto L71
|
||||
L2d:
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
goto Laf
|
||||
L32:
|
||||
kotlin.ResultKt.throwOnFailure(r10)
|
||||
java.lang.Object r10 = r9.L$0
|
||||
kotlin.sequences.SequenceScope r10 = (kotlin.sequences.SequenceScope) r10
|
||||
kotlin.text.Regex r1 = r9.this$0
|
||||
java.util.regex.Pattern r1 = kotlin.text.Regex.access$getNativePattern$p(r1)
|
||||
java.lang.CharSequence r5 = r9.$input
|
||||
java.util.regex.Matcher r1 = r1.matcher(r5)
|
||||
int r5 = r9.$limit
|
||||
if (r5 == r4) goto La0
|
||||
boolean r5 = r1.find()
|
||||
if (r5 != 0) goto L50
|
||||
goto La0
|
||||
L50:
|
||||
r5 = 0
|
||||
r6 = r10
|
||||
r10 = r1
|
||||
r1 = r5
|
||||
L54:
|
||||
java.lang.CharSequence r7 = r9.$input
|
||||
int r8 = r10.start()
|
||||
java.lang.CharSequence r5 = r7.subSequence(r5, r8)
|
||||
java.lang.String r5 = r5.toString()
|
||||
r9.L$0 = r6
|
||||
r9.L$1 = r10
|
||||
r9.I$0 = r1
|
||||
r9.label = r3
|
||||
java.lang.Object r5 = r6.yield(r5, r9)
|
||||
if (r5 != r0) goto L71
|
||||
goto Lae
|
||||
L71:
|
||||
int r5 = r10.end()
|
||||
int r1 = r1 + r4
|
||||
int r7 = r9.$limit
|
||||
int r7 = r7 - r4
|
||||
if (r1 == r7) goto L81
|
||||
boolean r7 = r10.find()
|
||||
if (r7 != 0) goto L54
|
||||
L81:
|
||||
java.lang.CharSequence r10 = r9.$input
|
||||
int r1 = r10.length()
|
||||
java.lang.CharSequence r10 = r10.subSequence(r5, r1)
|
||||
java.lang.String r10 = r10.toString()
|
||||
r1 = 0
|
||||
r9.L$0 = r1
|
||||
r9.L$1 = r1
|
||||
r9.label = r2
|
||||
java.lang.Object r9 = r6.yield(r10, r9)
|
||||
if (r9 != r0) goto L9d
|
||||
goto Lae
|
||||
L9d:
|
||||
kotlin.Unit r9 = kotlin.Unit.INSTANCE
|
||||
return r9
|
||||
La0:
|
||||
java.lang.CharSequence r1 = r9.$input
|
||||
java.lang.String r1 = r1.toString()
|
||||
r9.label = r4
|
||||
java.lang.Object r9 = r10.yield(r1, r9)
|
||||
if (r9 != r0) goto Laf
|
||||
Lae:
|
||||
return r0
|
||||
Laf:
|
||||
kotlin.Unit r9 = kotlin.Unit.INSTANCE
|
||||
return r9
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex$splitToSequence$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function2
|
||||
public final Object invoke(SequenceScope<? super String> sequenceScope, Continuation<? super Unit> continuation) {
|
||||
return ((Regex$splitToSequence$1) create(sequenceScope, continuation)).invokeSuspend(Unit.INSTANCE);
|
||||
}
|
||||
}
|
||||
385
apk_decompiled/sources/kotlin/text/Regex.java
Normal file
385
apk_decompiled/sources/kotlin/text/Regex.java
Normal file
@@ -0,0 +1,385 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.io.Serializable;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
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;
|
||||
|
||||
@Metadata(d1 = {"\u0000f\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\"\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0007\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\r\n\u0000\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\u0003\n\u0002\u0010 \n\u0002\b\u0005\n\u0002\u0010\u0000\n\u0002\b\u0003\u0018\u0000 02\u00060\u0001j\u0002`\u0002:\u000201B\u000f\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004¢\u0006\u0002\u0010\u0005B\u0017\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0006\u001a\u00020\u0007¢\u0006\u0002\u0010\bB\u001d\b\u0016\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\f\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00070\n¢\u0006\u0002\u0010\u000bB\u000f\b\u0001\u0012\u0006\u0010\f\u001a\u00020\r¢\u0006\u0002\u0010\u000eJ\u000e\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u0017J\u001a\u0010\u0018\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0016\u001a\u00020\u00172\b\b\u0002\u0010\u001a\u001a\u00020\u001bJ\u001e\u0010\u001c\u001a\b\u0012\u0004\u0012\u00020\u00190\u001d2\u0006\u0010\u0016\u001a\u00020\u00172\b\b\u0002\u0010\u001a\u001a\u00020\u001bJ\u001a\u0010\u001e\u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u001f\u001a\u00020\u001bH\u0007J\u0010\u0010 \u001a\u0004\u0018\u00010\u00192\u0006\u0010\u0016\u001a\u00020\u0017J\u0011\u0010!\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u0017H\u0086\u0004J\u0018\u0010\"\u001a\u00020\u00152\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010\u001f\u001a\u00020\u001bH\u0007J\"\u0010#\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u00172\u0012\u0010$\u001a\u000e\u0012\u0004\u0012\u00020\u0019\u0012\u0004\u0012\u00020\u00170%J\u0016\u0010#\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010&\u001a\u00020\u0004J\u0016\u0010'\u001a\u00020\u00042\u0006\u0010\u0016\u001a\u00020\u00172\u0006\u0010&\u001a\u00020\u0004J\u001e\u0010(\u001a\b\u0012\u0004\u0012\u00020\u00040)2\u0006\u0010\u0016\u001a\u00020\u00172\b\b\u0002\u0010*\u001a\u00020\u001bJ \u0010+\u001a\b\u0012\u0004\u0012\u00020\u00040\u001d2\u0006\u0010\u0016\u001a\u00020\u00172\b\b\u0002\u0010*\u001a\u00020\u001bH\u0007J\u0006\u0010,\u001a\u00020\rJ\b\u0010-\u001a\u00020\u0004H\u0016J\b\u0010.\u001a\u00020/H\u0002R\u0016\u0010\u000f\u001a\n\u0012\u0004\u0012\u00020\u0007\u0018\u00010\nX\u0082\u000e¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\rX\u0082\u0004¢\u0006\u0002\n\u0000R\u0017\u0010\t\u001a\b\u0012\u0004\u0012\u00020\u00070\n8F¢\u0006\u0006\u001a\u0004\b\u0010\u0010\u0011R\u0011\u0010\u0003\u001a\u00020\u00048F¢\u0006\u0006\u001a\u0004\b\u0012\u0010\u0013¨\u00062"}, d2 = {"Lkotlin/text/Regex;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "pattern", "", "(Ljava/lang/String;)V", "option", "Lkotlin/text/RegexOption;", "(Ljava/lang/String;Lkotlin/text/RegexOption;)V", "options", "", "(Ljava/lang/String;Ljava/util/Set;)V", "nativePattern", "Ljava/util/regex/Pattern;", "(Ljava/util/regex/Pattern;)V", "_options", "getOptions", "()Ljava/util/Set;", "getPattern", "()Ljava/lang/String;", "containsMatchIn", "", "input", "", "find", "Lkotlin/text/MatchResult;", "startIndex", "", "findAll", "Lkotlin/sequences/Sequence;", "matchAt", FirebaseAnalytics.Param.INDEX, "matchEntire", "matches", "matchesAt", "replace", "transform", "Lkotlin/Function1;", "replacement", "replaceFirst", "split", "", "limit", "splitToSequence", "toPattern", "toString", "writeReplace", "", "Companion", "Serialized", "kotlin-stdlib"}, k = 1, mv = {1, 9, 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,397:1\n22#2,3:398\n1#3:401\n*S KotlinDebug\n*F\n+ 1 Regex.kt\nkotlin/text/Regex\n*L\n103#1:398,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Regex implements Serializable {
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private Set<? extends RegexOption> _options;
|
||||
private final Pattern nativePattern;
|
||||
|
||||
@Metadata(d1 = {"\u0000\"\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\b\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002J\u0010\u0010\u0003\u001a\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0004H\u0002J\u000e\u0010\u0006\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007J\u000e\u0010\t\u001a\u00020\u00072\u0006\u0010\b\u001a\u00020\u0007J\u000e\u0010\n\u001a\u00020\u000b2\u0006\u0010\b\u001a\u00020\u0007¨\u0006\f"}, d2 = {"Lkotlin/text/Regex$Companion;", "", "()V", "ensureUnicodeCase", "", "flags", "escape", "", "literal", "escapeReplacement", "fromLiteral", "Lkotlin/text/Regex;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.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;
|
||||
}
|
||||
|
||||
public final String escape(String literal) {
|
||||
Intrinsics.checkNotNullParameter(literal, "literal");
|
||||
String quote = Pattern.quote(literal);
|
||||
Intrinsics.checkNotNullExpressionValue(quote, "quote(...)");
|
||||
return quote;
|
||||
}
|
||||
|
||||
public final String escapeReplacement(String literal) {
|
||||
Intrinsics.checkNotNullParameter(literal, "literal");
|
||||
String quoteReplacement = Matcher.quoteReplacement(literal);
|
||||
Intrinsics.checkNotNullExpressionValue(quoteReplacement, "quoteReplacement(...)");
|
||||
return quoteReplacement;
|
||||
}
|
||||
|
||||
public final Regex fromLiteral(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\u0006\n\u0002\u0010\u0000\n\u0002\b\u0002\b\u0002\u0018\u0000 \u000e2\u00060\u0001j\u0002`\u0002:\u0001\u000eB\u0015\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\u0006\u0010\u0005\u001a\u00020\u0006¢\u0006\u0002\u0010\u0007J\b\u0010\f\u001a\u00020\rH\u0002R\u0011\u0010\u0005\u001a\u00020\u0006¢\u0006\b\n\u0000\u001a\u0004\b\b\u0010\tR\u0011\u0010\u0003\u001a\u00020\u0004¢\u0006\b\n\u0000\u001a\u0004\b\n\u0010\u000b¨\u0006\u000f"}, d2 = {"Lkotlin/text/Regex$Serialized;", "Ljava/io/Serializable;", "Lkotlin/io/Serializable;", "pattern", "", "flags", "", "(Ljava/lang/String;I)V", "getFlags", "()I", "getPattern", "()Ljava/lang/String;", "readResolve", "", "Companion", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public static final class Serialized implements Serializable {
|
||||
private static final long serialVersionUID = 0;
|
||||
private final int flags;
|
||||
private final String pattern;
|
||||
|
||||
public Serialized(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;
|
||||
}
|
||||
|
||||
public final String getPattern() {
|
||||
return this.pattern;
|
||||
}
|
||||
}
|
||||
|
||||
@PublishedApi
|
||||
public Regex(Pattern nativePattern) {
|
||||
Intrinsics.checkNotNullParameter(nativePattern, "nativePattern");
|
||||
this.nativePattern = nativePattern;
|
||||
}
|
||||
|
||||
public static /* synthetic */ MatchResult find$default(Regex regex, CharSequence charSequence, int i, int i4, Object obj) {
|
||||
if ((i4 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.find(charSequence, i);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Sequence findAll$default(Regex regex, CharSequence charSequence, int i, int i4, Object obj) {
|
||||
if ((i4 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.findAll(charSequence, i);
|
||||
}
|
||||
|
||||
public static /* synthetic */ List split$default(Regex regex, CharSequence charSequence, int i, int i4, Object obj) {
|
||||
if ((i4 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.split(charSequence, i);
|
||||
}
|
||||
|
||||
public static /* synthetic */ Sequence splitToSequence$default(Regex regex, CharSequence charSequence, int i, int i4, Object obj) {
|
||||
if ((i4 & 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(CharSequence input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
return this.nativePattern.matcher(input).find();
|
||||
}
|
||||
|
||||
public final MatchResult find(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);
|
||||
}
|
||||
|
||||
public final Sequence<MatchResult> findAll(final CharSequence input, final int startIndex) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
if (startIndex >= 0 && startIndex <= input.length()) {
|
||||
return SequencesKt.generateSequence((Function0) new Function0<MatchResult>() { // from class: kotlin.text.Regex$findAll$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function0
|
||||
public final MatchResult invoke() {
|
||||
return Regex.this.find(input, startIndex);
|
||||
}
|
||||
}, (Function1) Regex$findAll$2.INSTANCE);
|
||||
}
|
||||
StringBuilder t2 = w.t(startIndex, "Start index out of bounds: ", ", input length: ");
|
||||
t2.append(input.length());
|
||||
throw new IndexOutOfBoundsException(t2.toString());
|
||||
}
|
||||
|
||||
public final Set<RegexOption> getOptions() {
|
||||
Set set = this._options;
|
||||
if (set != null) {
|
||||
return set;
|
||||
}
|
||||
final int flags = this.nativePattern.flags();
|
||||
EnumSet allOf = EnumSet.allOf(RegexOption.class);
|
||||
Intrinsics.checkNotNull(allOf);
|
||||
CollectionsKt.r(allOf, new Function1<RegexOption, Boolean>() { // from class: kotlin.text.Regex$special$$inlined$fromInt$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(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 = Collections.unmodifiableSet(allOf);
|
||||
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(...)");
|
||||
this._options = unmodifiableSet;
|
||||
return unmodifiableSet;
|
||||
}
|
||||
|
||||
public final String getPattern() {
|
||||
String pattern = this.nativePattern.pattern();
|
||||
Intrinsics.checkNotNullExpressionValue(pattern, "pattern(...)");
|
||||
return pattern;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.7")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public final MatchResult matchAt(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()) {
|
||||
return null;
|
||||
}
|
||||
Intrinsics.checkNotNull(region);
|
||||
return new MatcherMatchResult(region, input);
|
||||
}
|
||||
|
||||
public final MatchResult matchEntire(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(CharSequence input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
return this.nativePattern.matcher(input).matches();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.7")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public final boolean matchesAt(CharSequence input, int index) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
return this.nativePattern.matcher(input).useAnchoringBounds(false).useTransparentBounds(true).region(index, input.length()).lookingAt();
|
||||
}
|
||||
|
||||
public final String replace(CharSequence input, String replacement) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Intrinsics.checkNotNullParameter(replacement, "replacement");
|
||||
String replaceAll = this.nativePattern.matcher(input).replaceAll(replacement);
|
||||
Intrinsics.checkNotNullExpressionValue(replaceAll, "replaceAll(...)");
|
||||
return replaceAll;
|
||||
}
|
||||
|
||||
public final String replaceFirst(CharSequence input, String replacement) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Intrinsics.checkNotNullParameter(replacement, "replacement");
|
||||
String replaceFirst = this.nativePattern.matcher(input).replaceFirst(replacement);
|
||||
Intrinsics.checkNotNullExpressionValue(replaceFirst, "replaceFirst(...)");
|
||||
return replaceFirst;
|
||||
}
|
||||
|
||||
public final List<String> split(CharSequence input, int limit) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
StringsKt__StringsKt.requireNonNegativeLimit(limit);
|
||||
Matcher matcher = this.nativePattern.matcher(input);
|
||||
if (limit == 1 || !matcher.find()) {
|
||||
return CollectionsKt.listOf(input.toString());
|
||||
}
|
||||
ArrayList arrayList = new ArrayList(limit > 0 ? RangesKt.coerceAtMost(limit, 10) : 10);
|
||||
int i = limit - 1;
|
||||
int i4 = 0;
|
||||
do {
|
||||
arrayList.add(input.subSequence(i4, matcher.start()).toString());
|
||||
i4 = matcher.end();
|
||||
if (i >= 0 && arrayList.size() == i) {
|
||||
break;
|
||||
}
|
||||
} while (matcher.find());
|
||||
arrayList.add(input.subSequence(i4, input.length()).toString());
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.6")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public final Sequence<String> splitToSequence(CharSequence input, int limit) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
StringsKt__StringsKt.requireNonNegativeLimit(limit);
|
||||
return SequencesKt.sequence(new Regex$splitToSequence$1(this, input, limit, null));
|
||||
}
|
||||
|
||||
/* renamed from: toPattern, reason: from getter */
|
||||
public final Pattern getNativePattern() {
|
||||
return this.nativePattern;
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String pattern = this.nativePattern.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(pattern, "toString(...)");
|
||||
return pattern;
|
||||
}
|
||||
|
||||
public final String replace(CharSequence input, 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(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(java.lang.String r2, 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(java.lang.String r2, 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");
|
||||
}
|
||||
}
|
||||
83
apk_decompiled/sources/kotlin/text/RegexKt.java
Normal file
83
apk_decompiled/sources/kotlin/text/RegexKt.java
Normal file
@@ -0,0 +1,83 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.firebase.messaging.Constants;
|
||||
import java.util.Collections;
|
||||
import java.util.EnumSet;
|
||||
import java.util.Iterator;
|
||||
import java.util.Set;
|
||||
import java.util.regex.Matcher;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt__MutableCollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000>\n\u0000\n\u0002\u0010\"\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u001c\n\u0000\u001a-\u0010\u0000\u001a\b\u0012\u0004\u0012\u0002H\u00020\u0001\"\u0014\b\u0000\u0010\u0002\u0018\u0001*\u00020\u0003*\b\u0012\u0004\u0012\u0002H\u00020\u00042\u0006\u0010\u0005\u001a\u00020\u0006H\u0082\b\u001a\u001e\u0010\u0007\u001a\u0004\u0018\u00010\b*\u00020\t2\u0006\u0010\n\u001a\u00020\u00062\u0006\u0010\u000b\u001a\u00020\fH\u0002\u001a\u0016\u0010\r\u001a\u0004\u0018\u00010\b*\u00020\t2\u0006\u0010\u000b\u001a\u00020\fH\u0002\u001a\f\u0010\u000e\u001a\u00020\u000f*\u00020\u0010H\u0002\u001a\u0014\u0010\u000e\u001a\u00020\u000f*\u00020\u00102\u0006\u0010\u0011\u001a\u00020\u0006H\u0002\u001a\u0012\u0010\u0012\u001a\u00020\u0006*\b\u0012\u0004\u0012\u00020\u00030\u0013H\u0002¨\u0006\u0014"}, d2 = {"fromInt", "", "T", "Lkotlin/text/FlagEnum;", "", "value", "", "findNext", "Lkotlin/text/MatchResult;", "Ljava/util/regex/Matcher;", Constants.MessagePayloadKeys.FROM, "input", "", "matchEntire", "range", "Lkotlin/ranges/IntRange;", "Ljava/util/regex/MatchResult;", "groupIndex", "toInt", "", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nRegex.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,397:1\n1789#2,3:398\n*S KotlinDebug\n*F\n+ 1 Regex.kt\nkotlin/text/RegexKt\n*L\n19#1:398,3\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RegexKt {
|
||||
public static final /* synthetic */ MatchResult access$findNext(Matcher matcher, int i, CharSequence charSequence) {
|
||||
return findNext(matcher, i, charSequence);
|
||||
}
|
||||
|
||||
public static final /* synthetic */ IntRange access$range(java.util.regex.MatchResult matchResult) {
|
||||
return range(matchResult);
|
||||
}
|
||||
|
||||
public static final MatchResult findNext(Matcher matcher, int i, CharSequence charSequence) {
|
||||
if (matcher.find(i)) {
|
||||
return new MatcherMatchResult(matcher, charSequence);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
private static final /* synthetic */ <T extends Enum<T> & FlagEnum> Set<T> fromInt(final int i) {
|
||||
Intrinsics.reifiedOperationMarker(4, "T");
|
||||
EnumSet allOf = EnumSet.allOf(Enum.class);
|
||||
Intrinsics.checkNotNull(allOf);
|
||||
Intrinsics.needClassReification();
|
||||
CollectionsKt__MutableCollectionsKt.retainAll(allOf, new Function1<T, Boolean>() { // from class: kotlin.text.RegexKt$fromInt$1$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
/* JADX WARN: Incorrect types in method signature: (TT;)Ljava/lang/Boolean; */
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final Boolean invoke(Enum r22) {
|
||||
FlagEnum flagEnum = (FlagEnum) r22;
|
||||
return Boolean.valueOf((i & flagEnum.getMask()) == flagEnum.getValue());
|
||||
}
|
||||
});
|
||||
Set<T> unmodifiableSet = Collections.unmodifiableSet(allOf);
|
||||
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(...)");
|
||||
return unmodifiableSet;
|
||||
}
|
||||
|
||||
public static final MatchResult matchEntire(Matcher matcher, CharSequence charSequence) {
|
||||
if (matcher.matches()) {
|
||||
return new MatcherMatchResult(matcher, charSequence);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final IntRange range(java.util.regex.MatchResult matchResult) {
|
||||
return RangesKt.until(matchResult.start(), matchResult.end());
|
||||
}
|
||||
|
||||
public static final int toInt(Iterable<? extends FlagEnum> iterable) {
|
||||
Iterator<? extends FlagEnum> it = iterable.iterator();
|
||||
int i = 0;
|
||||
while (it.hasNext()) {
|
||||
i |= it.next().getValue();
|
||||
}
|
||||
return i;
|
||||
}
|
||||
|
||||
public static final IntRange range(java.util.regex.MatchResult matchResult, int i) {
|
||||
return RangesKt.until(matchResult.start(i), matchResult.end(i));
|
||||
}
|
||||
}
|
||||
65
apk_decompiled/sources/kotlin/text/RegexOption.java
Normal file
65
apk_decompiled/sources/kotlin/text/RegexOption.java
Normal file
@@ -0,0 +1,65 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.enums.EnumEntries;
|
||||
import kotlin.enums.EnumEntriesKt;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* JADX WARN: Unknown enum class pattern. Please report as an issue! */
|
||||
@Metadata(d1 = {"\u0000\u0016\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\r\b\u0086\u0081\u0002\u0018\u00002\b\u0012\u0004\u0012\u00020\u00000\u00012\u00020\u0002B\u0019\b\u0002\u0012\u0006\u0010\u0003\u001a\u00020\u0004\u0012\b\b\u0002\u0010\u0005\u001a\u00020\u0004¢\u0006\u0002\u0010\u0006R\u0014\u0010\u0005\u001a\u00020\u0004X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0007\u0010\bR\u0014\u0010\u0003\u001a\u00020\u0004X\u0096\u0004¢\u0006\b\n\u0000\u001a\u0004\b\t\u0010\bj\u0002\b\nj\u0002\b\u000bj\u0002\b\fj\u0002\b\rj\u0002\b\u000ej\u0002\b\u000fj\u0002\b\u0010¨\u0006\u0011"}, d2 = {"Lkotlin/text/RegexOption;", "", "Lkotlin/text/FlagEnum;", "value", "", "mask", "(Ljava/lang/String;III)V", "getMask", "()I", "getValue", "IGNORE_CASE", "MULTILINE", "LITERAL", "UNIX_LINES", "COMMENTS", "DOT_MATCHES_ALL", "CANON_EQ", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RegexOption implements FlagEnum {
|
||||
private static final /* synthetic */ EnumEntries $ENTRIES;
|
||||
private static final /* synthetic */ RegexOption[] $VALUES;
|
||||
private final int mask;
|
||||
private final int value;
|
||||
public static final RegexOption IGNORE_CASE = new RegexOption("IGNORE_CASE", 0, 2, 0, 2, null);
|
||||
public static final RegexOption MULTILINE = new RegexOption("MULTILINE", 1, 8, 0, 2, null);
|
||||
public static final RegexOption LITERAL = new RegexOption("LITERAL", 2, 16, 0, 2, null);
|
||||
public static final RegexOption UNIX_LINES = new RegexOption("UNIX_LINES", 3, 1, 0, 2, null);
|
||||
public static final RegexOption COMMENTS = new RegexOption("COMMENTS", 4, 4, 0, 2, null);
|
||||
public static final RegexOption DOT_MATCHES_ALL = new RegexOption("DOT_MATCHES_ALL", 5, 32, 0, 2, null);
|
||||
public static final RegexOption CANON_EQ = new RegexOption("CANON_EQ", 6, 128, 0, 2, null);
|
||||
|
||||
private static final /* synthetic */ RegexOption[] $values() {
|
||||
return new RegexOption[]{IGNORE_CASE, MULTILINE, LITERAL, UNIX_LINES, COMMENTS, DOT_MATCHES_ALL, CANON_EQ};
|
||||
}
|
||||
|
||||
static {
|
||||
RegexOption[] $values = $values();
|
||||
$VALUES = $values;
|
||||
$ENTRIES = EnumEntriesKt.enumEntries($values);
|
||||
}
|
||||
|
||||
private RegexOption(String str, int i, int i4, int i5) {
|
||||
this.value = i4;
|
||||
this.mask = i5;
|
||||
}
|
||||
|
||||
public static EnumEntries<RegexOption> getEntries() {
|
||||
return $ENTRIES;
|
||||
}
|
||||
|
||||
public static RegexOption valueOf(String str) {
|
||||
return (RegexOption) Enum.valueOf(RegexOption.class, str);
|
||||
}
|
||||
|
||||
public static RegexOption[] values() {
|
||||
return (RegexOption[]) $VALUES.clone();
|
||||
}
|
||||
|
||||
@Override // kotlin.text.FlagEnum
|
||||
public int getMask() {
|
||||
return this.mask;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.FlagEnum
|
||||
public int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
public /* synthetic */ RegexOption(String str, int i, int i4, int i5, int i6, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(str, i, i4, (i6 & 2) != 0 ? i4 : i5);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmField;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0010\u0010\u0003\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lkotlin/text/ScreenFloatValueRegEx;", "", "()V", "value", "Lkotlin/text/Regex;", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
final class ScreenFloatValueRegEx {
|
||||
public static final ScreenFloatValueRegEx INSTANCE = new ScreenFloatValueRegEx();
|
||||
|
||||
@JvmField
|
||||
public static final Regex value = new Regex("[\\x00-\\x20]*[+-]?(NaN|Infinity|((((\\p{Digit}+)(\\.)?((\\p{Digit}+)?)([eE][+-]?(\\p{Digit}+))?)|(\\.((\\p{Digit}+))([eE][+-]?(\\p{Digit}+))?)|(((0[xX](\\p{XDigit}+)(\\.)?)|(0[xX](\\p{XDigit}+)?(\\.)(\\p{XDigit}+)))[pP][+-]?(\\p{Digit}+)))[fFdD]?))[\\x00-\\x20]*");
|
||||
|
||||
private ScreenFloatValueRegEx() {
|
||||
}
|
||||
}
|
||||
63
apk_decompiled/sources/kotlin/text/StringsKt.java
Normal file
63
apk_decompiled/sources/kotlin/text/StringsKt.java
Normal file
@@ -0,0 +1,63 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
|
||||
@Metadata(d1 = {"kotlin/text/StringsKt__AppendableKt", "kotlin/text/StringsKt__IndentKt", "kotlin/text/StringsKt__RegexExtensionsJVMKt", "kotlin/text/StringsKt__RegexExtensionsKt", "kotlin/text/StringsKt__StringBuilderJVMKt", "kotlin/text/StringsKt__StringBuilderKt", "kotlin/text/StringsKt__StringNumberConversionsJVMKt", "kotlin/text/StringsKt__StringNumberConversionsKt", "kotlin/text/StringsKt__StringsJVMKt", "kotlin/text/StringsKt__StringsKt", "kotlin/text/StringsKt___StringsJvmKt", "kotlin/text/StringsKt___StringsKt"}, k = 4, mv = {1, 9, 0}, xi = 49)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class StringsKt extends StringsKt___StringsKt {
|
||||
private StringsKt() {
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean D(String str, String str2) {
|
||||
return StringsKt__StringsJVMKt.startsWith$default(str, str2, false, 2, null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ CharSequence P(String str) {
|
||||
return StringsKt__StringsKt.trim((CharSequence) str);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ void a(StringBuilder sb, String... strArr) {
|
||||
StringsKt__StringBuilderKt.append(sb, strArr);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean d(CharSequence charSequence, char c4) {
|
||||
return StringsKt__StringsKt.contains$default(charSequence, c4, false, 2, (Object) null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean e(CharSequence charSequence, String str) {
|
||||
return StringsKt__StringsKt.contains$default(charSequence, (CharSequence) str, false, 2, (Object) null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean i(String str, String str2) {
|
||||
return StringsKt__StringsJVMKt.endsWith$default(str, str2, false, 2, null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ boolean j(String str, String str2) {
|
||||
return StringsKt__StringsJVMKt.equals(str, str2, true);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ int l(CharSequence charSequence, char c4, int i, int i4) {
|
||||
return StringsKt__StringsKt.indexOf$default(charSequence, c4, i, false, i4, (Object) null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ String s(String str, String str2) {
|
||||
return StringsKt__StringsKt.removePrefix(str, (CharSequence) str2);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ String t(String str, String str2) {
|
||||
return StringsKt__StringsKt.removeSuffix(str, (CharSequence) str2);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ String w(String str, String str2, String str3) {
|
||||
return StringsKt__StringsJVMKt.replace$default(str, str2, str3, false, 4, (Object) null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ List x(CharSequence charSequence, String[] strArr, int i, int i4) {
|
||||
return StringsKt__StringsKt.split$default(charSequence, strArr, false, i, i4, (Object) null);
|
||||
}
|
||||
|
||||
public static /* bridge */ /* synthetic */ List y(String str, char[] cArr) {
|
||||
return StringsKt__StringsKt.split$default((CharSequence) str, cArr, false, 0, 6, (Object) null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,80 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000:\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\r\n\u0002\b\u0002\n\u0002\u0010\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\f\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0003\u001a5\u0010\u0000\u001a\u0002H\u0001\"\f\b\u0000\u0010\u0001*\u00060\u0002j\u0002`\u0003*\u0002H\u00012\u0016\u0010\u0004\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00060\u0005\"\u0004\u0018\u00010\u0006¢\u0006\u0002\u0010\u0007\u001a9\u0010\b\u001a\u00020\t\"\u0004\b\u0000\u0010\u0001*\u00060\u0002j\u0002`\u00032\u0006\u0010\n\u001a\u0002H\u00012\u0014\u0010\u000b\u001a\u0010\u0012\u0004\u0012\u0002H\u0001\u0012\u0004\u0012\u00020\u0006\u0018\u00010\fH\u0000¢\u0006\u0002\u0010\r\u001a\u0015\u0010\u000e\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u0003H\u0087\b\u001a\u001d\u0010\u000e\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u00032\u0006\u0010\u0004\u001a\u00020\u000fH\u0087\b\u001a\u001f\u0010\u000e\u001a\u00060\u0002j\u0002`\u0003*\u00060\u0002j\u0002`\u00032\b\u0010\u0004\u001a\u0004\u0018\u00010\u0006H\u0087\b\u001a7\u0010\u0010\u001a\u0002H\u0001\"\f\b\u0000\u0010\u0001*\u00060\u0002j\u0002`\u0003*\u0002H\u00012\u0006\u0010\u0004\u001a\u00020\u00062\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0012H\u0007¢\u0006\u0002\u0010\u0014¨\u0006\u0015"}, d2 = {"append", "T", "Ljava/lang/Appendable;", "Lkotlin/text/Appendable;", "value", "", "", "(Ljava/lang/Appendable;[Ljava/lang/CharSequence;)Ljava/lang/Appendable;", "appendElement", "", "element", "transform", "Lkotlin/Function1;", "(Ljava/lang/Appendable;Ljava/lang/Object;Lkotlin/jvm/functions/Function1;)V", "appendLine", "", "appendRange", "startIndex", "", "endIndex", "(Ljava/lang/Appendable;Ljava/lang/CharSequence;II)Ljava/lang/Appendable;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt__AppendableKt {
|
||||
public static final <T extends Appendable> T append(T t2, CharSequence... value) {
|
||||
Intrinsics.checkNotNullParameter(t2, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
for (CharSequence charSequence : value) {
|
||||
t2.append(charSequence);
|
||||
}
|
||||
return t2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static <T> void appendElement(Appendable appendable, T t2, Function1<? super T, ? extends CharSequence> function1) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
if (function1 != null) {
|
||||
appendable.append(function1.invoke(t2));
|
||||
return;
|
||||
}
|
||||
if (t2 == 0 ? true : t2 instanceof CharSequence) {
|
||||
appendable.append((CharSequence) t2);
|
||||
} else if (t2 instanceof Character) {
|
||||
appendable.append(((Character) t2).charValue());
|
||||
} else {
|
||||
appendable.append(String.valueOf(t2));
|
||||
}
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final Appendable appendLine(Appendable appendable) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
|
||||
return append;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static final <T extends Appendable> T appendRange(T t2, CharSequence value, int i, int i4) {
|
||||
Intrinsics.checkNotNullParameter(t2, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
T t4 = (T) t2.append(value, i, i4);
|
||||
Intrinsics.checkNotNull(t4, "null cannot be cast to non-null type T of kotlin.text.StringsKt__AppendableKt.appendRange");
|
||||
return t4;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final Appendable appendLine(Appendable appendable, CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append(charSequence);
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
|
||||
Appendable append2 = append.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append2, "append(...)");
|
||||
return append2;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final Appendable appendLine(Appendable appendable, char c4) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append(c4);
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append(...)");
|
||||
Appendable append2 = append.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append2, "append(...)");
|
||||
return append2;
|
||||
}
|
||||
}
|
||||
279
apk_decompiled/sources/kotlin/text/StringsKt__IndentKt.java
Normal file
279
apk_decompiled/sources/kotlin/text/StringsKt__IndentKt.java
Normal file
@@ -0,0 +1,279 @@
|
||||
package kotlin.text;
|
||||
|
||||
import C.w;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.collections.CollectionsKt__IterablesKt;
|
||||
import kotlin.collections.CollectionsKt___CollectionsKt;
|
||||
import kotlin.internal.IntrinsicConstEvaluation;
|
||||
import kotlin.internal.PlatformImplementationsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
import kotlin.sequences.SequencesKt___SequencesKt;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u001e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0003\n\u0002\u0010 \n\u0002\b\u000b\u001a!\u0010\u0000\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0002¢\u0006\u0002\b\u0004\u001a\u0011\u0010\u0005\u001a\u00020\u0006*\u00020\u0002H\u0002¢\u0006\u0002\b\u0007\u001a\u0014\u0010\b\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0002\u001aJ\u0010\t\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00020\n2\u0006\u0010\u000b\u001a\u00020\u00062\u0012\u0010\f\u001a\u000e\u0012\u0004\u0012\u00020\u0002\u0012\u0004\u0012\u00020\u00020\u00012\u0014\u0010\r\u001a\u0010\u0012\u0004\u0012\u00020\u0002\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u0001H\u0082\b¢\u0006\u0002\b\u000e\u001a\u0014\u0010\u000f\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010\u0010\u001a\u00020\u0002\u001a\u001e\u0010\u0011\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010\u0010\u001a\u00020\u00022\b\b\u0002\u0010\u0012\u001a\u00020\u0002\u001a\f\u0010\u0013\u001a\u00020\u0002*\u00020\u0002H\u0007\u001a\u0016\u0010\u0014\u001a\u00020\u0002*\u00020\u00022\b\b\u0002\u0010\u0012\u001a\u00020\u0002H\u0007¨\u0006\u0015"}, d2 = {"getIndentFunction", "Lkotlin/Function1;", "", "indent", "getIndentFunction$StringsKt__IndentKt", "indentWidth", "", "indentWidth$StringsKt__IndentKt", "prependIndent", "reindent", "", "resultSizeEstimate", "indentAddFunction", "indentCutFunction", "reindent$StringsKt__IndentKt", "replaceIndent", "newIndent", "replaceIndentByMargin", "marginPrefix", "trimIndent", "trimMargin", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
@SourceDebugExtension({"SMAP\nIndent.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Indent.kt\nkotlin/text/StringsKt__IndentKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n+ 3 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 4 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n*L\n1#1,123:1\n113#1,2:125\n115#1,4:140\n120#1,2:153\n113#1,2:162\n115#1,4:177\n120#1,2:184\n1#2:124\n1#2:150\n1#2:181\n1#2:205\n1569#3,11:127\n1864#3,2:138\n1866#3:151\n1580#3:152\n766#3:155\n857#3,2:156\n1549#3:158\n1620#3,3:159\n1569#3,11:164\n1864#3,2:175\n1866#3:182\n1580#3:183\n1569#3,11:192\n1864#3,2:203\n1866#3:206\n1580#3:207\n151#4,6:144\n151#4,6:186\n*S KotlinDebug\n*F\n+ 1 Indent.kt\nkotlin/text/StringsKt__IndentKt\n*L\n38#1:125,2\n38#1:140,4\n38#1:153,2\n78#1:162,2\n78#1:177,4\n78#1:184,2\n38#1:150\n78#1:181\n114#1:205\n38#1:127,11\n38#1:138,2\n38#1:151\n38#1:152\n74#1:155\n74#1:156,2\n75#1:158\n75#1:159,3\n78#1:164,11\n78#1:175,2\n78#1:182\n78#1:183\n114#1:192,11\n114#1:203,2\n114#1:206\n114#1:207\n39#1:144,6\n101#1:186,6\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt__IndentKt extends StringsKt__AppendableKt {
|
||||
private static final Function1<String, String> getIndentFunction$StringsKt__IndentKt(final String str) {
|
||||
return str.length() == 0 ? new Function1<String, String>() { // from class: kotlin.text.StringsKt__IndentKt$getIndentFunction$1
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final String invoke(String line) {
|
||||
Intrinsics.checkNotNullParameter(line, "line");
|
||||
return line;
|
||||
}
|
||||
} : new Function1<String, String>() { // from class: kotlin.text.StringsKt__IndentKt$getIndentFunction$2
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final String invoke(String line) {
|
||||
Intrinsics.checkNotNullParameter(line, "line");
|
||||
return w.r(new StringBuilder(), str, line);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static final int indentWidth$StringsKt__IndentKt(String str) {
|
||||
int length = str.length();
|
||||
int i = 0;
|
||||
while (true) {
|
||||
if (i >= length) {
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
if (!CharsKt__CharJVMKt.isWhitespace(str.charAt(i))) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return i == -1 ? str.length() : i;
|
||||
}
|
||||
|
||||
public static final String prependIndent(String str, final String indent) {
|
||||
String joinToString$default;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(indent, "indent");
|
||||
joinToString$default = SequencesKt___SequencesKt.joinToString$default(SequencesKt.map(StringsKt__StringsKt.lineSequence(str), new Function1<String, String>() { // from class: kotlin.text.StringsKt__IndentKt$prependIndent$1
|
||||
/* JADX WARN: 'super' call moved to the top of the method (can break code semantics) */
|
||||
{
|
||||
super(1);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final String invoke(String it) {
|
||||
Intrinsics.checkNotNullParameter(it, "it");
|
||||
if (StringsKt__StringsJVMKt.isBlank(it)) {
|
||||
return it.length() < indent.length() ? indent : it;
|
||||
}
|
||||
return w.r(new StringBuilder(), indent, it);
|
||||
}
|
||||
}), "\n", null, null, 0, null, null, 62, null);
|
||||
return joinToString$default;
|
||||
}
|
||||
|
||||
public static /* synthetic */ String prependIndent$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = " ";
|
||||
}
|
||||
return prependIndent(str, str2);
|
||||
}
|
||||
|
||||
private static final String reindent$StringsKt__IndentKt(List<String> list, int i, Function1<? super String, String> function1, Function1<? super String, String> function12) {
|
||||
Appendable joinTo$default;
|
||||
String invoke;
|
||||
int lastIndex = CollectionsKt.getLastIndex(list);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i4 = 0;
|
||||
for (Object obj : list) {
|
||||
int i5 = i4 + 1;
|
||||
if (i4 < 0) {
|
||||
if (!PlatformImplementationsKt.apiVersionIsAtLeast(1, 3, 0)) {
|
||||
throw new ArithmeticException("Index overflow has happened.");
|
||||
}
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str = (String) obj;
|
||||
if ((i4 == 0 || i4 == lastIndex) && StringsKt__StringsJVMKt.isBlank(str)) {
|
||||
str = null;
|
||||
} else {
|
||||
String invoke2 = function12.invoke(str);
|
||||
if (invoke2 != null && (invoke = function1.invoke(invoke2)) != null) {
|
||||
str = invoke;
|
||||
}
|
||||
}
|
||||
if (str != null) {
|
||||
arrayList.add(str);
|
||||
}
|
||||
i4 = i5;
|
||||
}
|
||||
joinTo$default = CollectionsKt___CollectionsKt.joinTo$default(arrayList, new StringBuilder(i), "\n", null, null, 0, null, null, 124, null);
|
||||
String sb = ((StringBuilder) joinTo$default).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "toString(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static final String replaceIndent(String str, String newIndent) {
|
||||
int collectionSizeOrDefault;
|
||||
Comparable minOrNull;
|
||||
Appendable joinTo$default;
|
||||
String invoke;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(newIndent, "newIndent");
|
||||
List<String> lines = StringsKt__StringsKt.lines(str);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : lines) {
|
||||
if (!StringsKt__StringsJVMKt.isBlank((String) obj)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
collectionSizeOrDefault = CollectionsKt__IterablesKt.collectionSizeOrDefault(arrayList, 10);
|
||||
ArrayList arrayList2 = new ArrayList(collectionSizeOrDefault);
|
||||
Iterator it = arrayList.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList2.add(Integer.valueOf(indentWidth$StringsKt__IndentKt((String) it.next())));
|
||||
}
|
||||
minOrNull = CollectionsKt___CollectionsKt.minOrNull((Iterable<? extends Comparable>) ((Iterable) arrayList2));
|
||||
Integer num = (Integer) minOrNull;
|
||||
int i = 0;
|
||||
int intValue = num != null ? num.intValue() : 0;
|
||||
int size = (lines.size() * newIndent.length()) + str.length();
|
||||
Function1<String, String> indentFunction$StringsKt__IndentKt = getIndentFunction$StringsKt__IndentKt(newIndent);
|
||||
int lastIndex = CollectionsKt.getLastIndex(lines);
|
||||
ArrayList arrayList3 = new ArrayList();
|
||||
for (Object obj2 : lines) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str2 = (String) obj2;
|
||||
if ((i == 0 || i == lastIndex) && StringsKt__StringsJVMKt.isBlank(str2)) {
|
||||
str2 = null;
|
||||
} else {
|
||||
String drop = StringsKt___StringsKt.drop(str2, intValue);
|
||||
if (drop != null && (invoke = indentFunction$StringsKt__IndentKt.invoke(drop)) != null) {
|
||||
str2 = invoke;
|
||||
}
|
||||
}
|
||||
if (str2 != null) {
|
||||
arrayList3.add(str2);
|
||||
}
|
||||
i = i4;
|
||||
}
|
||||
joinTo$default = CollectionsKt___CollectionsKt.joinTo$default(arrayList3, new StringBuilder(size), "\n", null, null, 0, null, null, 124, null);
|
||||
String sb = ((StringBuilder) joinTo$default).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "toString(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static /* synthetic */ String replaceIndent$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = "";
|
||||
}
|
||||
return replaceIndent(str, str2);
|
||||
}
|
||||
|
||||
public static final String replaceIndentByMargin(String str, String newIndent, String marginPrefix) {
|
||||
Appendable joinTo$default;
|
||||
String str2;
|
||||
String invoke;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(newIndent, "newIndent");
|
||||
Intrinsics.checkNotNullParameter(marginPrefix, "marginPrefix");
|
||||
if (StringsKt__StringsJVMKt.isBlank(marginPrefix)) {
|
||||
throw new IllegalArgumentException("marginPrefix must be non-blank string.");
|
||||
}
|
||||
List<String> lines = StringsKt__StringsKt.lines(str);
|
||||
int size = (lines.size() * newIndent.length()) + str.length();
|
||||
Function1<String, String> indentFunction$StringsKt__IndentKt = getIndentFunction$StringsKt__IndentKt(newIndent);
|
||||
int lastIndex = CollectionsKt.getLastIndex(lines);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i = 0;
|
||||
for (Object obj : lines) {
|
||||
int i4 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str3 = (String) obj;
|
||||
String str4 = null;
|
||||
if ((i == 0 || i == lastIndex) && StringsKt__StringsJVMKt.isBlank(str3)) {
|
||||
str2 = marginPrefix;
|
||||
str3 = null;
|
||||
} else {
|
||||
int length = str3.length();
|
||||
int i5 = 0;
|
||||
while (true) {
|
||||
if (i5 >= length) {
|
||||
i5 = -1;
|
||||
break;
|
||||
}
|
||||
if (!CharsKt__CharJVMKt.isWhitespace(str3.charAt(i5))) {
|
||||
break;
|
||||
}
|
||||
i5++;
|
||||
}
|
||||
if (i5 == -1) {
|
||||
str2 = marginPrefix;
|
||||
} else {
|
||||
int i6 = i5;
|
||||
str2 = marginPrefix;
|
||||
if (StringsKt__StringsJVMKt.startsWith$default(str3, str2, i6, false, 4, null)) {
|
||||
int length2 = str2.length() + i6;
|
||||
Intrinsics.checkNotNull(str3, "null cannot be cast to non-null type java.lang.String");
|
||||
str4 = str3.substring(length2);
|
||||
Intrinsics.checkNotNullExpressionValue(str4, "substring(...)");
|
||||
}
|
||||
}
|
||||
if (str4 != null && (invoke = indentFunction$StringsKt__IndentKt.invoke(str4)) != null) {
|
||||
str3 = invoke;
|
||||
}
|
||||
}
|
||||
if (str3 != null) {
|
||||
arrayList.add(str3);
|
||||
}
|
||||
i = i4;
|
||||
marginPrefix = str2;
|
||||
}
|
||||
joinTo$default = CollectionsKt___CollectionsKt.joinTo$default(arrayList, new StringBuilder(size), "\n", null, null, 0, null, null, 124, null);
|
||||
String sb = ((StringBuilder) joinTo$default).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "toString(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static /* synthetic */ String replaceIndentByMargin$default(String str, String str2, String str3, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = "";
|
||||
}
|
||||
if ((i & 2) != 0) {
|
||||
str3 = "|";
|
||||
}
|
||||
return replaceIndentByMargin(str, str2, str3);
|
||||
}
|
||||
|
||||
@IntrinsicConstEvaluation
|
||||
public static String trimIndent(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return replaceIndent(str, "");
|
||||
}
|
||||
|
||||
@IntrinsicConstEvaluation
|
||||
public static final String trimMargin(String str, String marginPrefix) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(marginPrefix, "marginPrefix");
|
||||
return replaceIndentByMargin(str, "", marginPrefix);
|
||||
}
|
||||
|
||||
public static /* synthetic */ String trimMargin$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = "|";
|
||||
}
|
||||
return trimMargin(str, str2);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u001a\r\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0087\b¨\u0006\u0003"}, d2 = {"toRegex", "Lkotlin/text/Regex;", "Ljava/util/regex/Pattern;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
class StringsKt__RegexExtensionsJVMKt extends StringsKt__IndentKt {
|
||||
@InlineOnly
|
||||
private static final Regex toRegex(Pattern pattern) {
|
||||
Intrinsics.checkNotNullParameter(pattern, "<this>");
|
||||
return new Regex(pattern);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0018\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\"\n\u0002\u0018\u0002\n\u0002\b\u0002\u001a\r\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0087\b\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\f\u0010\u0003\u001a\b\u0012\u0004\u0012\u00020\u00050\u0004H\u0087\b\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0006\u001a\u00020\u0005H\u0087\b¨\u0006\u0007"}, d2 = {"toRegex", "Lkotlin/text/Regex;", "", "options", "", "Lkotlin/text/RegexOption;", "option", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
class StringsKt__RegexExtensionsKt extends StringsKt__RegexExtensionsJVMKt {
|
||||
@InlineOnly
|
||||
private static final Regex toRegex(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new Regex(str);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final Regex toRegex(String str, RegexOption option) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(option, "option");
|
||||
return new Regex(str, option);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final Regex toRegex(String str, Set<? extends RegexOption> options) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(options, "options");
|
||||
return new Regex(str, options);
|
||||
}
|
||||
}
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,149 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NotImplementedError;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.Unit;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000J\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0010\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0010\u0000\n\u0000\n\u0002\u0010\u0011\n\u0002\b\u0003\n\u0002\u0010\u0019\n\u0002\b\u0003\n\u0002\u0010\u000b\n\u0002\u0010\f\n\u0002\u0010\r\n\u0000\u001a>\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u001b\u0010\u0004\u001a\u0017\u0012\b\u0012\u00060\u0006j\u0002`\u0007\u0012\u0004\u0012\u00020\b0\u0005¢\u0006\u0002\b\tH\u0087\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0002 \u0001\u001a6\u0010\u0000\u001a\u00020\u00012\u001b\u0010\u0004\u001a\u0017\u0012\b\u0012\u00060\u0006j\u0002`\u0007\u0012\u0004\u0012\u00020\b0\u0005¢\u0006\u0002\b\tH\u0087\bø\u0001\u0000\u0082\u0002\n\n\b\b\u0001\u0012\u0002\u0010\u0001 \u0001\u001a\u001f\u0010\n\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\b\u0010\u000b\u001a\u0004\u0018\u00010\fH\u0087\b\u001a/\u0010\n\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0016\u0010\r\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\f0\u000e\"\u0004\u0018\u00010\f¢\u0006\u0002\u0010\u000f\u001a/\u0010\n\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0016\u0010\r\u001a\f\u0012\b\b\u0001\u0012\u0004\u0018\u00010\u00010\u000e\"\u0004\u0018\u00010\u0001¢\u0006\u0002\u0010\u0010\u001a-\u0010\n\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0006\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u00032\u0006\u0010\u0014\u001a\u00020\u0003H\u0087\b\u001a\u0015\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u0007H\u0087\b\u001a\u001f\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\b\u0010\r\u001a\u0004\u0018\u00010\fH\u0087\b\u001a\u001d\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0006\u0010\r\u001a\u00020\u0016H\u0087\b\u001a\u001d\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0006\u0010\r\u001a\u00020\u0017H\u0087\b\u001a\u001d\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\u0006\u0010\r\u001a\u00020\u0012H\u0087\b\u001a\u001f\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u0018H\u0087\b\u001a\u001f\u0010\u0015\u001a\u00060\u0006j\u0002`\u0007*\u00060\u0006j\u0002`\u00072\b\u0010\r\u001a\u0004\u0018\u00010\u0001H\u0087\b\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u0019"}, d2 = {"buildString", "", "capacity", "", "builderAction", "Lkotlin/Function1;", "Ljava/lang/StringBuilder;", "Lkotlin/text/StringBuilder;", "", "Lkotlin/ExtensionFunctionType;", "append", "obj", "", "value", "", "(Ljava/lang/StringBuilder;[Ljava/lang/Object;)Ljava/lang/StringBuilder;", "(Ljava/lang/StringBuilder;[Ljava/lang/String;)Ljava/lang/StringBuilder;", "str", "", "offset", "len", "appendLine", "", "", "", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt__StringBuilderKt extends StringsKt__StringBuilderJVMKt {
|
||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Use append(value: Any?) instead", replaceWith = @ReplaceWith(expression = "append(value = obj)", imports = {}))
|
||||
@InlineOnly
|
||||
private static final StringBuilder append(StringBuilder sb, Object obj) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(obj);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final String buildString(Function1<? super StringBuilder, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
StringBuilder sb = new StringBuilder();
|
||||
builderAction.invoke(sb);
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public static StringBuilder append(StringBuilder sb, String... value) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
for (String str : value) {
|
||||
sb.append(str);
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(charSequence);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final String buildString(int i, Function1<? super StringBuilder, Unit> builderAction) {
|
||||
Intrinsics.checkNotNullParameter(builderAction, "builderAction");
|
||||
StringBuilder sb = new StringBuilder(i);
|
||||
builderAction.invoke(sb);
|
||||
String sb2 = sb.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb2, "toString(...)");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, String str) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(str);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static final StringBuilder append(StringBuilder sb, Object... value) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
for (Object obj : value) {
|
||||
sb.append(obj);
|
||||
}
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, Object obj) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(obj);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, char[] value) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
sb.append(value);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use appendRange instead.", replaceWith = @ReplaceWith(expression = "this.appendRange(str, offset, offset + len)", imports = {}))
|
||||
@InlineOnly
|
||||
private static final StringBuilder append(StringBuilder sb, char[] str, int i, int i4) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(str, "str");
|
||||
throw new NotImplementedError(null, 1, null);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, char c4) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(c4);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final StringBuilder appendLine(StringBuilder sb, boolean z3) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(z3);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(...)");
|
||||
return sb;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,233 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.math.MathContext;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000X\n\u0002\b\u0003\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0010\u000b\n\u0000\n\u0002\u0010\u0005\n\u0000\n\u0002\u0010\u0006\n\u0002\b\u0003\n\u0002\u0010\u0007\n\u0002\b\u0004\n\u0002\u0010\t\n\u0000\n\u0002\u0010\n\n\u0002\b\u0002\u001a4\u0010\u0000\u001a\u0004\u0018\u0001H\u0001\"\u0004\b\u0000\u0010\u00012\u0006\u0010\u0002\u001a\u00020\u00032\u0012\u0010\u0004\u001a\u000e\u0012\u0004\u0012\u00020\u0003\u0012\u0004\u0012\u0002H\u00010\u0005H\u0082\b¢\u0006\u0004\b\u0006\u0010\u0007\u001a\r\u0010\b\u001a\u00020\t*\u00020\u0003H\u0087\b\u001a\u0015\u0010\b\u001a\u00020\t*\u00020\u00032\u0006\u0010\n\u001a\u00020\u000bH\u0087\b\u001a\u000e\u0010\f\u001a\u0004\u0018\u00010\t*\u00020\u0003H\u0007\u001a\u0016\u0010\f\u001a\u0004\u0018\u00010\t*\u00020\u00032\u0006\u0010\n\u001a\u00020\u000bH\u0007\u001a\r\u0010\r\u001a\u00020\u000e*\u00020\u0003H\u0087\b\u001a\u0015\u0010\r\u001a\u00020\u000e*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\u000e\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u00020\u0003H\u0007\u001a\u0016\u0010\u0011\u001a\u0004\u0018\u00010\u000e*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0007\u001a\u000f\u0010\u0012\u001a\u00020\u0013*\u0004\u0018\u00010\u0003H\u0087\b\u001a\r\u0010\u0014\u001a\u00020\u0015*\u00020\u0003H\u0087\b\u001a\u0015\u0010\u0014\u001a\u00020\u0015*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\r\u0010\u0016\u001a\u00020\u0017*\u00020\u0003H\u0087\b\u001a\u0013\u0010\u0018\u001a\u0004\u0018\u00010\u0017*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u0019\u001a\r\u0010\u001a\u001a\u00020\u001b*\u00020\u0003H\u0087\b\u001a\u0013\u0010\u001c\u001a\u0004\u0018\u00010\u001b*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u001d\u001a\r\u0010\u001e\u001a\u00020\u0010*\u00020\u0003H\u0087\b\u001a\u0015\u0010\u001e\u001a\u00020\u0010*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\r\u0010\u001f\u001a\u00020 *\u00020\u0003H\u0087\b\u001a\u0015\u0010\u001f\u001a\u00020 *\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\r\u0010!\u001a\u00020\"*\u00020\u0003H\u0087\b\u001a\u0015\u0010!\u001a\u00020\"*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\u0015\u0010#\u001a\u00020\u0003*\u00020\u00152\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\u0015\u0010#\u001a\u00020\u0003*\u00020\u00102\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\u0015\u0010#\u001a\u00020\u0003*\u00020 2\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\u0015\u0010#\u001a\u00020\u0003*\u00020\"2\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b¨\u0006$"}, d2 = {"screenFloatValue", "T", "str", "", "parse", "Lkotlin/Function1;", "screenFloatValue$StringsKt__StringNumberConversionsJVMKt", "(Ljava/lang/String;Lkotlin/jvm/functions/Function1;)Ljava/lang/Object;", "toBigDecimal", "Ljava/math/BigDecimal;", "mathContext", "Ljava/math/MathContext;", "toBigDecimalOrNull", "toBigInteger", "Ljava/math/BigInteger;", "radix", "", "toBigIntegerOrNull", "toBoolean", "", "toByte", "", "toDouble", "", "toDoubleOrNull", "(Ljava/lang/String;)Ljava/lang/Double;", "toFloat", "", "toFloatOrNull", "(Ljava/lang/String;)Ljava/lang/Float;", "toInt", "toLong", "", "toShort", "", "toString", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
@SourceDebugExtension({"SMAP\nStringNumberConversionsJVM.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StringNumberConversionsJVM.kt\nkotlin/text/StringsKt__StringNumberConversionsJVMKt\n*L\n1#1,274:1\n265#1,7:275\n265#1,7:282\n265#1,7:289\n265#1,7:296\n*S KotlinDebug\n*F\n+ 1 StringNumberConversionsJVM.kt\nkotlin/text/StringsKt__StringNumberConversionsJVMKt\n*L\n142#1:275,7\n149#1:282,7\n229#1:289,7\n240#1:296,7\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt__StringNumberConversionsJVMKt extends StringsKt__StringBuilderKt {
|
||||
private static final <T> T screenFloatValue$StringsKt__StringNumberConversionsJVMKt(String str, Function1<? super String, ? extends T> function1) {
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return function1.invoke(str);
|
||||
}
|
||||
} catch (NumberFormatException unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
@InlineOnly
|
||||
private static final BigDecimal toBigDecimal(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigDecimal(str);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
public static final BigDecimal toBigDecimalOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return new BigDecimal(str);
|
||||
}
|
||||
} catch (NumberFormatException unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
@InlineOnly
|
||||
private static final BigInteger toBigInteger(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigInteger(str);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
public static final BigInteger toBigIntegerOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toBigIntegerOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
private static final boolean toBoolean(String str) {
|
||||
return Boolean.parseBoolean(str);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final byte toByte(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Byte.parseByte(str);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final double toDouble(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Double.parseDouble(str);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Double toDoubleOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return Double.valueOf(Double.parseDouble(str));
|
||||
}
|
||||
} catch (NumberFormatException unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final float toFloat(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Float.parseFloat(str);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Float toFloatOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return Float.valueOf(Float.parseFloat(str));
|
||||
}
|
||||
} catch (NumberFormatException unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final int toInt(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final long toLong(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Long.parseLong(str);
|
||||
}
|
||||
|
||||
@InlineOnly
|
||||
private static final short toShort(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Short.parseShort(str);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final String toString(byte b4, int i) {
|
||||
String num = Integer.toString(b4, CharsKt__CharJVMKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(...)");
|
||||
return num;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
@InlineOnly
|
||||
private static final BigDecimal toBigDecimal(String str, MathContext mathContext) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(mathContext, "mathContext");
|
||||
return new BigDecimal(str, mathContext);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
@InlineOnly
|
||||
private static final BigInteger toBigInteger(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigInteger(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
public static final BigInteger toBigIntegerOrNull(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
if (length != 1) {
|
||||
for (int i4 = str.charAt(0) == '-' ? 1 : 0; i4 < length; i4++) {
|
||||
if (CharsKt__CharJVMKt.digitOf(str.charAt(i4), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
} else if (CharsKt__CharJVMKt.digitOf(str.charAt(0), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
return new BigInteger(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final byte toByte(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Byte.parseByte(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final int toInt(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Integer.parseInt(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final long toLong(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Long.parseLong(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final short toShort(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Short.parseShort(str, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final String toString(short s4, int i) {
|
||||
String num = Integer.toString(s4, CharsKt__CharJVMKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(...)");
|
||||
return num;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final String toString(int i, int i4) {
|
||||
String num = Integer.toString(i, CharsKt__CharJVMKt.checkRadix(i4));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(...)");
|
||||
return num;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.2")
|
||||
public static final BigDecimal toBigDecimalOrNull(String str, MathContext mathContext) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(mathContext, "mathContext");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return new BigDecimal(str, mathContext);
|
||||
}
|
||||
} catch (NumberFormatException unused) {
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
@InlineOnly
|
||||
private static final String toString(long j4, int i) {
|
||||
String l4 = Long.toString(j4, CharsKt__CharJVMKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(l4, "toString(...)");
|
||||
return l4;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.internal.IntCompanionObject;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000.\n\u0000\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0005\n\u0002\b\u0002\n\u0002\u0010\b\n\u0002\b\u0005\n\u0002\u0010\t\n\u0002\b\u0003\n\u0002\u0010\n\n\u0002\b\u0003\u001a\u0010\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u0003H\u0000\u001a\u0013\u0010\u0004\u001a\u0004\u0018\u00010\u0005*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u0006\u001a\u001b\u0010\u0004\u001a\u0004\u0018\u00010\u0005*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0007¢\u0006\u0002\u0010\t\u001a\u0013\u0010\n\u001a\u0004\u0018\u00010\b*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u000b\u001a\u001b\u0010\n\u001a\u0004\u0018\u00010\b*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0007¢\u0006\u0002\u0010\f\u001a\u0013\u0010\r\u001a\u0004\u0018\u00010\u000e*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u000f\u001a\u001b\u0010\r\u001a\u0004\u0018\u00010\u000e*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0007¢\u0006\u0002\u0010\u0010\u001a\u0013\u0010\u0011\u001a\u0004\u0018\u00010\u0012*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u0013\u001a\u001b\u0010\u0011\u001a\u0004\u0018\u00010\u0012*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\bH\u0007¢\u0006\u0002\u0010\u0014¨\u0006\u0015"}, d2 = {"numberFormatError", "", "input", "", "toByteOrNull", "", "(Ljava/lang/String;)Ljava/lang/Byte;", "radix", "", "(Ljava/lang/String;I)Ljava/lang/Byte;", "toIntOrNull", "(Ljava/lang/String;)Ljava/lang/Integer;", "(Ljava/lang/String;I)Ljava/lang/Integer;", "toLongOrNull", "", "(Ljava/lang/String;)Ljava/lang/Long;", "(Ljava/lang/String;I)Ljava/lang/Long;", "toShortOrNull", "", "(Ljava/lang/String;)Ljava/lang/Short;", "(Ljava/lang/String;I)Ljava/lang/Short;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt__StringNumberConversionsKt extends StringsKt__StringNumberConversionsJVMKt {
|
||||
public static final Void numberFormatError(String input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
throw new NumberFormatException("Invalid number format: '" + input + '\'');
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Byte toByteOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toByteOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static Integer toIntOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toIntOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static Long toLongOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toLongOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Short toShortOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toShortOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Byte toByteOrNull(String str, int i) {
|
||||
int intValue;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Integer intOrNull = toIntOrNull(str, i);
|
||||
if (intOrNull == null || (intValue = intOrNull.intValue()) < -128 || intValue > 127) {
|
||||
return null;
|
||||
}
|
||||
return Byte.valueOf((byte) intValue);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Integer toIntOrNull(String str, int i) {
|
||||
boolean z3;
|
||||
int i4;
|
||||
int i5;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i6 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
int i7 = -2147483647;
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i4 = 1;
|
||||
if (length == 1) {
|
||||
return null;
|
||||
}
|
||||
if (charAt == '-') {
|
||||
i7 = IntCompanionObject.MIN_VALUE;
|
||||
z3 = true;
|
||||
} else {
|
||||
if (charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
z3 = false;
|
||||
}
|
||||
} else {
|
||||
z3 = false;
|
||||
i4 = 0;
|
||||
}
|
||||
int i8 = -59652323;
|
||||
while (i4 < length) {
|
||||
int digitOf = CharsKt__CharJVMKt.digitOf(str.charAt(i4), i);
|
||||
if (digitOf < 0) {
|
||||
return null;
|
||||
}
|
||||
if ((i6 < i8 && (i8 != -59652323 || i6 < (i8 = i7 / i))) || (i5 = i6 * i) < i7 + digitOf) {
|
||||
return null;
|
||||
}
|
||||
i6 = i5 - digitOf;
|
||||
i4++;
|
||||
}
|
||||
return z3 ? Integer.valueOf(i6) : Integer.valueOf(-i6);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Long toLongOrNull(String str, int i) {
|
||||
boolean z3;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
Long l4 = null;
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i4 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
long j4 = -9223372036854775807L;
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
z3 = true;
|
||||
if (length == 1) {
|
||||
return null;
|
||||
}
|
||||
if (charAt == '-') {
|
||||
j4 = Long.MIN_VALUE;
|
||||
i4 = 1;
|
||||
} else {
|
||||
if (charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
z3 = false;
|
||||
i4 = 1;
|
||||
}
|
||||
} else {
|
||||
z3 = false;
|
||||
}
|
||||
long j5 = 0;
|
||||
long j6 = -256204778801521550L;
|
||||
while (i4 < length) {
|
||||
int digitOf = CharsKt__CharJVMKt.digitOf(str.charAt(i4), i);
|
||||
if (digitOf < 0) {
|
||||
return l4;
|
||||
}
|
||||
if (j5 < j6) {
|
||||
if (j6 != -256204778801521550L) {
|
||||
return l4;
|
||||
}
|
||||
j6 = j4 / i;
|
||||
if (j5 < j6) {
|
||||
return l4;
|
||||
}
|
||||
}
|
||||
Long l5 = l4;
|
||||
int i5 = i4;
|
||||
long j7 = j5 * i;
|
||||
long j8 = digitOf;
|
||||
if (j7 < j4 + j8) {
|
||||
return l5;
|
||||
}
|
||||
j5 = j7 - j8;
|
||||
i4 = i5 + 1;
|
||||
l4 = l5;
|
||||
}
|
||||
return z3 ? Long.valueOf(j5) : Long.valueOf(-j5);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static final Short toShortOrNull(String str, int i) {
|
||||
int intValue;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Integer intOrNull = toIntOrNull(str, i);
|
||||
if (intOrNull == null || (intValue = intOrNull.intValue()) < -32768 || intValue > 32767) {
|
||||
return null;
|
||||
}
|
||||
return Short.valueOf((short) intValue);
|
||||
}
|
||||
}
|
||||
884
apk_decompiled/sources/kotlin/text/StringsKt__StringsJVMKt.java
Normal file
884
apk_decompiled/sources/kotlin/text/StringsKt__StringsJVMKt.java
Normal file
File diff suppressed because one or more lines are too long
1862
apk_decompiled/sources/kotlin/text/StringsKt__StringsKt.java
Normal file
1862
apk_decompiled/sources/kotlin/text/StringsKt__StringsKt.java
Normal file
File diff suppressed because one or more lines are too long
148
apk_decompiled/sources/kotlin/text/StringsKt___StringsJvmKt.java
Normal file
148
apk_decompiled/sources/kotlin/text/StringsKt___StringsJvmKt.java
Normal file
@@ -0,0 +1,148 @@
|
||||
package kotlin.text;
|
||||
|
||||
import com.google.android.gms.measurement.internal.a;
|
||||
import com.google.firebase.analytics.FirebaseAnalytics;
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.util.Comparator;
|
||||
import java.util.SortedSet;
|
||||
import java.util.TreeSet;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.OverloadResolutionByLambdaReturnType;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.collections.IntIterator;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
@Metadata(d1 = {"\u0000B\n\u0000\n\u0002\u0010\f\n\u0002\u0010\r\n\u0000\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000f\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0000\u001a\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0087\b\u001a\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0006\u001a;\u0010\u0007\u001a\u0004\u0018\u00010\u0001\"\u000e\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\t*\u00020\u00022\u0012\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u0002H\b0\u000bH\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\f\u001a/\u0010\r\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u001a\u0010\u000e\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00010\u000fj\n\u0012\u0006\b\u0000\u0012\u00020\u0001`\u0010H\u0007¢\u0006\u0002\u0010\u0011\u001a\u0013\u0010\u0012\u001a\u0004\u0018\u00010\u0001*\u00020\u0002H\u0007¢\u0006\u0002\u0010\u0006\u001a;\u0010\u0013\u001a\u0004\u0018\u00010\u0001\"\u000e\b\u0000\u0010\b*\b\u0012\u0004\u0012\u0002H\b0\t*\u00020\u00022\u0012\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u0002H\b0\u000bH\u0087\bø\u0001\u0000¢\u0006\u0002\u0010\f\u001a/\u0010\u0014\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u001a\u0010\u000e\u001a\u0016\u0012\u0006\b\u0000\u0012\u00020\u00010\u000fj\n\u0012\u0006\b\u0000\u0012\u00020\u0001`\u0010H\u0007¢\u0006\u0002\u0010\u0011\u001a)\u0010\u0015\u001a\u00020\u0016*\u00020\u00022\u0012\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00160\u000bH\u0087\bø\u0001\u0000¢\u0006\u0002\b\u0017\u001a)\u0010\u0015\u001a\u00020\u0018*\u00020\u00022\u0012\u0010\n\u001a\u000e\u0012\u0004\u0012\u00020\u0001\u0012\u0004\u0012\u00020\u00180\u000bH\u0087\bø\u0001\u0000¢\u0006\u0002\b\u0019\u001a\u0010\u0010\u001a\u001a\b\u0012\u0004\u0012\u00020\u00010\u001b*\u00020\u0002\u0082\u0002\u0007\n\u0005\b\u009920\u0001¨\u0006\u001c"}, d2 = {"elementAt", "", "", FirebaseAnalytics.Param.INDEX, "", "max", "(Ljava/lang/CharSequence;)Ljava/lang/Character;", "maxBy", "R", "", "selector", "Lkotlin/Function1;", "(Ljava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/Character;", "maxWith", "comparator", "Ljava/util/Comparator;", "Lkotlin/Comparator;", "(Ljava/lang/CharSequence;Ljava/util/Comparator;)Ljava/lang/Character;", "min", "minBy", "minWith", "sumOf", "Ljava/math/BigDecimal;", "sumOfBigDecimal", "Ljava/math/BigInteger;", "sumOfBigInteger", "toSortedSet", "Ljava/util/SortedSet;", "kotlin-stdlib"}, k = 5, mv = {1, 9, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
@SourceDebugExtension({"SMAP\n_StringsJvm.kt\nKotlin\n*S Kotlin\n*F\n+ 1 _StringsJvm.kt\nkotlin/text/StringsKt___StringsJvmKt\n+ 2 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n*L\n1#1,108:1\n1239#2,14:109\n1521#2,14:123\n*S KotlinDebug\n*F\n+ 1 _StringsJvm.kt\nkotlin/text/StringsKt___StringsJvmKt\n*L\n45#1:109,14\n66#1:123,14\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public class StringsKt___StringsJvmKt extends StringsKt__StringsKt {
|
||||
@InlineOnly
|
||||
private static final char elementAt(CharSequence charSequence, int i) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return charSequence.charAt(i);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Character max(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return StringsKt___StringsKt.maxOrNull(charSequence);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ <R extends Comparable<? super R>> Character maxBy(CharSequence charSequence, Function1<? super Character, ? extends R> function1) {
|
||||
if (a.c(charSequence, "<this>", function1, "selector") == 0) {
|
||||
return null;
|
||||
}
|
||||
char charAt = charSequence.charAt(0);
|
||||
int lastIndex = StringsKt__StringsKt.getLastIndex(charSequence);
|
||||
if (lastIndex == 0) {
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
R invoke = function1.invoke(Character.valueOf(charAt));
|
||||
IntIterator w3 = a.w(1, lastIndex);
|
||||
while (w3.hasNext()) {
|
||||
char charAt2 = charSequence.charAt(w3.nextInt());
|
||||
R invoke2 = function1.invoke(Character.valueOf(charAt2));
|
||||
if (invoke.compareTo(invoke2) < 0) {
|
||||
charAt = charAt2;
|
||||
invoke = invoke2;
|
||||
}
|
||||
}
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use maxWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.maxWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Character maxWith(CharSequence charSequence, Comparator comparator) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return StringsKt___StringsKt.maxWithOrNull(charSequence, comparator);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minOrNull()", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Character min(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return StringsKt___StringsKt.minOrNull(charSequence);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minByOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minByOrNull(selector)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ <R extends Comparable<? super R>> Character minBy(CharSequence charSequence, Function1<? super Character, ? extends R> function1) {
|
||||
if (a.c(charSequence, "<this>", function1, "selector") == 0) {
|
||||
return null;
|
||||
}
|
||||
char charAt = charSequence.charAt(0);
|
||||
int lastIndex = StringsKt__StringsKt.getLastIndex(charSequence);
|
||||
if (lastIndex == 0) {
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
R invoke = function1.invoke(Character.valueOf(charAt));
|
||||
IntIterator w3 = a.w(1, lastIndex);
|
||||
while (w3.hasNext()) {
|
||||
char charAt2 = charSequence.charAt(w3.nextInt());
|
||||
R invoke2 = function1.invoke(Character.valueOf(charAt2));
|
||||
if (invoke.compareTo(invoke2) > 0) {
|
||||
charAt = charAt2;
|
||||
invoke = invoke2;
|
||||
}
|
||||
}
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use minWithOrNull instead.", replaceWith = @ReplaceWith(expression = "this.minWithOrNull(comparator)", imports = {}))
|
||||
@DeprecatedSinceKotlin(errorSince = "1.5", hiddenSince = "1.6", warningSince = "1.4")
|
||||
public static final /* synthetic */ Character minWith(CharSequence charSequence, Comparator comparator) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(comparator, "comparator");
|
||||
return StringsKt___StringsKt.minWithOrNull(charSequence, comparator);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
@JvmName(name = "sumOfBigDecimal")
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
private static final BigDecimal sumOfBigDecimal(CharSequence charSequence, Function1<? super Character, ? extends BigDecimal> selector) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
BigDecimal valueOf = BigDecimal.valueOf(0L);
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
||||
for (int i = 0; i < charSequence.length(); i++) {
|
||||
valueOf = valueOf.add((BigDecimal) a.g(charSequence, i, selector));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@InlineOnly
|
||||
@JvmName(name = "sumOfBigInteger")
|
||||
@OverloadResolutionByLambdaReturnType
|
||||
private static final BigInteger sumOfBigInteger(CharSequence charSequence, Function1<? super Character, ? extends BigInteger> selector) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
BigInteger valueOf = BigInteger.valueOf(0L);
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "valueOf(...)");
|
||||
for (int i = 0; i < charSequence.length(); i++) {
|
||||
valueOf = valueOf.add((BigInteger) a.g(charSequence, i, selector));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "add(...)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
public static final SortedSet<Character> toSortedSet(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return (SortedSet) StringsKt___StringsKt.toCollection(charSequence, new TreeSet());
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.SourceDebugExtension;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0011\n\u0000\n\u0002\u0010\u001c\n\u0000\n\u0002\u0010(\n\u0000*\u0001\u0000\b\n\u0018\u00002\b\u0012\u0004\u0012\u00028\u00000\u0001J\u000f\u0010\u0002\u001a\b\u0012\u0004\u0012\u00028\u00000\u0003H\u0096\u0002¨\u0006\u0004¸\u0006\u0000"}, d2 = {"kotlin/collections/CollectionsKt__IterablesKt$Iterable$1", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
@SourceDebugExtension({"SMAP\nIterables.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Iterables.kt\nkotlin/collections/CollectionsKt__IterablesKt$Iterable$1\n+ 2 _Strings.kt\nkotlin/text/StringsKt___StringsKt\n*L\n1#1,70:1\n2475#2:71\n*E\n"})
|
||||
/* loaded from: classes3.dex */
|
||||
public final class StringsKt___StringsKt$asIterable$$inlined$Iterable$1 implements Iterable<Character>, KMappedMarker {
|
||||
final /* synthetic */ CharSequence $this_asIterable$inlined;
|
||||
|
||||
public StringsKt___StringsKt$asIterable$$inlined$Iterable$1(CharSequence charSequence) {
|
||||
this.$this_asIterable$inlined = charSequence;
|
||||
}
|
||||
|
||||
@Override // java.lang.Iterable
|
||||
public Iterator<Character> iterator() {
|
||||
return StringsKt__StringsKt.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
||||
2423
apk_decompiled/sources/kotlin/text/StringsKt___StringsKt.java
Normal file
2423
apk_decompiled/sources/kotlin/text/StringsKt___StringsKt.java
Normal file
File diff suppressed because one or more lines are too long
23
apk_decompiled/sources/kotlin/text/SystemProperties.java
Normal file
23
apk_decompiled/sources/kotlin/text/SystemProperties.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.JvmField;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\u000e\n\u0000\bÂ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u0010\u0010\u0003\u001a\u00020\u00048\u0006X\u0087\u0004¢\u0006\u0002\n\u0000¨\u0006\u0005"}, d2 = {"Lkotlin/text/SystemProperties;", "", "()V", "LINE_SEPARATOR", "", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
final class SystemProperties {
|
||||
public static final SystemProperties INSTANCE = new SystemProperties();
|
||||
|
||||
@JvmField
|
||||
public static final String LINE_SEPARATOR;
|
||||
|
||||
static {
|
||||
String property = System.getProperty("line.separator");
|
||||
Intrinsics.checkNotNull(property);
|
||||
LINE_SEPARATOR = property;
|
||||
}
|
||||
|
||||
private SystemProperties() {
|
||||
}
|
||||
}
|
||||
23
apk_decompiled/sources/kotlin/text/TypeAliasesKt.java
Normal file
23
apk_decompiled/sources/kotlin/text/TypeAliasesKt.java
Normal file
@@ -0,0 +1,23 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.WasExperimental;
|
||||
|
||||
@Metadata(d1 = {"\u0000&\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000*\u001a\b\u0007\u0010\u0000\"\u00020\u00012\u00020\u0001B\f\b\u0002\u0012\b\b\u0003\u0012\u0004\b\b(\u0004*,\b\u0007\u0010\u0005\"\u00020\u00062\u00020\u0006B\f\b\u0002\u0012\b\b\u0003\u0012\u0004\b\b(\u0007B\u0010\b\b\u0012\f\b\t\u0012\b\b\fJ\u0004\b\t0\n*\u001a\b\u0007\u0010\u000b\"\u00020\f2\u00020\fB\f\b\u0002\u0012\b\b\u0003\u0012\u0004\b\b(\u0004¨\u0006\r"}, d2 = {"Appendable", "Ljava/lang/Appendable;", "Lkotlin/SinceKotlin;", "version", "1.1", "CharacterCodingException", "Ljava/nio/charset/CharacterCodingException;", "1.4", "Lkotlin/WasExperimental;", "markerClass", "Lkotlin/ExperimentalStdlibApi;", "StringBuilder", "Ljava/lang/StringBuilder;", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class TypeAliasesKt {
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void Appendable$annotations() {
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.4")
|
||||
@WasExperimental(markerClass = {ExperimentalStdlibApi.class})
|
||||
public static /* synthetic */ void CharacterCodingException$annotations() {
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.1")
|
||||
public static /* synthetic */ void StringBuilder$annotations() {
|
||||
}
|
||||
}
|
||||
75
apk_decompiled/sources/kotlin/text/Typography.java
Normal file
75
apk_decompiled/sources/kotlin/text/Typography.java
Normal file
@@ -0,0 +1,75 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.SinceKotlin;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0014\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0010\f\n\u0002\b-\bÆ\u0002\u0018\u00002\u00020\u0001B\u0007\b\u0002¢\u0006\u0002\u0010\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\b\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\f\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0011\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0012\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0013\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u0016\u0010\u0014\u001a\u00020\u00048\u0006X\u0087T¢\u0006\b\n\u0000\u0012\u0004\b\u0015\u0010\u0002R\u0016\u0010\u0016\u001a\u00020\u00048\u0006X\u0087T¢\u0006\b\n\u0000\u0012\u0004\b\u0017\u0010\u0002R\u000e\u0010\u0018\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u0019\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001a\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001b\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001c\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001d\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001e\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\u001f\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010 \u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010!\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010\"\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010#\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010$\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010%\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010&\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010'\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010(\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u0016\u0010)\u001a\u00020\u00048\u0006X\u0087T¢\u0006\b\n\u0000\u0012\u0004\b*\u0010\u0002R\u0016\u0010+\u001a\u00020\u00048\u0006X\u0087T¢\u0006\b\n\u0000\u0012\u0004\b,\u0010\u0002R\u000e\u0010-\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010.\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u0010/\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000R\u000e\u00100\u001a\u00020\u0004X\u0086T¢\u0006\u0002\n\u0000¨\u00061"}, d2 = {"Lkotlin/text/Typography;", "", "()V", "almostEqual", "", "amp", "bullet", "cent", "copyright", "dagger", "degree", "dollar", "doubleDagger", "doublePrime", "ellipsis", "euro", "greater", "greaterOrEqual", "half", "leftDoubleQuote", "leftGuillemet", "getLeftGuillemet$annotations", "leftGuillemete", "getLeftGuillemete$annotations", "leftSingleQuote", "less", "lessOrEqual", "lowDoubleQuote", "lowSingleQuote", "mdash", "middleDot", "nbsp", "ndash", "notEqual", "paragraph", "plusMinus", "pound", "prime", "quote", "registered", "rightDoubleQuote", "rightGuillemet", "getRightGuillemet$annotations", "rightGuillemete", "getRightGuillemete$annotations", "rightSingleQuote", "section", "times", "tm", "kotlin-stdlib"}, k = 1, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class Typography {
|
||||
public static final Typography INSTANCE = new Typography();
|
||||
public static final char almostEqual = 8776;
|
||||
public static final char amp = '&';
|
||||
public static final char bullet = 8226;
|
||||
public static final char cent = 162;
|
||||
public static final char copyright = 169;
|
||||
public static final char dagger = 8224;
|
||||
public static final char degree = 176;
|
||||
public static final char dollar = '$';
|
||||
public static final char doubleDagger = 8225;
|
||||
public static final char doublePrime = 8243;
|
||||
public static final char ellipsis = 8230;
|
||||
public static final char euro = 8364;
|
||||
public static final char greater = '>';
|
||||
public static final char greaterOrEqual = 8805;
|
||||
public static final char half = 189;
|
||||
public static final char leftDoubleQuote = 8220;
|
||||
public static final char leftGuillemet = 171;
|
||||
public static final char leftGuillemete = 171;
|
||||
public static final char leftSingleQuote = 8216;
|
||||
public static final char less = '<';
|
||||
public static final char lessOrEqual = 8804;
|
||||
public static final char lowDoubleQuote = 8222;
|
||||
public static final char lowSingleQuote = 8218;
|
||||
public static final char mdash = 8212;
|
||||
public static final char middleDot = 183;
|
||||
public static final char nbsp = 160;
|
||||
public static final char ndash = 8211;
|
||||
public static final char notEqual = 8800;
|
||||
public static final char paragraph = 182;
|
||||
public static final char plusMinus = 177;
|
||||
public static final char pound = 163;
|
||||
public static final char prime = 8242;
|
||||
public static final char quote = '\"';
|
||||
public static final char registered = 174;
|
||||
public static final char rightDoubleQuote = 8221;
|
||||
public static final char rightGuillemet = 187;
|
||||
public static final char rightGuillemete = 187;
|
||||
public static final char rightSingleQuote = 8217;
|
||||
public static final char section = 167;
|
||||
public static final char times = 215;
|
||||
public static final char tm = 8482;
|
||||
|
||||
private Typography() {
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.6")
|
||||
public static /* synthetic */ void getLeftGuillemet$annotations() {
|
||||
}
|
||||
|
||||
@Deprecated(message = "This constant has a typo in the name. Use leftGuillemet instead.", replaceWith = @ReplaceWith(expression = "Typography.leftGuillemet", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public static /* synthetic */ void getLeftGuillemete$annotations() {
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.6")
|
||||
public static /* synthetic */ void getRightGuillemet$annotations() {
|
||||
}
|
||||
|
||||
@Deprecated(message = "This constant has a typo in the name. Use rightGuillemet instead.", replaceWith = @ReplaceWith(expression = "Typography.rightGuillemet", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.6")
|
||||
public static /* synthetic */ void getRightGuillemete$annotations() {
|
||||
}
|
||||
}
|
||||
228
apk_decompiled/sources/kotlin/text/UHexExtensionsKt.java
Normal file
228
apk_decompiled/sources/kotlin/text/UHexExtensionsKt.java
Normal file
@@ -0,0 +1,228 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.ExperimentalStdlibApi;
|
||||
import kotlin.ExperimentalUnsignedTypes;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.UByte;
|
||||
import kotlin.UByteArray;
|
||||
import kotlin.UInt;
|
||||
import kotlin.ULong;
|
||||
import kotlin.UShort;
|
||||
import kotlin.internal.InlineOnly;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000<\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0005\n\u0002\u0010\b\n\u0002\b\f\u001a\u001c\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0002\u0010\u0005\u001a\u001c\u0010\u0006\u001a\u00020\u0007*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0002\u0010\b\u001a\u001c\u0010\t\u001a\u00020\n*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0002\u0010\u000b\u001a\u001c\u0010\f\u001a\u00020\r*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0002\u0010\u000e\u001a\u001c\u0010\u000f\u001a\u00020\u0010*\u00020\u00022\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0002\u0010\u0011\u001a\u001e\u0010\u0012\u001a\u00020\u0002*\u00020\u00012\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b\u0013\u0010\u0014\u001a2\u0010\u0012\u001a\u00020\u0002*\u00020\u00072\b\b\u0002\u0010\u0015\u001a\u00020\u00162\b\b\u0002\u0010\u0017\u001a\u00020\u00162\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b\u0018\u0010\u0019\u001a\u001e\u0010\u0012\u001a\u00020\u0002*\u00020\u00072\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b\u001a\u0010\u001b\u001a\u001e\u0010\u0012\u001a\u00020\u0002*\u00020\n2\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b\u001c\u0010\u001d\u001a\u001e\u0010\u0012\u001a\u00020\u0002*\u00020\r2\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b\u001e\u0010\u001f\u001a\u001e\u0010\u0012\u001a\u00020\u0002*\u00020\u00102\b\b\u0002\u0010\u0003\u001a\u00020\u0004H\u0087\b¢\u0006\u0004\b \u0010!¨\u0006\""}, d2 = {"hexToUByte", "Lkotlin/UByte;", "", "format", "Lkotlin/text/HexFormat;", "(Ljava/lang/String;Lkotlin/text/HexFormat;)B", "hexToUByteArray", "Lkotlin/UByteArray;", "(Ljava/lang/String;Lkotlin/text/HexFormat;)[B", "hexToUInt", "Lkotlin/UInt;", "(Ljava/lang/String;Lkotlin/text/HexFormat;)I", "hexToULong", "Lkotlin/ULong;", "(Ljava/lang/String;Lkotlin/text/HexFormat;)J", "hexToUShort", "Lkotlin/UShort;", "(Ljava/lang/String;Lkotlin/text/HexFormat;)S", "toHexString", "toHexString-ZQbaR00", "(BLkotlin/text/HexFormat;)Ljava/lang/String;", "startIndex", "", "endIndex", "toHexString-lZCiFrA", "([BIILkotlin/text/HexFormat;)Ljava/lang/String;", "toHexString-zHuV2wU", "([BLkotlin/text/HexFormat;)Ljava/lang/String;", "toHexString-8M7LxHw", "(ILkotlin/text/HexFormat;)Ljava/lang/String;", "toHexString-8UJCm-I", "(JLkotlin/text/HexFormat;)Ljava/lang/String;", "toHexString-r3ox_E0", "(SLkotlin/text/HexFormat;)Ljava/lang/String;", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class UHexExtensionsKt {
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
private static final byte hexToUByte(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UByte.m134constructorimpl(HexExtensionsKt.hexToByte(str, format));
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte hexToUByte$default(String str, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UByte.m134constructorimpl(HexExtensionsKt.hexToByte(str, format));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@ExperimentalUnsignedTypes
|
||||
@InlineOnly
|
||||
private static final byte[] hexToUByteArray(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UByteArray.m187constructorimpl(HexExtensionsKt.hexToByteArray(str, format));
|
||||
}
|
||||
|
||||
public static /* synthetic */ byte[] hexToUByteArray$default(String str, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UByteArray.m187constructorimpl(HexExtensionsKt.hexToByteArray(str, format));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
private static final int hexToUInt(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UInt.m211constructorimpl(HexExtensionsKt.hexToInt(str, format));
|
||||
}
|
||||
|
||||
public static /* synthetic */ int hexToUInt$default(String str, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UInt.m211constructorimpl(HexExtensionsKt.hexToInt(str, format));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
private static final long hexToULong(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return ULong.m290constructorimpl(HexExtensionsKt.hexToLong(str, format));
|
||||
}
|
||||
|
||||
public static /* synthetic */ long hexToULong$default(String str, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return ULong.m290constructorimpl(HexExtensionsKt.hexToLong(str, format));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
private static final short hexToUShort(String str, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UShort.m397constructorimpl(HexExtensionsKt.hexToShort(str, format));
|
||||
}
|
||||
|
||||
public static /* synthetic */ short hexToUShort$default(String str, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return UShort.m397constructorimpl(HexExtensionsKt.hexToShort(str, format));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-8M7LxHw, reason: not valid java name */
|
||||
private static final String m1429toHexString8M7LxHw(int i, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(i, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-8M7LxHw$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1430toHexString8M7LxHw$default(int i, HexFormat format, int i4, Object obj) {
|
||||
if ((i4 & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(i, format);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-8UJCm-I, reason: not valid java name */
|
||||
private static final String m1431toHexString8UJCmI(long j4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(j4, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-8UJCm-I$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1432toHexString8UJCmI$default(long j4, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(j4, format);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-ZQbaR00, reason: not valid java name */
|
||||
private static final String m1433toHexStringZQbaR00(byte b4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(b4, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-ZQbaR00$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1434toHexStringZQbaR00$default(byte b4, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(b4, format);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@ExperimentalUnsignedTypes
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-lZCiFrA, reason: not valid java name */
|
||||
private static final String m1435toHexStringlZCiFrA(byte[] toHexString, int i, int i4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(toHexString, "$this$toHexString");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(toHexString, i, i4, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-lZCiFrA$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1436toHexStringlZCiFrA$default(byte[] toHexString, int i, int i4, HexFormat format, int i5, Object obj) {
|
||||
if ((i5 & 1) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
if ((i5 & 2) != 0) {
|
||||
i4 = UByteArray.m193getSizeimpl(toHexString);
|
||||
}
|
||||
if ((i5 & 4) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(toHexString, "$this$toHexString");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(toHexString, i, i4, format);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-r3ox_E0, reason: not valid java name */
|
||||
private static final String m1437toHexStringr3ox_E0(short s4, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(s4, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-r3ox_E0$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1438toHexStringr3ox_E0$default(short s4, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(s4, format);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.9")
|
||||
@ExperimentalStdlibApi
|
||||
@ExperimentalUnsignedTypes
|
||||
@InlineOnly
|
||||
/* renamed from: toHexString-zHuV2wU, reason: not valid java name */
|
||||
private static final String m1439toHexStringzHuV2wU(byte[] toHexString, HexFormat format) {
|
||||
Intrinsics.checkNotNullParameter(toHexString, "$this$toHexString");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(toHexString, format);
|
||||
}
|
||||
|
||||
/* renamed from: toHexString-zHuV2wU$default, reason: not valid java name */
|
||||
public static /* synthetic */ String m1440toHexStringzHuV2wU$default(byte[] toHexString, HexFormat format, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
format = HexFormat.INSTANCE.getDefault();
|
||||
}
|
||||
Intrinsics.checkNotNullParameter(toHexString, "$this$toHexString");
|
||||
Intrinsics.checkNotNullParameter(format, "format");
|
||||
return HexExtensionsKt.toHexString(toHexString, format);
|
||||
}
|
||||
}
|
||||
297
apk_decompiled/sources/kotlin/text/UStringsKt.java
Normal file
297
apk_decompiled/sources/kotlin/text/UStringsKt.java
Normal file
@@ -0,0 +1,297 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.ExperimentalUnsignedTypes;
|
||||
import kotlin.KotlinNothingValueException;
|
||||
import kotlin.KotlinVersion;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.UByte;
|
||||
import kotlin.UInt;
|
||||
import kotlin.ULong;
|
||||
import kotlin.UShort;
|
||||
import kotlin.UnsignedKt;
|
||||
import kotlin.WasExperimental;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000,\n\u0000\n\u0002\u0010\u000e\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\b\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\b\u0013\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u0005\u0010\u0006\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\b\u0010\t\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\n2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u000b\u0010\f\u001a\u001b\u0010\u0000\u001a\u00020\u0001*\u00020\r2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0004\b\u000e\u0010\u000f\u001a\u0011\u0010\u0010\u001a\u00020\u0002*\u00020\u0001H\u0007¢\u0006\u0002\u0010\u0011\u001a\u0019\u0010\u0010\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0002\u0010\u0012\u001a\u000e\u0010\u0013\u001a\u0004\u0018\u00010\u0002*\u00020\u0001H\u0007\u001a\u0016\u0010\u0013\u001a\u0004\u0018\u00010\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u0011\u0010\u0014\u001a\u00020\u0007*\u00020\u0001H\u0007¢\u0006\u0002\u0010\u0015\u001a\u0019\u0010\u0014\u001a\u00020\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0002\u0010\u0016\u001a\u000e\u0010\u0017\u001a\u0004\u0018\u00010\u0007*\u00020\u0001H\u0007\u001a\u0016\u0010\u0017\u001a\u0004\u0018\u00010\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u0011\u0010\u0018\u001a\u00020\n*\u00020\u0001H\u0007¢\u0006\u0002\u0010\u0019\u001a\u0019\u0010\u0018\u001a\u00020\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0002\u0010\u001a\u001a\u000e\u0010\u001b\u001a\u0004\u0018\u00010\n*\u00020\u0001H\u0007\u001a\u0016\u0010\u001b\u001a\u0004\u0018\u00010\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007\u001a\u0011\u0010\u001c\u001a\u00020\r*\u00020\u0001H\u0007¢\u0006\u0002\u0010\u001d\u001a\u0019\u0010\u001c\u001a\u00020\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¢\u0006\u0002\u0010\u001e\u001a\u000e\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u0001H\u0007\u001a\u0016\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007¨\u0006 "}, d2 = {"toString", "", "Lkotlin/UByte;", "radix", "", "toString-LxnNnR4", "(BI)Ljava/lang/String;", "Lkotlin/UInt;", "toString-V7xB4Y4", "(II)Ljava/lang/String;", "Lkotlin/ULong;", "toString-JSWoG40", "(JI)Ljava/lang/String;", "Lkotlin/UShort;", "toString-olVBNx4", "(SI)Ljava/lang/String;", "toUByte", "(Ljava/lang/String;)B", "(Ljava/lang/String;I)B", "toUByteOrNull", "toUInt", "(Ljava/lang/String;)I", "(Ljava/lang/String;I)I", "toUIntOrNull", "toULong", "(Ljava/lang/String;)J", "(Ljava/lang/String;I)J", "toULongOrNull", "toUShort", "(Ljava/lang/String;)S", "(Ljava/lang/String;I)S", "toUShortOrNull", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
@JvmName(name = "UStringsKt")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class UStringsKt {
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
/* renamed from: toString-JSWoG40, reason: not valid java name */
|
||||
public static final String m1441toStringJSWoG40(long j4, int i) {
|
||||
return UnsignedKt.ulongToString(j4, CharsKt__CharJVMKt.checkRadix(i));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
/* renamed from: toString-LxnNnR4, reason: not valid java name */
|
||||
public static final String m1442toStringLxnNnR4(byte b4, int i) {
|
||||
String num = Integer.toString(b4 & UByte.MAX_VALUE, CharsKt__CharJVMKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(...)");
|
||||
return num;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
/* renamed from: toString-V7xB4Y4, reason: not valid java name */
|
||||
public static final String m1443toStringV7xB4Y4(int i, int i4) {
|
||||
String l4 = Long.toString(i & 4294967295L, CharsKt__CharJVMKt.checkRadix(i4));
|
||||
Intrinsics.checkNotNullExpressionValue(l4, "toString(...)");
|
||||
return l4;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
/* renamed from: toString-olVBNx4, reason: not valid java name */
|
||||
public static final String m1444toStringolVBNx4(short s4, int i) {
|
||||
String num = Integer.toString(s4 & UShort.MAX_VALUE, CharsKt__CharJVMKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(...)");
|
||||
return num;
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final byte toUByte(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UByte uByteOrNull = toUByteOrNull(str);
|
||||
if (uByteOrNull != null) {
|
||||
return uByteOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UByte toUByteOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUByteOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final int toUInt(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str);
|
||||
if (uIntOrNull != null) {
|
||||
return uIntOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UInt toUIntOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUIntOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final long toULong(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
ULong uLongOrNull = toULongOrNull(str);
|
||||
if (uLongOrNull != null) {
|
||||
return uLongOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final ULong toULongOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toULongOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final short toUShort(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UShort uShortOrNull = toUShortOrNull(str);
|
||||
if (uShortOrNull != null) {
|
||||
return uShortOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UShort toUShortOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUShortOrNull(str, 10);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final byte toUByte(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UByte uByteOrNull = toUByteOrNull(str, i);
|
||||
if (uByteOrNull != null) {
|
||||
return uByteOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UByte toUByteOrNull(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str, i);
|
||||
if (uIntOrNull == null) {
|
||||
return null;
|
||||
}
|
||||
int data = uIntOrNull.getData();
|
||||
if (Integer.compareUnsigned(data, UInt.m211constructorimpl(KotlinVersion.MAX_COMPONENT_VALUE)) > 0) {
|
||||
return null;
|
||||
}
|
||||
return UByte.m128boximpl(UByte.m134constructorimpl((byte) data));
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final int toUInt(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str, i);
|
||||
if (uIntOrNull != null) {
|
||||
return uIntOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UInt toUIntOrNull(String str, int i) {
|
||||
int i4;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i5 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i4 = 1;
|
||||
if (length == 1 || charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
i4 = 0;
|
||||
}
|
||||
int m211constructorimpl = UInt.m211constructorimpl(i);
|
||||
int i6 = 119304647;
|
||||
while (i4 < length) {
|
||||
int digitOf = CharsKt__CharJVMKt.digitOf(str.charAt(i4), i);
|
||||
if (digitOf < 0) {
|
||||
return null;
|
||||
}
|
||||
if (Integer.compareUnsigned(i5, i6) > 0) {
|
||||
if (i6 == 119304647) {
|
||||
i6 = Integer.divideUnsigned(-1, m211constructorimpl);
|
||||
if (Integer.compareUnsigned(i5, i6) > 0) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
int m211constructorimpl2 = UInt.m211constructorimpl(i5 * m211constructorimpl);
|
||||
int m211constructorimpl3 = UInt.m211constructorimpl(UInt.m211constructorimpl(digitOf) + m211constructorimpl2);
|
||||
if (Integer.compareUnsigned(m211constructorimpl3, m211constructorimpl2) < 0) {
|
||||
return null;
|
||||
}
|
||||
i4++;
|
||||
i5 = m211constructorimpl3;
|
||||
}
|
||||
return UInt.m205boximpl(i5);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final long toULong(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
ULong uLongOrNull = toULongOrNull(str, i);
|
||||
if (uLongOrNull != null) {
|
||||
return uLongOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final ULong toULongOrNull(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt__CharJVMKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i4 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i4 = 1;
|
||||
if (length == 1 || charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
long m290constructorimpl = ULong.m290constructorimpl(i);
|
||||
long j4 = 0;
|
||||
long j5 = 512409557603043100L;
|
||||
while (i4 < length) {
|
||||
if (CharsKt__CharJVMKt.digitOf(str.charAt(i4), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
if (Long.compareUnsigned(j4, j5) > 0) {
|
||||
if (j5 == 512409557603043100L) {
|
||||
j5 = Long.divideUnsigned(-1L, m290constructorimpl);
|
||||
if (Long.compareUnsigned(j4, j5) > 0) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
long m290constructorimpl2 = ULong.m290constructorimpl(j4 * m290constructorimpl);
|
||||
long m290constructorimpl3 = ULong.m290constructorimpl(ULong.m290constructorimpl(UInt.m211constructorimpl(r13) & 4294967295L) + m290constructorimpl2);
|
||||
if (Long.compareUnsigned(m290constructorimpl3, m290constructorimpl2) < 0) {
|
||||
return null;
|
||||
}
|
||||
i4++;
|
||||
j4 = m290constructorimpl3;
|
||||
}
|
||||
return ULong.m284boximpl(j4);
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final short toUShort(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UShort uShortOrNull = toUShortOrNull(str, i);
|
||||
if (uShortOrNull != null) {
|
||||
return uShortOrNull.getData();
|
||||
}
|
||||
StringsKt__StringNumberConversionsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
@SinceKotlin(version = "1.5")
|
||||
@WasExperimental(markerClass = {ExperimentalUnsignedTypes.class})
|
||||
public static final UShort toUShortOrNull(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str, i);
|
||||
if (uIntOrNull == null) {
|
||||
return null;
|
||||
}
|
||||
int data = uIntOrNull.getData();
|
||||
if (Integer.compareUnsigned(data, UInt.m211constructorimpl(65535)) > 0) {
|
||||
return null;
|
||||
}
|
||||
return UShort.m391boximpl(UShort.m397constructorimpl((short) data));
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Locale;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
@Metadata(d1 = {"\u0000\f\n\u0000\n\u0002\u0010\u000e\n\u0002\u0010\f\n\u0000\u001a\f\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0000¨\u0006\u0003"}, d2 = {"titlecaseImpl", "", "", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, xi = 48)
|
||||
/* loaded from: classes3.dex */
|
||||
public final class _OneToManyTitlecaseMappingsKt {
|
||||
public static final String titlecaseImpl(char c4) {
|
||||
String valueOf = String.valueOf(c4);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
Locale locale = Locale.ROOT;
|
||||
String upperCase = valueOf.toUpperCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "toUpperCase(...)");
|
||||
if (upperCase.length() <= 1) {
|
||||
return String.valueOf(Character.toTitleCase(c4));
|
||||
}
|
||||
if (c4 == 329) {
|
||||
return upperCase;
|
||||
}
|
||||
char charAt = upperCase.charAt(0);
|
||||
Intrinsics.checkNotNull(upperCase, "null cannot be cast to non-null type java.lang.String");
|
||||
String substring = upperCase.substring(1);
|
||||
Intrinsics.checkNotNullExpressionValue(substring, "substring(...)");
|
||||
Intrinsics.checkNotNull(substring, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = substring.toLowerCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "toLowerCase(...)");
|
||||
return charAt + lowerCase;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
package kotlin.text.jdk8;
|
||||
|
||||
import com.google.android.gms.measurement.api.AppMeasurementSdk;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.SinceKotlin;
|
||||
import kotlin.jvm.JvmName;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.MatchGroup;
|
||||
import kotlin.text.MatchGroupCollection;
|
||||
import kotlin.text.MatchNamedGroupCollection;
|
||||
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\u0017\u0010\u0000\u001a\u0004\u0018\u00010\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0087\u0002¨\u0006\u0005"}, d2 = {"get", "Lkotlin/text/MatchGroup;", "Lkotlin/text/MatchGroupCollection;", AppMeasurementSdk.ConditionalUserProperty.NAME, "", "kotlin-stdlib"}, k = 2, mv = {1, 9, 0}, pn = "kotlin.text", xi = 48)
|
||||
@JvmName(name = "RegexExtensionsJDK8Kt")
|
||||
/* loaded from: classes3.dex */
|
||||
public final class RegexExtensionsJDK8Kt {
|
||||
@SinceKotlin(version = "1.2")
|
||||
public static final MatchGroup get(MatchGroupCollection matchGroupCollection, String name) {
|
||||
Intrinsics.checkNotNullParameter(matchGroupCollection, "<this>");
|
||||
Intrinsics.checkNotNullParameter(name, "name");
|
||||
MatchNamedGroupCollection matchNamedGroupCollection = matchGroupCollection instanceof MatchNamedGroupCollection ? (MatchNamedGroupCollection) matchGroupCollection : null;
|
||||
if (matchNamedGroupCollection != null) {
|
||||
return matchNamedGroupCollection.get(name);
|
||||
}
|
||||
throw new UnsupportedOperationException("Retrieving groups by name is not supported on this platform.");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user