ADD week 5
This commit is contained in:
85
02-Easy5/E5/sources/kotlin/text/CharCategory.java
Normal file
85
02-Easy5/E5/sources/kotlin/text/CharCategory.java
Normal file
@ -0,0 +1,85 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: CharCategoryJVM.kt */
|
||||
@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\u0001\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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public enum CharCategory {
|
||||
UNASSIGNED(0, "Cn"),
|
||||
UPPERCASE_LETTER(1, "Lu"),
|
||||
LOWERCASE_LETTER(2, "Ll"),
|
||||
TITLECASE_LETTER(3, "Lt"),
|
||||
MODIFIER_LETTER(4, "Lm"),
|
||||
OTHER_LETTER(5, "Lo"),
|
||||
NON_SPACING_MARK(6, "Mn"),
|
||||
ENCLOSING_MARK(7, "Me"),
|
||||
COMBINING_SPACING_MARK(8, "Mc"),
|
||||
DECIMAL_DIGIT_NUMBER(9, "Nd"),
|
||||
LETTER_NUMBER(10, "Nl"),
|
||||
OTHER_NUMBER(11, "No"),
|
||||
SPACE_SEPARATOR(12, "Zs"),
|
||||
LINE_SEPARATOR(13, "Zl"),
|
||||
PARAGRAPH_SEPARATOR(14, "Zp"),
|
||||
CONTROL(15, "Cc"),
|
||||
FORMAT(16, "Cf"),
|
||||
PRIVATE_USE(18, "Co"),
|
||||
SURROGATE(19, "Cs"),
|
||||
DASH_PUNCTUATION(20, "Pd"),
|
||||
START_PUNCTUATION(21, "Ps"),
|
||||
END_PUNCTUATION(22, "Pe"),
|
||||
CONNECTOR_PUNCTUATION(23, "Pc"),
|
||||
OTHER_PUNCTUATION(24, "Po"),
|
||||
MATH_SYMBOL(25, "Sm"),
|
||||
CURRENCY_SYMBOL(26, "Sc"),
|
||||
MODIFIER_SYMBOL(27, "Sk"),
|
||||
OTHER_SYMBOL(28, "So"),
|
||||
INITIAL_QUOTE_PUNCTUATION(29, "Pi"),
|
||||
FINAL_QUOTE_PUNCTUATION(30, "Pf");
|
||||
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private final String code;
|
||||
private final int value;
|
||||
|
||||
public final String getCode() {
|
||||
return this.code;
|
||||
}
|
||||
|
||||
public final int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
CharCategory(int i, String str) {
|
||||
this.value = i;
|
||||
this.code = str;
|
||||
}
|
||||
|
||||
public final boolean contains(char r2) {
|
||||
return Character.getType(r2) == this.value;
|
||||
}
|
||||
|
||||
/* compiled from: CharCategoryJVM.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final CharCategory valueOf(int category) {
|
||||
if (new IntRange(0, 16).contains(category)) {
|
||||
return CharCategory.values()[category];
|
||||
}
|
||||
if (new IntRange(18, 30).contains(category)) {
|
||||
return CharCategory.values()[category - 1];
|
||||
}
|
||||
throw new IllegalArgumentException("Category #" + category + " is not defined.");
|
||||
}
|
||||
}
|
||||
}
|
84
02-Easy5/E5/sources/kotlin/text/CharDirectionality.java
Normal file
84
02-Easy5/E5/sources/kotlin/text/CharDirectionality.java
Normal file
@ -0,0 +1,84 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.Map;
|
||||
import kotlin.Lazy;
|
||||
import kotlin.LazyKt;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.MapsKt;
|
||||
import kotlin.jvm.functions.Function0;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
/* compiled from: CharDirectionality.kt */
|
||||
@Metadata(d1 = {"\u0000\u0012\n\u0002\u0018\u0002\n\u0002\u0010\u0010\n\u0000\n\u0002\u0010\b\n\u0002\b\u0019\b\u0086\u0001\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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public enum CharDirectionality {
|
||||
UNDEFINED(-1),
|
||||
LEFT_TO_RIGHT(0),
|
||||
RIGHT_TO_LEFT(1),
|
||||
RIGHT_TO_LEFT_ARABIC(2),
|
||||
EUROPEAN_NUMBER(3),
|
||||
EUROPEAN_NUMBER_SEPARATOR(4),
|
||||
EUROPEAN_NUMBER_TERMINATOR(5),
|
||||
ARABIC_NUMBER(6),
|
||||
COMMON_NUMBER_SEPARATOR(7),
|
||||
NONSPACING_MARK(8),
|
||||
BOUNDARY_NEUTRAL(9),
|
||||
PARAGRAPH_SEPARATOR(10),
|
||||
SEGMENT_SEPARATOR(11),
|
||||
WHITESPACE(12),
|
||||
OTHER_NEUTRALS(13),
|
||||
LEFT_TO_RIGHT_EMBEDDING(14),
|
||||
LEFT_TO_RIGHT_OVERRIDE(15),
|
||||
RIGHT_TO_LEFT_EMBEDDING(16),
|
||||
RIGHT_TO_LEFT_OVERRIDE(17),
|
||||
POP_DIRECTIONAL_FORMAT(18);
|
||||
|
||||
private final int value;
|
||||
|
||||
/* renamed from: Companion, reason: from kotlin metadata */
|
||||
public static final Companion INSTANCE = new Companion(null);
|
||||
private static final Lazy<Map<Integer, CharDirectionality>> 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() {
|
||||
CharDirectionality[] values = CharDirectionality.values();
|
||||
LinkedHashMap linkedHashMap = new LinkedHashMap(RangesKt.coerceAtLeast(MapsKt.mapCapacity(values.length), 16));
|
||||
for (CharDirectionality charDirectionality : values) {
|
||||
linkedHashMap.put(Integer.valueOf(charDirectionality.getValue()), charDirectionality);
|
||||
}
|
||||
return linkedHashMap;
|
||||
}
|
||||
});
|
||||
|
||||
public final int getValue() {
|
||||
return this.value;
|
||||
}
|
||||
|
||||
CharDirectionality(int i) {
|
||||
this.value = i;
|
||||
}
|
||||
|
||||
/* compiled from: CharDirectionality.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
public static final class Companion {
|
||||
public /* synthetic */ Companion(DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this();
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
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("Directionality #" + directionality + " is not defined.");
|
||||
}
|
||||
}
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/text/CharsKt.java
Normal file
10
02-Easy5/E5/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, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CharsKt extends CharsKt__CharKt {
|
||||
private CharsKt() {
|
||||
}
|
||||
}
|
177
02-Easy5/E5/sources/kotlin/text/CharsKt__CharJVMKt.java
Normal file
177
02-Easy5/E5/sources/kotlin/text/CharsKt__CharJVMKt.java
Normal file
@ -0,0 +1,177 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Locale;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: CharJVM.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/CharsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class CharsKt__CharJVMKt {
|
||||
public static final CharCategory getCategory(char c) {
|
||||
return CharCategory.INSTANCE.valueOf(Character.getType(c));
|
||||
}
|
||||
|
||||
private static final boolean isDefined(char c) {
|
||||
return Character.isDefined(c);
|
||||
}
|
||||
|
||||
private static final boolean isLetter(char c) {
|
||||
return Character.isLetter(c);
|
||||
}
|
||||
|
||||
private static final boolean isLetterOrDigit(char c) {
|
||||
return Character.isLetterOrDigit(c);
|
||||
}
|
||||
|
||||
private static final boolean isDigit(char c) {
|
||||
return Character.isDigit(c);
|
||||
}
|
||||
|
||||
private static final boolean isIdentifierIgnorable(char c) {
|
||||
return Character.isIdentifierIgnorable(c);
|
||||
}
|
||||
|
||||
private static final boolean isISOControl(char c) {
|
||||
return Character.isISOControl(c);
|
||||
}
|
||||
|
||||
private static final boolean isJavaIdentifierPart(char c) {
|
||||
return Character.isJavaIdentifierPart(c);
|
||||
}
|
||||
|
||||
private static final boolean isJavaIdentifierStart(char c) {
|
||||
return Character.isJavaIdentifierStart(c);
|
||||
}
|
||||
|
||||
public static final boolean isWhitespace(char c) {
|
||||
return Character.isWhitespace(c) || Character.isSpaceChar(c);
|
||||
}
|
||||
|
||||
private static final boolean isUpperCase(char c) {
|
||||
return Character.isUpperCase(c);
|
||||
}
|
||||
|
||||
private static final boolean isLowerCase(char c) {
|
||||
return Character.isLowerCase(c);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use uppercaseChar() instead.", replaceWith = @ReplaceWith(expression = "uppercaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
private static final char toUpperCase(char c) {
|
||||
return Character.toUpperCase(c);
|
||||
}
|
||||
|
||||
private static final char uppercaseChar(char c) {
|
||||
return Character.toUpperCase(c);
|
||||
}
|
||||
|
||||
private static final String uppercase(char c) {
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
|
||||
return upperCase;
|
||||
}
|
||||
|
||||
public static final String uppercase(char c, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(locale)");
|
||||
return upperCase;
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use lowercaseChar() instead.", replaceWith = @ReplaceWith(expression = "lowercaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
private static final char toLowerCase(char c) {
|
||||
return Character.toLowerCase(c);
|
||||
}
|
||||
|
||||
private static final char lowercaseChar(char c) {
|
||||
return Character.toLowerCase(c);
|
||||
}
|
||||
|
||||
private static final String lowercase(char c) {
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = valueOf.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
|
||||
return lowerCase;
|
||||
}
|
||||
|
||||
public static final String lowercase(char c, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = valueOf.toLowerCase(locale);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(locale)");
|
||||
return lowerCase;
|
||||
}
|
||||
|
||||
private static final boolean isTitleCase(char c) {
|
||||
return Character.isTitleCase(c);
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use titlecaseChar() instead.", replaceWith = @ReplaceWith(expression = "titlecaseChar()", imports = {}))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.5")
|
||||
private static final char toTitleCase(char c) {
|
||||
return Character.toTitleCase(c);
|
||||
}
|
||||
|
||||
private static final char titlecaseChar(char c) {
|
||||
return Character.toTitleCase(c);
|
||||
}
|
||||
|
||||
public static final String titlecase(char c, Locale locale) {
|
||||
Intrinsics.checkNotNullParameter(locale, "locale");
|
||||
String uppercase = CharsKt.uppercase(c, locale);
|
||||
if (uppercase.length() <= 1) {
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
|
||||
return !Intrinsics.areEqual(uppercase, upperCase) ? uppercase : String.valueOf(Character.toTitleCase(c));
|
||||
}
|
||||
if (c == 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, "this as java.lang.String).substring(startIndex)");
|
||||
Intrinsics.checkNotNull(substring, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = substring.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
|
||||
return charAt + lowerCase;
|
||||
}
|
||||
|
||||
public static final CharDirectionality getDirectionality(char c) {
|
||||
return CharDirectionality.INSTANCE.valueOf(Character.getDirectionality(c));
|
||||
}
|
||||
|
||||
private static final boolean isHighSurrogate(char c) {
|
||||
return Character.isHighSurrogate(c);
|
||||
}
|
||||
|
||||
private static final boolean isLowSurrogate(char c) {
|
||||
return Character.isLowSurrogate(c);
|
||||
}
|
||||
|
||||
public static final int digitOf(char c, int i) {
|
||||
return Character.digit((int) c, i);
|
||||
}
|
||||
|
||||
public static final int checkRadix(int i) {
|
||||
if (new IntRange(2, 36).contains(i)) {
|
||||
return i;
|
||||
}
|
||||
throw new IllegalArgumentException("radix " + i + " was not in valid range " + new IntRange(2, 36));
|
||||
}
|
||||
}
|
93
02-Easy5/E5/sources/kotlin/text/CharsKt__CharKt.java
Normal file
93
02-Easy5/E5/sources/kotlin/text/CharsKt__CharKt.java
Normal file
@ -0,0 +1,93 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.CharRange;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: Char.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/CharsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class CharsKt__CharKt extends CharsKt__CharJVMKt {
|
||||
public static final int digitToInt(char c) {
|
||||
int digitOf = CharsKt.digitOf(c, 10);
|
||||
if (digitOf >= 0) {
|
||||
return digitOf;
|
||||
}
|
||||
throw new IllegalArgumentException("Char " + c + " is not a decimal digit");
|
||||
}
|
||||
|
||||
public static final int digitToInt(char c, int i) {
|
||||
Integer digitToIntOrNull = CharsKt.digitToIntOrNull(c, i);
|
||||
if (digitToIntOrNull != null) {
|
||||
return digitToIntOrNull.intValue();
|
||||
}
|
||||
throw new IllegalArgumentException("Char " + c + " is not a digit in the given radix=" + i);
|
||||
}
|
||||
|
||||
public static final Integer digitToIntOrNull(char c) {
|
||||
Integer valueOf = Integer.valueOf(CharsKt.digitOf(c, 10));
|
||||
if (valueOf.intValue() >= 0) {
|
||||
return valueOf;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final Integer digitToIntOrNull(char c, int i) {
|
||||
CharsKt.checkRadix(i);
|
||||
Integer valueOf = Integer.valueOf(CharsKt.digitOf(c, i));
|
||||
if (valueOf.intValue() >= 0) {
|
||||
return valueOf;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static final char digitToChar(int i) {
|
||||
if (new IntRange(0, 9).contains(i)) {
|
||||
return (char) (i + 48);
|
||||
}
|
||||
throw new IllegalArgumentException("Int " + i + " is not a decimal digit");
|
||||
}
|
||||
|
||||
public static final char digitToChar(int i, int i2) {
|
||||
if (!new IntRange(2, 36).contains(i2)) {
|
||||
throw new IllegalArgumentException("Invalid radix: " + i2 + ". Valid radix values are in range 2..36");
|
||||
}
|
||||
if (i >= 0 && i < i2) {
|
||||
return (char) (i < 10 ? i + 48 : ((char) (i + 65)) - '\n');
|
||||
}
|
||||
throw new IllegalArgumentException("Digit " + i + " does not represent a valid digit in radix " + i2);
|
||||
}
|
||||
|
||||
public static final String titlecase(char c) {
|
||||
return _OneToManyTitlecaseMappingsKt.titlecaseImpl(c);
|
||||
}
|
||||
|
||||
private static final String plus(char c, String other) {
|
||||
Intrinsics.checkNotNullParameter(other, "other");
|
||||
return c + other;
|
||||
}
|
||||
|
||||
public static /* synthetic */ boolean equals$default(char c, char c2, boolean z, int i, Object obj) {
|
||||
if ((i & 2) != 0) {
|
||||
z = false;
|
||||
}
|
||||
return CharsKt.equals(c, c2, z);
|
||||
}
|
||||
|
||||
public static final boolean equals(char c, char c2, boolean z) {
|
||||
if (c == c2) {
|
||||
return true;
|
||||
}
|
||||
if (!z) {
|
||||
return false;
|
||||
}
|
||||
char upperCase = Character.toUpperCase(c);
|
||||
char upperCase2 = Character.toUpperCase(c2);
|
||||
return upperCase == upperCase2 || Character.toLowerCase(upperCase) == Character.toLowerCase(upperCase2);
|
||||
}
|
||||
|
||||
public static final boolean isSurrogate(char c) {
|
||||
return new CharRange((char) 55296, (char) 57343).contains(c);
|
||||
}
|
||||
}
|
78
02-Easy5/E5/sources/kotlin/text/Charsets.java
Normal file
78
02-Easy5/E5/sources/kotlin/text/Charsets.java
Normal file
@ -0,0 +1,78 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: Charsets.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class Charsets {
|
||||
public static final Charsets INSTANCE = new Charsets();
|
||||
public static final Charset ISO_8859_1;
|
||||
public static final Charset US_ASCII;
|
||||
public static final Charset UTF_16;
|
||||
public static final Charset UTF_16BE;
|
||||
public static final Charset UTF_16LE;
|
||||
public static final Charset UTF_8;
|
||||
private static volatile Charset utf_32;
|
||||
private static volatile Charset utf_32be;
|
||||
private static volatile Charset utf_32le;
|
||||
|
||||
private Charsets() {
|
||||
}
|
||||
|
||||
static {
|
||||
Charset forName = Charset.forName("UTF-8");
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(\"UTF-8\")");
|
||||
UTF_8 = forName;
|
||||
Charset forName2 = Charset.forName("UTF-16");
|
||||
Intrinsics.checkNotNullExpressionValue(forName2, "forName(\"UTF-16\")");
|
||||
UTF_16 = forName2;
|
||||
Charset forName3 = Charset.forName("UTF-16BE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName3, "forName(\"UTF-16BE\")");
|
||||
UTF_16BE = forName3;
|
||||
Charset forName4 = Charset.forName("UTF-16LE");
|
||||
Intrinsics.checkNotNullExpressionValue(forName4, "forName(\"UTF-16LE\")");
|
||||
UTF_16LE = forName4;
|
||||
Charset forName5 = Charset.forName("US-ASCII");
|
||||
Intrinsics.checkNotNullExpressionValue(forName5, "forName(\"US-ASCII\")");
|
||||
US_ASCII = forName5;
|
||||
Charset forName6 = Charset.forName("ISO-8859-1");
|
||||
Intrinsics.checkNotNullExpressionValue(forName6, "forName(\"ISO-8859-1\")");
|
||||
ISO_8859_1 = forName6;
|
||||
}
|
||||
|
||||
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\")");
|
||||
utf_32 = forName;
|
||||
return forName;
|
||||
}
|
||||
|
||||
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\")");
|
||||
utf_32le = forName;
|
||||
return forName;
|
||||
}
|
||||
|
||||
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\")");
|
||||
utf_32be = forName;
|
||||
return forName;
|
||||
}
|
||||
}
|
17
02-Easy5/E5/sources/kotlin/text/CharsetsKt.java
Normal file
17
02-Easy5/E5/sources/kotlin/text/CharsetsKt.java
Normal file
@ -0,0 +1,17 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.nio.charset.Charset;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: Charsets.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class CharsetsKt {
|
||||
private static final Charset charset(String charsetName) {
|
||||
Intrinsics.checkNotNullParameter(charsetName, "charsetName");
|
||||
Charset forName = Charset.forName(charsetName);
|
||||
Intrinsics.checkNotNullExpressionValue(forName, "forName(charsetName)");
|
||||
return forName;
|
||||
}
|
||||
}
|
@ -0,0 +1,190 @@
|
||||
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;
|
||||
|
||||
/* compiled from: Strings.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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 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 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;
|
||||
}
|
||||
|
||||
DelimitedRangesSequence$iterator$1(DelimitedRangesSequence delimitedRangesSequence) {
|
||||
int i;
|
||||
CharSequence charSequence;
|
||||
this.this$0 = delimitedRangesSequence;
|
||||
i = delimitedRangesSequence.startIndex;
|
||||
charSequence = delimitedRangesSequence.input;
|
||||
int coerceIn = RangesKt.coerceIn(i, 0, charSequence.length());
|
||||
this.currentStartIndex = coerceIn;
|
||||
this.nextSearchIndex = coerceIn;
|
||||
}
|
||||
|
||||
/* JADX WARN: Code restructure failed: missing block: B:9:0x0021, code lost:
|
||||
|
||||
if (r0 < r4) goto L9;
|
||||
*/
|
||||
/*
|
||||
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 Lc
|
||||
r6.nextState = r1
|
||||
r0 = 0
|
||||
r6.nextItem = r0
|
||||
goto L9e
|
||||
Lc:
|
||||
kotlin.text.DelimitedRangesSequence r0 = r6.this$0
|
||||
int r0 = kotlin.text.DelimitedRangesSequence.access$getLimit$p(r0)
|
||||
r2 = -1
|
||||
r3 = 1
|
||||
if (r0 <= 0) goto L23
|
||||
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 L31
|
||||
L23:
|
||||
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 L47
|
||||
L31:
|
||||
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.getLastIndex(r4)
|
||||
r0.<init>(r1, r4)
|
||||
r6.nextItem = r0
|
||||
r6.nextSearchIndex = r2
|
||||
goto L9c
|
||||
L47:
|
||||
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 L77
|
||||
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.getLastIndex(r4)
|
||||
r0.<init>(r1, r4)
|
||||
r6.nextItem = r0
|
||||
r6.nextSearchIndex = r2
|
||||
goto L9c
|
||||
L77:
|
||||
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 L99
|
||||
r1 = 1
|
||||
L99:
|
||||
int r2 = r2 + r1
|
||||
r6.nextSearchIndex = r2
|
||||
L9c:
|
||||
r6.nextState = r3
|
||||
L9e:
|
||||
return
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.DelimitedRangesSequence$iterator$1.calcNext():void");
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public IntRange next() {
|
||||
if (this.nextState == -1) {
|
||||
calcNext();
|
||||
}
|
||||
if (this.nextState == 0) {
|
||||
throw new NoSuchElementException();
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@Override // java.util.Iterator
|
||||
public boolean hasNext() {
|
||||
if (this.nextState == -1) {
|
||||
calcNext();
|
||||
}
|
||||
return this.nextState == 1;
|
||||
}
|
||||
}
|
34
02-Easy5/E5/sources/kotlin/text/DelimitedRangesSequence.java
Normal file
34
02-Easy5/E5/sources/kotlin/text/DelimitedRangesSequence.java
Normal file
@ -0,0 +1,34 @@
|
||||
package kotlin.text;
|
||||
|
||||
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;
|
||||
|
||||
/* compiled from: Strings.kt */
|
||||
@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;", "name", "currentIndex", "Lkotlin/Pair;", "Lkotlin/ExtensionFunctionType;", "(Ljava/lang/CharSequence;IILkotlin/jvm/functions/Function2;)V", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
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 i2, 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 = i2;
|
||||
this.getNextMatch = getNextMatch;
|
||||
}
|
||||
|
||||
@Override // kotlin.sequences.Sequence
|
||||
public Iterator<IntRange> iterator() {
|
||||
return new DelimitedRangesSequence$iterator$1(this);
|
||||
}
|
||||
}
|
12
02-Easy5/E5/sources/kotlin/text/FlagEnum.java
Normal file
12
02-Easy5/E5/sources/kotlin/text/FlagEnum.java
Normal file
@ -0,0 +1,12 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
interface FlagEnum {
|
||||
int getMask();
|
||||
|
||||
int getValue();
|
||||
}
|
73
02-Easy5/E5/sources/kotlin/text/MatchGroup.java
Normal file
73
02-Easy5/E5/sources/kotlin/text/MatchGroup.java
Normal file
@ -0,0 +1,73 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final /* data */ class MatchGroup {
|
||||
private final IntRange range;
|
||||
private final String value;
|
||||
|
||||
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.value.hashCode() * 31) + this.range.hashCode();
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
return "MatchGroup(value=" + this.value + ", range=" + this.range + ')';
|
||||
}
|
||||
|
||||
public MatchGroup(String value, IntRange range) {
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
Intrinsics.checkNotNullParameter(range, "range");
|
||||
this.value = value;
|
||||
this.range = range;
|
||||
}
|
||||
}
|
12
02-Easy5/E5/sources/kotlin/text/MatchGroupCollection.java
Normal file
12
02-Easy5/E5/sources/kotlin/text/MatchGroupCollection.java
Normal file
@ -0,0 +1,12 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Collection;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: MatchResult.kt */
|
||||
@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", "index", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface MatchGroupCollection extends Collection<MatchGroup>, KMappedMarker {
|
||||
MatchGroup get(int index);
|
||||
}
|
@ -0,0 +1,10 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: MatchResult.kt */
|
||||
@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;", "name", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface MatchNamedGroupCollection extends MatchGroupCollection {
|
||||
MatchGroup get(String name);
|
||||
}
|
90
02-Easy5/E5/sources/kotlin/text/MatchResult.java
Normal file
90
02-Easy5/E5/sources/kotlin/text/MatchResult.java
Normal file
@ -0,0 +1,90 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: MatchResult.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public interface MatchResult {
|
||||
Destructured getDestructured();
|
||||
|
||||
List<String> getGroupValues();
|
||||
|
||||
MatchGroupCollection getGroups();
|
||||
|
||||
IntRange getRange();
|
||||
|
||||
String getValue();
|
||||
|
||||
MatchResult next();
|
||||
|
||||
/* compiled from: MatchResult.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
public static final class DefaultImpls {
|
||||
public static Destructured getDestructured(MatchResult matchResult) {
|
||||
return new Destructured(matchResult);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: MatchResult.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
public static final class Destructured {
|
||||
private final MatchResult match;
|
||||
|
||||
public final MatchResult getMatch() {
|
||||
return this.match;
|
||||
}
|
||||
|
||||
public Destructured(MatchResult match) {
|
||||
Intrinsics.checkNotNullParameter(match, "match");
|
||||
this.match = match;
|
||||
}
|
||||
|
||||
private final String component1() {
|
||||
return getMatch().getGroupValues().get(1);
|
||||
}
|
||||
|
||||
private final String component2() {
|
||||
return getMatch().getGroupValues().get(2);
|
||||
}
|
||||
|
||||
private final String component3() {
|
||||
return getMatch().getGroupValues().get(3);
|
||||
}
|
||||
|
||||
private final String component4() {
|
||||
return getMatch().getGroupValues().get(4);
|
||||
}
|
||||
|
||||
private final String component5() {
|
||||
return getMatch().getGroupValues().get(5);
|
||||
}
|
||||
|
||||
private final String component6() {
|
||||
return getMatch().getGroupValues().get(6);
|
||||
}
|
||||
|
||||
private final String component7() {
|
||||
return getMatch().getGroupValues().get(7);
|
||||
}
|
||||
|
||||
private final String component8() {
|
||||
return getMatch().getGroupValues().get(8);
|
||||
}
|
||||
|
||||
private final String component9() {
|
||||
return getMatch().getGroupValues().get(9);
|
||||
}
|
||||
|
||||
private final String component10() {
|
||||
return getMatch().getGroupValues().get(10);
|
||||
}
|
||||
|
||||
public final List<String> toList() {
|
||||
return this.match.getGroupValues().subList(1, this.match.getGroupValues().size());
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,91 @@
|
||||
package kotlin.text;
|
||||
|
||||
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;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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", "index", "name", "", "isEmpty", "", "iterator", "", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class MatcherMatchResult$groups$1 extends AbstractCollection<MatchGroup> implements MatchNamedGroupCollection {
|
||||
final /* synthetic */ MatcherMatchResult this$0;
|
||||
|
||||
@Override // kotlin.collections.AbstractCollection, java.util.Collection
|
||||
public boolean isEmpty() {
|
||||
return false;
|
||||
}
|
||||
|
||||
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 || (obj instanceof MatchGroup)) {
|
||||
return contains((MatchGroup) obj);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public /* bridge */ boolean contains(MatchGroup matchGroup) {
|
||||
return super.contains((MatcherMatchResult$groups$1) matchGroup);
|
||||
}
|
||||
|
||||
@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, 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();
|
||||
}
|
||||
|
||||
@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, "matchResult.group(index)");
|
||||
return new MatchGroup(group, range);
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
}
|
131
02-Easy5/E5/sources/kotlin/text/MatcherMatchResult.java
Normal file
131
02-Easy5/E5/sources/kotlin/text/MatcherMatchResult.java
Normal file
@ -0,0 +1,131 @@
|
||||
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;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class MatcherMatchResult implements MatchResult {
|
||||
private List<String> groupValues_;
|
||||
private final MatchGroupCollection groups;
|
||||
private final CharSequence input;
|
||||
private final Matcher matcher;
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchGroupCollection getGroups() {
|
||||
return this.groups;
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchResult.Destructured getDestructured() {
|
||||
return MatchResult.DefaultImpls.getDestructured(this);
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public final java.util.regex.MatchResult getMatchResult() {
|
||||
return this.matcher;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public IntRange getRange() {
|
||||
IntRange range;
|
||||
range = RegexKt.range(getMatchResult());
|
||||
return range;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public String getValue() {
|
||||
String group = getMatchResult().group();
|
||||
Intrinsics.checkNotNullExpressionValue(group, "matchResult.group()");
|
||||
return group;
|
||||
}
|
||||
|
||||
@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;
|
||||
}
|
||||
|
||||
public /* bridge */ boolean contains(String str) {
|
||||
return super.contains((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
|
||||
@Override // kotlin.collections.AbstractList, java.util.List
|
||||
public final /* bridge */ int indexOf(Object obj) {
|
||||
if (obj instanceof String) {
|
||||
return indexOf((String) obj);
|
||||
}
|
||||
return -1;
|
||||
}
|
||||
|
||||
public /* bridge */ int indexOf(String str) {
|
||||
return super.indexOf((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
|
||||
@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 */ int lastIndexOf(String str) {
|
||||
return super.lastIndexOf((MatcherMatchResult$groupValues$1) str);
|
||||
}
|
||||
|
||||
@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 String get(int index) {
|
||||
java.util.regex.MatchResult matchResult;
|
||||
matchResult = MatcherMatchResult.this.getMatchResult();
|
||||
String group = matchResult.group(index);
|
||||
return group == null ? "" : group;
|
||||
}
|
||||
};
|
||||
}
|
||||
List<String> list = this.groupValues_;
|
||||
Intrinsics.checkNotNull(list);
|
||||
return list;
|
||||
}
|
||||
|
||||
@Override // kotlin.text.MatchResult
|
||||
public MatchResult next() {
|
||||
MatchResult findNext;
|
||||
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.pattern().matcher(input)");
|
||||
findNext = RegexKt.findNext(matcher, end, this.input);
|
||||
return findNext;
|
||||
}
|
||||
}
|
23
02-Easy5/E5/sources/kotlin/text/Regex$findAll$2.java
Normal file
23
02-Easy5/E5/sources/kotlin/text/Regex$findAll$2.java
Normal file
@ -0,0 +1,23 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.FunctionReferenceImpl;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@Metadata(k = 3, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
/* synthetic */ class Regex$findAll$2 extends FunctionReferenceImpl implements Function1<MatchResult, MatchResult> {
|
||||
public static final Regex$findAll$2 INSTANCE = new Regex$findAll$2();
|
||||
|
||||
Regex$findAll$2() {
|
||||
super(1, MatchResult.class, "next", "next()Lkotlin/text/MatchResult;", 0);
|
||||
}
|
||||
|
||||
@Override // kotlin.jvm.functions.Function1
|
||||
public final MatchResult invoke(MatchResult p0) {
|
||||
Intrinsics.checkNotNullParameter(p0, "p0");
|
||||
return p0.next();
|
||||
}
|
||||
}
|
158
02-Easy5/E5/sources/kotlin/text/Regex$splitToSequence$1.java
Normal file
158
02-Easy5/E5/sources/kotlin/text/Regex$splitToSequence$1.java
Normal file
@ -0,0 +1,158 @@
|
||||
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;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@Metadata(d1 = {"\u0000\u000e\n\u0002\u0018\u0002\n\u0002\u0010\u000e\n\u0002\u0010\u0002\n\u0000\u0010\u0003\u001a\u00020\u0002*\b\u0012\u0004\u0012\u00020\u00010\u0000H\u008a@"}, d2 = {"Lkotlin/sequences/SequenceScope;", "", "", "<anonymous>"}, k = 3, mv = {1, 8, 0})
|
||||
@DebugMetadata(c = "kotlin.text.Regex$splitToSequence$1", f = "Regex.kt", i = {1, 1, 1}, l = {276, 284, 288}, m = "invokeSuspend", n = {"$this$sequence", "matcher", "splitCount"}, s = {"L$0", "L$1", "I$0"})
|
||||
/* loaded from: classes.dex */
|
||||
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) */
|
||||
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;
|
||||
}
|
||||
|
||||
@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);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0080 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:19:0x0075 A[RETURN] */
|
||||
/* JADX WARN: Removed duplicated region for block: B:22:0x00a4 A[RETURN] */
|
||||
/* JADX WARN: Unsupported multi-entry loop pattern (BACK_EDGE: B:18:0x0073 -> B:13:0x0076). 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 r11) {
|
||||
/*
|
||||
r10 = this;
|
||||
java.lang.Object r0 = kotlin.coroutines.intrinsics.IntrinsicsKt.getCOROUTINE_SUSPENDED()
|
||||
int r1 = r10.label
|
||||
r2 = 3
|
||||
r3 = 2
|
||||
r4 = 1
|
||||
if (r1 == 0) goto L33
|
||||
if (r1 == r4) goto L2e
|
||||
if (r1 == r3) goto L1e
|
||||
if (r1 != r2) goto L16
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto La5
|
||||
L16:
|
||||
java.lang.IllegalStateException r11 = new java.lang.IllegalStateException
|
||||
java.lang.String r0 = "call to 'resume' before 'invoke' with coroutine"
|
||||
r11.<init>(r0)
|
||||
throw r11
|
||||
L1e:
|
||||
int r1 = r10.I$0
|
||||
java.lang.Object r5 = r10.L$1
|
||||
java.util.regex.Matcher r5 = (java.util.regex.Matcher) r5
|
||||
java.lang.Object r6 = r10.L$0
|
||||
kotlin.sequences.SequenceScope r6 = (kotlin.sequences.SequenceScope) r6
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
r7 = r10
|
||||
r11 = r5
|
||||
goto L76
|
||||
L2e:
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
goto Lba
|
||||
L33:
|
||||
kotlin.ResultKt.throwOnFailure(r11)
|
||||
java.lang.Object r11 = r10.L$0
|
||||
kotlin.sequences.SequenceScope r11 = (kotlin.sequences.SequenceScope) r11
|
||||
kotlin.text.Regex r1 = r10.this$0
|
||||
java.util.regex.Pattern r1 = kotlin.text.Regex.access$getNativePattern$p(r1)
|
||||
java.lang.CharSequence r5 = r10.$input
|
||||
java.util.regex.Matcher r1 = r1.matcher(r5)
|
||||
int r5 = r10.$limit
|
||||
if (r5 == r4) goto La8
|
||||
boolean r5 = r1.find()
|
||||
if (r5 != 0) goto L51
|
||||
goto La8
|
||||
L51:
|
||||
r5 = 0
|
||||
r7 = r10
|
||||
r6 = r11
|
||||
r11 = r1
|
||||
r1 = 0
|
||||
L56:
|
||||
java.lang.CharSequence r8 = r7.$input
|
||||
int r9 = r11.start()
|
||||
java.lang.CharSequence r5 = r8.subSequence(r5, r9)
|
||||
java.lang.String r5 = r5.toString()
|
||||
r8 = r7
|
||||
kotlin.coroutines.Continuation r8 = (kotlin.coroutines.Continuation) r8
|
||||
r7.L$0 = r6
|
||||
r7.L$1 = r11
|
||||
r7.I$0 = r1
|
||||
r7.label = r3
|
||||
java.lang.Object r5 = r6.yield(r5, r8)
|
||||
if (r5 != r0) goto L76
|
||||
return r0
|
||||
L76:
|
||||
int r5 = r11.end()
|
||||
int r1 = r1 + r4
|
||||
int r8 = r7.$limit
|
||||
int r8 = r8 - r4
|
||||
if (r1 == r8) goto L86
|
||||
boolean r8 = r11.find()
|
||||
if (r8 != 0) goto L56
|
||||
L86:
|
||||
java.lang.CharSequence r11 = r7.$input
|
||||
int r1 = r11.length()
|
||||
java.lang.CharSequence r11 = r11.subSequence(r5, r1)
|
||||
java.lang.String r11 = r11.toString()
|
||||
r1 = r7
|
||||
kotlin.coroutines.Continuation r1 = (kotlin.coroutines.Continuation) r1
|
||||
r3 = 0
|
||||
r7.L$0 = r3
|
||||
r7.L$1 = r3
|
||||
r7.label = r2
|
||||
java.lang.Object r11 = r6.yield(r11, r1)
|
||||
if (r11 != r0) goto La5
|
||||
return r0
|
||||
La5:
|
||||
kotlin.Unit r11 = kotlin.Unit.INSTANCE
|
||||
return r11
|
||||
La8:
|
||||
java.lang.CharSequence r1 = r10.$input
|
||||
java.lang.String r1 = r1.toString()
|
||||
r2 = r10
|
||||
kotlin.coroutines.Continuation r2 = (kotlin.coroutines.Continuation) r2
|
||||
r10.label = r4
|
||||
java.lang.Object r11 = r11.yield(r1, r2)
|
||||
if (r11 != r0) goto Lba
|
||||
return r0
|
||||
Lba:
|
||||
kotlin.Unit r11 = kotlin.Unit.INSTANCE
|
||||
return r11
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.Regex$splitToSequence$1.invokeSuspend(java.lang.Object):java.lang.Object");
|
||||
}
|
||||
}
|
377
02-Easy5/E5/sources/kotlin/text/Regex.java
Normal file
377
02-Easy5/E5/sources/kotlin/text/Regex.java
Normal file
@ -0,0 +1,377 @@
|
||||
package kotlin.text;
|
||||
|
||||
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.Metadata;
|
||||
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.ranges.RangesKt;
|
||||
import kotlin.sequences.Sequence;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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", "index", "matchEntire", "matches", "matchesAt", "replace", "transform", "Lkotlin/Function1;", "replacement", "replaceFirst", "split", "", "limit", "splitToSequence", "toPattern", "toString", "writeReplace", "", "Companion", "Serialized", "kotlin-stdlib"}, k = 1, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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;
|
||||
|
||||
/* renamed from: toPattern, reason: from getter */
|
||||
public final Pattern getNativePattern() {
|
||||
return this.nativePattern;
|
||||
}
|
||||
|
||||
public Regex(Pattern nativePattern) {
|
||||
Intrinsics.checkNotNullParameter(nativePattern, "nativePattern");
|
||||
this.nativePattern = nativePattern;
|
||||
}
|
||||
|
||||
/* 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(pattern)"
|
||||
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(pattern, ensureUnicodeCase(option.value))"
|
||||
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
|
||||
java.lang.Iterable r3 = (java.lang.Iterable) r3
|
||||
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(pattern, ensureU…odeCase(options.toInt()))"
|
||||
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");
|
||||
}
|
||||
|
||||
public final String getPattern() {
|
||||
String pattern = this.nativePattern.pattern();
|
||||
Intrinsics.checkNotNullExpressionValue(pattern, "nativePattern.pattern()");
|
||||
return pattern;
|
||||
}
|
||||
|
||||
public final Set<RegexOption> getOptions() {
|
||||
Set set = this._options;
|
||||
if (set != null) {
|
||||
return set;
|
||||
}
|
||||
final int flags = this.nativePattern.flags();
|
||||
EnumSet fromInt$lambda$1 = EnumSet.allOf(RegexOption.class);
|
||||
Intrinsics.checkNotNullExpressionValue(fromInt$lambda$1, "fromInt$lambda$1");
|
||||
CollectionsKt.retainAll(fromInt$lambda$1, 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(fromInt$lambda$1);
|
||||
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(EnumSet.…mask == it.value }\n })");
|
||||
this._options = unmodifiableSet;
|
||||
return unmodifiableSet;
|
||||
}
|
||||
|
||||
public final boolean matches(CharSequence input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
return this.nativePattern.matcher(input).matches();
|
||||
}
|
||||
|
||||
public final boolean containsMatchIn(CharSequence input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
return this.nativePattern.matcher(input).find();
|
||||
}
|
||||
|
||||
public static /* synthetic */ MatchResult find$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
|
||||
if ((i2 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.find(charSequence, i);
|
||||
}
|
||||
|
||||
public final MatchResult find(CharSequence input, int startIndex) {
|
||||
MatchResult findNext;
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Matcher matcher = this.nativePattern.matcher(input);
|
||||
Intrinsics.checkNotNullExpressionValue(matcher, "nativePattern.matcher(input)");
|
||||
findNext = RegexKt.findNext(matcher, startIndex, input);
|
||||
return findNext;
|
||||
}
|
||||
|
||||
public static /* synthetic */ Sequence findAll$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
|
||||
if ((i2 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.findAll(charSequence, i);
|
||||
}
|
||||
|
||||
public final Sequence<MatchResult> findAll(final CharSequence input, final int startIndex) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
if (startIndex < 0 || startIndex > input.length()) {
|
||||
throw new IndexOutOfBoundsException("Start index out of bounds: " + startIndex + ", input length: " + 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);
|
||||
}
|
||||
|
||||
public final MatchResult matchEntire(CharSequence input) {
|
||||
MatchResult matchEntire;
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Matcher matcher = this.nativePattern.matcher(input);
|
||||
Intrinsics.checkNotNullExpressionValue(matcher, "nativePattern.matcher(input)");
|
||||
matchEntire = RegexKt.matchEntire(matcher, input);
|
||||
return matchEntire;
|
||||
}
|
||||
|
||||
public final MatchResult matchAt(CharSequence input, int index) {
|
||||
MatcherMatchResult matcherMatchResult;
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
Matcher region = this.nativePattern.matcher(input).useAnchoringBounds(false).useTransparentBounds(true).region(index, input.length());
|
||||
if (region.lookingAt()) {
|
||||
Intrinsics.checkNotNullExpressionValue(region, "this");
|
||||
matcherMatchResult = new MatcherMatchResult(region, input);
|
||||
} else {
|
||||
matcherMatchResult = null;
|
||||
}
|
||||
return matcherMatchResult;
|
||||
}
|
||||
|
||||
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, "nativePattern.matcher(in…).replaceAll(replacement)");
|
||||
return replaceAll;
|
||||
}
|
||||
|
||||
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, "sb.toString()");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
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, "nativePattern.matcher(in…replaceFirst(replacement)");
|
||||
return replaceFirst;
|
||||
}
|
||||
|
||||
public static /* synthetic */ List split$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
|
||||
if ((i2 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.split(charSequence, i);
|
||||
}
|
||||
|
||||
public final List<String> split(CharSequence input, int limit) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
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 i2 = 0;
|
||||
do {
|
||||
arrayList.add(input.subSequence(i2, matcher.start()).toString());
|
||||
i2 = matcher.end();
|
||||
if (i >= 0 && arrayList.size() == i) {
|
||||
break;
|
||||
}
|
||||
} while (matcher.find());
|
||||
arrayList.add(input.subSequence(i2, input.length()).toString());
|
||||
return arrayList;
|
||||
}
|
||||
|
||||
public static /* synthetic */ Sequence splitToSequence$default(Regex regex, CharSequence charSequence, int i, int i2, Object obj) {
|
||||
if ((i2 & 2) != 0) {
|
||||
i = 0;
|
||||
}
|
||||
return regex.splitToSequence(charSequence, i);
|
||||
}
|
||||
|
||||
public final Sequence<String> splitToSequence(CharSequence input, int limit) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
StringsKt.requireNonNegativeLimit(limit);
|
||||
return SequencesKt.sequence(new Regex$splitToSequence$1(this, input, limit, null));
|
||||
}
|
||||
|
||||
public String toString() {
|
||||
String pattern = this.nativePattern.toString();
|
||||
Intrinsics.checkNotNullExpressionValue(pattern, "nativePattern.toString()");
|
||||
return pattern;
|
||||
}
|
||||
|
||||
private final Object writeReplace() {
|
||||
String pattern = this.nativePattern.pattern();
|
||||
Intrinsics.checkNotNullExpressionValue(pattern, "nativePattern.pattern()");
|
||||
return new Serialized(pattern, this.nativePattern.flags());
|
||||
}
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
private static final class Serialized implements Serializable {
|
||||
private static final long serialVersionUID = 0;
|
||||
private final int flags;
|
||||
private final String pattern;
|
||||
|
||||
public final int getFlags() {
|
||||
return this.flags;
|
||||
}
|
||||
|
||||
public final String getPattern() {
|
||||
return this.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(pattern, flags)");
|
||||
return new Regex(compile);
|
||||
}
|
||||
}
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
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;
|
||||
}
|
||||
|
||||
private Companion() {
|
||||
}
|
||||
|
||||
public final Regex fromLiteral(String literal) {
|
||||
Intrinsics.checkNotNullParameter(literal, "literal");
|
||||
return new Regex(literal, RegexOption.LITERAL);
|
||||
}
|
||||
|
||||
public final String escape(String literal) {
|
||||
Intrinsics.checkNotNullParameter(literal, "literal");
|
||||
String quote = Pattern.quote(literal);
|
||||
Intrinsics.checkNotNullExpressionValue(quote, "quote(literal)");
|
||||
return quote;
|
||||
}
|
||||
|
||||
public final String escapeReplacement(String literal) {
|
||||
Intrinsics.checkNotNullParameter(literal, "literal");
|
||||
String quoteReplacement = Matcher.quoteReplacement(literal);
|
||||
Intrinsics.checkNotNullExpressionValue(quoteReplacement, "quoteReplacement(literal)");
|
||||
return quoteReplacement;
|
||||
}
|
||||
}
|
||||
}
|
79
02-Easy5/E5/sources/kotlin/text/RegexKt.java
Normal file
79
02-Easy5/E5/sources/kotlin/text/RegexKt.java
Normal file
@ -0,0 +1,79 @@
|
||||
package kotlin.text;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
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;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
import kotlin.ranges.RangesKt;
|
||||
|
||||
/* compiled from: Regex.kt */
|
||||
@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;", TypedValues.TransitionType.S_FROM, "input", "", "matchEntire", "range", "Lkotlin/ranges/IntRange;", "Ljava/util/regex/MatchResult;", "groupIndex", "toInt", "", "kotlin-stdlib"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class RegexKt {
|
||||
private static final /* synthetic */ <T extends Enum<T> & FlagEnum> Set<T> fromInt(final int i) {
|
||||
Intrinsics.reifiedOperationMarker(4, "T");
|
||||
EnumSet fromInt$lambda$1 = EnumSet.allOf(Enum.class);
|
||||
Intrinsics.checkNotNullExpressionValue(fromInt$lambda$1, "fromInt$lambda$1");
|
||||
Intrinsics.needClassReification();
|
||||
CollectionsKt.retainAll(fromInt$lambda$1, 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 r3) {
|
||||
FlagEnum flagEnum = (FlagEnum) r3;
|
||||
return Boolean.valueOf((i & flagEnum.getMask()) == flagEnum.getValue());
|
||||
}
|
||||
});
|
||||
Set<T> unmodifiableSet = Collections.unmodifiableSet(fromInt$lambda$1);
|
||||
Intrinsics.checkNotNullExpressionValue(unmodifiableSet, "unmodifiableSet(EnumSet.…mask == it.value }\n })");
|
||||
return unmodifiableSet;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final MatchResult findNext(Matcher matcher, int i, CharSequence charSequence) {
|
||||
if (matcher.find(i)) {
|
||||
return new MatcherMatchResult(matcher, charSequence);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final MatchResult matchEntire(Matcher matcher, CharSequence charSequence) {
|
||||
if (matcher.matches()) {
|
||||
return new MatcherMatchResult(matcher, charSequence);
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final IntRange range(java.util.regex.MatchResult matchResult) {
|
||||
return RangesKt.until(matchResult.start(), matchResult.end());
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
public static final IntRange range(java.util.regex.MatchResult matchResult, int i) {
|
||||
return RangesKt.until(matchResult.start(i), matchResult.end(i));
|
||||
}
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: private */
|
||||
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;
|
||||
}
|
||||
}
|
81
02-Easy5/E5/sources/kotlin/text/RegexOption.java
Normal file
81
02-Easy5/E5/sources/kotlin/text/RegexOption.java
Normal file
@ -0,0 +1,81 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.DefaultConstructorMarker;
|
||||
|
||||
/* JADX WARN: Enum visitor error
|
||||
jadx.core.utils.exceptions.JadxRuntimeException: Init of enum field 'IGNORE_CASE' uses external variables
|
||||
at jadx.core.dex.visitors.EnumVisitor.createEnumFieldByConstructor(EnumVisitor.java:451)
|
||||
at jadx.core.dex.visitors.EnumVisitor.processEnumFieldByField(EnumVisitor.java:372)
|
||||
at jadx.core.dex.visitors.EnumVisitor.processEnumFieldByWrappedInsn(EnumVisitor.java:337)
|
||||
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromFilledArray(EnumVisitor.java:322)
|
||||
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromInsn(EnumVisitor.java:262)
|
||||
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromInvoke(EnumVisitor.java:293)
|
||||
at jadx.core.dex.visitors.EnumVisitor.extractEnumFieldsFromInsn(EnumVisitor.java:266)
|
||||
at jadx.core.dex.visitors.EnumVisitor.convertToEnum(EnumVisitor.java:151)
|
||||
at jadx.core.dex.visitors.EnumVisitor.visit(EnumVisitor.java:100)
|
||||
*/
|
||||
/* JADX WARN: Failed to restore enum class, 'enum' modifier and super class removed */
|
||||
/* compiled from: Regex.kt */
|
||||
@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\u0001\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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class RegexOption implements FlagEnum {
|
||||
private static final /* synthetic */ RegexOption[] $VALUES = $values();
|
||||
public static final RegexOption CANON_EQ;
|
||||
public static final RegexOption COMMENTS;
|
||||
public static final RegexOption DOT_MATCHES_ALL;
|
||||
public static final RegexOption IGNORE_CASE;
|
||||
public static final RegexOption LITERAL;
|
||||
public static final RegexOption MULTILINE;
|
||||
public static final RegexOption UNIX_LINES;
|
||||
private final int mask;
|
||||
private final int value;
|
||||
|
||||
private static final /* synthetic */ RegexOption[] $values() {
|
||||
return new RegexOption[]{IGNORE_CASE, MULTILINE, LITERAL, UNIX_LINES, COMMENTS, DOT_MATCHES_ALL, CANON_EQ};
|
||||
}
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
private RegexOption(String str, int i, int i2, int i3) {
|
||||
this.value = i2;
|
||||
this.mask = i3;
|
||||
}
|
||||
|
||||
/* synthetic */ RegexOption(String str, int i, int i2, int i3, int i4, DefaultConstructorMarker defaultConstructorMarker) {
|
||||
this(str, i, i2, (i4 & 2) != 0 ? i2 : i3);
|
||||
}
|
||||
|
||||
static {
|
||||
int i = 2;
|
||||
IGNORE_CASE = new RegexOption("IGNORE_CASE", 0, i, 0, 2, null);
|
||||
int i2 = 0;
|
||||
int i3 = 2;
|
||||
DefaultConstructorMarker defaultConstructorMarker = null;
|
||||
MULTILINE = new RegexOption("MULTILINE", 1, 8, i2, i3, defaultConstructorMarker);
|
||||
int i4 = 0;
|
||||
int i5 = 2;
|
||||
DefaultConstructorMarker defaultConstructorMarker2 = null;
|
||||
LITERAL = new RegexOption("LITERAL", i, 16, i4, i5, defaultConstructorMarker2);
|
||||
UNIX_LINES = new RegexOption("UNIX_LINES", 3, 1, i2, i3, defaultConstructorMarker);
|
||||
COMMENTS = new RegexOption("COMMENTS", 4, 4, i4, i5, defaultConstructorMarker2);
|
||||
DOT_MATCHES_ALL = new RegexOption("DOT_MATCHES_ALL", 5, 32, i2, i3, defaultConstructorMarker);
|
||||
CANON_EQ = new RegexOption("CANON_EQ", 6, 128, i4, i5, defaultConstructorMarker2);
|
||||
}
|
||||
}
|
14
02-Easy5/E5/sources/kotlin/text/ScreenFloatValueRegEx.java
Normal file
14
02-Easy5/E5/sources/kotlin/text/ScreenFloatValueRegEx.java
Normal file
@ -0,0 +1,14 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: StringNumberConversionsJVM.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class ScreenFloatValueRegEx {
|
||||
public static final ScreenFloatValueRegEx INSTANCE = new ScreenFloatValueRegEx();
|
||||
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() {
|
||||
}
|
||||
}
|
10
02-Easy5/E5/sources/kotlin/text/StringsKt.java
Normal file
10
02-Easy5/E5/sources/kotlin/text/StringsKt.java
Normal file
@ -0,0 +1,10 @@
|
||||
package kotlin.text;
|
||||
|
||||
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, 8, 0}, xi = 49)
|
||||
/* loaded from: classes.dex */
|
||||
public final class StringsKt extends StringsKt___StringsKt {
|
||||
private StringsKt() {
|
||||
}
|
||||
}
|
69
02-Easy5/E5/sources/kotlin/text/StringsKt__AppendableKt.java
Normal file
69
02-Easy5/E5/sources/kotlin/text/StringsKt__AppendableKt.java
Normal file
@ -0,0 +1,69 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: Appendable.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class StringsKt__AppendableKt {
|
||||
public static final <T extends Appendable> T appendRange(T t, CharSequence value, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(t, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
T t2 = (T) t.append(value, i, i2);
|
||||
Intrinsics.checkNotNull(t2, "null cannot be cast to non-null type T of kotlin.text.StringsKt__AppendableKt.appendRange");
|
||||
return t2;
|
||||
}
|
||||
|
||||
public static final <T extends Appendable> T append(T t, CharSequence... value) {
|
||||
Intrinsics.checkNotNullParameter(t, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
for (CharSequence charSequence : value) {
|
||||
t.append(charSequence);
|
||||
}
|
||||
return t;
|
||||
}
|
||||
|
||||
private static final Appendable appendLine(Appendable appendable) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append('\\n')");
|
||||
return append;
|
||||
}
|
||||
|
||||
private static final Appendable appendLine(Appendable appendable, CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append(charSequence);
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append(value)");
|
||||
Appendable append2 = append.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append2, "append('\\n')");
|
||||
return append2;
|
||||
}
|
||||
|
||||
private static final Appendable appendLine(Appendable appendable, char c) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
Appendable append = appendable.append(c);
|
||||
Intrinsics.checkNotNullExpressionValue(append, "append(value)");
|
||||
Appendable append2 = append.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(append2, "append('\\n')");
|
||||
return append2;
|
||||
}
|
||||
|
||||
/* JADX WARN: Multi-variable type inference failed */
|
||||
public static final <T> void appendElement(Appendable appendable, T t, Function1<? super T, ? extends CharSequence> function1) {
|
||||
Intrinsics.checkNotNullParameter(appendable, "<this>");
|
||||
if (function1 != null) {
|
||||
appendable.append(function1.invoke(t));
|
||||
return;
|
||||
}
|
||||
if (t == 0 || (t instanceof CharSequence)) {
|
||||
appendable.append((CharSequence) t);
|
||||
} else if (t instanceof Character) {
|
||||
appendable.append(((Character) t).charValue());
|
||||
} else {
|
||||
appendable.append(String.valueOf(t));
|
||||
}
|
||||
}
|
||||
}
|
260
02-Easy5/E5/sources/kotlin/text/StringsKt__IndentKt.java
Normal file
260
02-Easy5/E5/sources/kotlin/text/StringsKt__IndentKt.java
Normal file
@ -0,0 +1,260 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.collections.CollectionsKt;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.sequences.SequencesKt;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: Indent.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class StringsKt__IndentKt extends StringsKt__AppendableKt {
|
||||
public static /* synthetic */ String trimMargin$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = "|";
|
||||
}
|
||||
return StringsKt.trimMargin(str, str2);
|
||||
}
|
||||
|
||||
public static final String trimMargin(String str, String marginPrefix) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(marginPrefix, "marginPrefix");
|
||||
return StringsKt.replaceIndentByMargin(str, "", marginPrefix);
|
||||
}
|
||||
|
||||
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 StringsKt.replaceIndentByMargin(str, str2, str3);
|
||||
}
|
||||
|
||||
public static final String replaceIndentByMargin(String str, String newIndent, String marginPrefix) {
|
||||
Appendable joinTo;
|
||||
int i;
|
||||
String invoke;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(newIndent, "newIndent");
|
||||
Intrinsics.checkNotNullParameter(marginPrefix, "marginPrefix");
|
||||
if (!(!StringsKt.isBlank(marginPrefix))) {
|
||||
throw new IllegalArgumentException("marginPrefix must be non-blank string.".toString());
|
||||
}
|
||||
List<String> lines = StringsKt.lines(str);
|
||||
int length = str.length() + (newIndent.length() * lines.size());
|
||||
Function1<String, String> indentFunction$StringsKt__IndentKt = getIndentFunction$StringsKt__IndentKt(newIndent);
|
||||
int lastIndex = CollectionsKt.getLastIndex(lines);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i2 = 0;
|
||||
for (Object obj : lines) {
|
||||
int i3 = i2 + 1;
|
||||
if (i2 < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str2 = (String) obj;
|
||||
String str3 = null;
|
||||
if ((i2 == 0 || i2 == lastIndex) && StringsKt.isBlank(str2)) {
|
||||
str2 = null;
|
||||
} else {
|
||||
int length2 = str2.length();
|
||||
int i4 = 0;
|
||||
while (true) {
|
||||
if (i4 >= length2) {
|
||||
i = -1;
|
||||
break;
|
||||
}
|
||||
if (!CharsKt.isWhitespace(r0.charAt(i4))) {
|
||||
i = i4;
|
||||
break;
|
||||
}
|
||||
i4++;
|
||||
}
|
||||
if (i != -1) {
|
||||
int i5 = i;
|
||||
if (StringsKt.startsWith$default(str2, marginPrefix, i, false, 4, (Object) null)) {
|
||||
int length3 = i5 + marginPrefix.length();
|
||||
Intrinsics.checkNotNull(str2, "null cannot be cast to non-null type java.lang.String");
|
||||
str3 = str2.substring(length3);
|
||||
Intrinsics.checkNotNullExpressionValue(str3, "this as java.lang.String).substring(startIndex)");
|
||||
}
|
||||
}
|
||||
if (str3 != null && (invoke = indentFunction$StringsKt__IndentKt.invoke(str3)) != null) {
|
||||
str2 = invoke;
|
||||
}
|
||||
}
|
||||
if (str2 != null) {
|
||||
arrayList.add(str2);
|
||||
}
|
||||
i2 = i3;
|
||||
}
|
||||
joinTo = CollectionsKt.joinTo(arrayList, new StringBuilder(length), (r14 & 2) != 0 ? ", " : "\n", (r14 & 4) != 0 ? "" : null, (r14 & 8) != 0 ? "" : null, (r14 & 16) != 0 ? -1 : 0, (r14 & 32) != 0 ? "..." : null, (r14 & 64) != 0 ? null : null);
|
||||
String sb = ((StringBuilder) joinTo).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "mapIndexedNotNull { inde…\"\\n\")\n .toString()");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static final String trimIndent(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.replaceIndent(str, "");
|
||||
}
|
||||
|
||||
public static /* synthetic */ String replaceIndent$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = "";
|
||||
}
|
||||
return StringsKt.replaceIndent(str, str2);
|
||||
}
|
||||
|
||||
public static final String replaceIndent(String str, String newIndent) {
|
||||
Appendable joinTo;
|
||||
String invoke;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(newIndent, "newIndent");
|
||||
List<String> lines = StringsKt.lines(str);
|
||||
List<String> list = lines;
|
||||
ArrayList arrayList = new ArrayList();
|
||||
for (Object obj : list) {
|
||||
if (!StringsKt.isBlank((String) obj)) {
|
||||
arrayList.add(obj);
|
||||
}
|
||||
}
|
||||
ArrayList arrayList2 = arrayList;
|
||||
ArrayList arrayList3 = new ArrayList(CollectionsKt.collectionSizeOrDefault(arrayList2, 10));
|
||||
Iterator it = arrayList2.iterator();
|
||||
while (it.hasNext()) {
|
||||
arrayList3.add(Integer.valueOf(indentWidth$StringsKt__IndentKt((String) it.next())));
|
||||
}
|
||||
Integer num = (Integer) CollectionsKt.minOrNull((Iterable) arrayList3);
|
||||
int i = 0;
|
||||
int intValue = num != null ? num.intValue() : 0;
|
||||
int length = str.length() + (newIndent.length() * lines.size());
|
||||
Function1<String, String> indentFunction$StringsKt__IndentKt = getIndentFunction$StringsKt__IndentKt(newIndent);
|
||||
int lastIndex = CollectionsKt.getLastIndex(lines);
|
||||
ArrayList arrayList4 = new ArrayList();
|
||||
for (Object obj2 : list) {
|
||||
int i2 = i + 1;
|
||||
if (i < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str2 = (String) obj2;
|
||||
if ((i == 0 || i == lastIndex) && StringsKt.isBlank(str2)) {
|
||||
str2 = null;
|
||||
} else {
|
||||
String drop = StringsKt.drop(str2, intValue);
|
||||
if (drop != null && (invoke = indentFunction$StringsKt__IndentKt.invoke(drop)) != null) {
|
||||
str2 = invoke;
|
||||
}
|
||||
}
|
||||
if (str2 != null) {
|
||||
arrayList4.add(str2);
|
||||
}
|
||||
i = i2;
|
||||
}
|
||||
joinTo = CollectionsKt.joinTo(arrayList4, new StringBuilder(length), (r14 & 2) != 0 ? ", " : "\n", (r14 & 4) != 0 ? "" : null, (r14 & 8) != 0 ? "" : null, (r14 & 16) != 0 ? -1 : 0, (r14 & 32) != 0 ? "..." : null, (r14 & 64) != 0 ? null : null);
|
||||
String sb = ((StringBuilder) joinTo).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "mapIndexedNotNull { inde…\"\\n\")\n .toString()");
|
||||
return sb;
|
||||
}
|
||||
|
||||
public static /* synthetic */ String prependIndent$default(String str, String str2, int i, Object obj) {
|
||||
if ((i & 1) != 0) {
|
||||
str2 = " ";
|
||||
}
|
||||
return StringsKt.prependIndent(str, str2);
|
||||
}
|
||||
|
||||
public static final String prependIndent(String str, final String indent) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(indent, "indent");
|
||||
return SequencesKt.joinToString$default(SequencesKt.map(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.isBlank(it)) {
|
||||
return it.length() < indent.length() ? indent : it;
|
||||
}
|
||||
return indent + it;
|
||||
}
|
||||
}), "\n", null, null, 0, null, null, 62, null);
|
||||
}
|
||||
|
||||
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.isWhitespace(r0.charAt(i))) {
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
return i == -1 ? str.length() : i;
|
||||
}
|
||||
|
||||
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 str + line;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private static final String reindent$StringsKt__IndentKt(List<String> list, int i, Function1<? super String, String> function1, Function1<? super String, String> function12) {
|
||||
Appendable joinTo;
|
||||
String invoke;
|
||||
int lastIndex = CollectionsKt.getLastIndex(list);
|
||||
ArrayList arrayList = new ArrayList();
|
||||
int i2 = 0;
|
||||
for (Object obj : list) {
|
||||
int i3 = i2 + 1;
|
||||
if (i2 < 0) {
|
||||
CollectionsKt.throwIndexOverflow();
|
||||
}
|
||||
String str = (String) obj;
|
||||
if ((i2 == 0 || i2 == lastIndex) && StringsKt.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);
|
||||
}
|
||||
i2 = i3;
|
||||
}
|
||||
joinTo = CollectionsKt.joinTo(arrayList, new StringBuilder(i), (r14 & 2) != 0 ? ", " : "\n", (r14 & 4) != 0 ? "" : null, (r14 & 8) != 0 ? "" : null, (r14 & 16) != 0 ? -1 : 0, (r14 & 32) != 0 ? "..." : null, (r14 & 64) != 0 ? null : null);
|
||||
String sb = ((StringBuilder) joinTo).toString();
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "mapIndexedNotNull { inde…\"\\n\")\n .toString()");
|
||||
return sb;
|
||||
}
|
||||
}
|
@ -0,0 +1,15 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.regex.Pattern;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: RegexExtensionsJVM.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class StringsKt__RegexExtensionsJVMKt extends StringsKt__IndentKt {
|
||||
private static final Regex toRegex(Pattern pattern) {
|
||||
Intrinsics.checkNotNullParameter(pattern, "<this>");
|
||||
return new Regex(pattern);
|
||||
}
|
||||
}
|
@ -0,0 +1,27 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Set;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: RegexExtensions.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class StringsKt__RegexExtensionsKt extends StringsKt__RegexExtensionsJVMKt {
|
||||
private static final Regex toRegex(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new Regex(str);
|
||||
}
|
||||
|
||||
private static final Regex toRegex(String str, RegexOption option) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(option, "option");
|
||||
return new Regex(str, option);
|
||||
}
|
||||
|
||||
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
129
02-Easy5/E5/sources/kotlin/text/StringsKt__StringBuilderKt.java
Normal file
129
02-Easy5/E5/sources/kotlin/text/StringsKt__StringBuilderKt.java
Normal file
@ -0,0 +1,129 @@
|
||||
package kotlin.text;
|
||||
|
||||
import androidx.constraintlayout.core.motion.utils.TypedValues;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecationLevel;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.NotImplementedError;
|
||||
import kotlin.ReplaceWith;
|
||||
import kotlin.Unit;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: StringBuilder.kt */
|
||||
@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", "", TypedValues.CycleType.S_WAVE_OFFSET, "len", "appendLine", "", "", "", "kotlin-stdlib"}, k = 5, mv = {1, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class StringsKt__StringBuilderKt extends StringsKt__StringBuilderJVMKt {
|
||||
@Deprecated(level = DeprecationLevel.WARNING, message = "Use append(value: Any?) instead", replaceWith = @ReplaceWith(expression = "append(value = obj)", imports = {}))
|
||||
private static final StringBuilder append(StringBuilder sb, Object obj) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(obj);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "this.append(obj)");
|
||||
return sb;
|
||||
}
|
||||
|
||||
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, "StringBuilder().apply(builderAction).toString()");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
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, "StringBuilder(capacity).…builderAction).toString()");
|
||||
return sb2;
|
||||
}
|
||||
|
||||
public static final StringBuilder append(StringBuilder sb, String... value) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
for (String str : value) {
|
||||
sb.append(str);
|
||||
}
|
||||
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;
|
||||
}
|
||||
|
||||
@Deprecated(level = DeprecationLevel.ERROR, message = "Use appendRange instead.", replaceWith = @ReplaceWith(expression = "this.appendRange(str, offset, offset + len)", imports = {}))
|
||||
private static final StringBuilder append(StringBuilder sb, char[] str, int i, int i2) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(str, "str");
|
||||
throw new NotImplementedError(null, 1, null);
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(charSequence);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, String str) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(str);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, Object obj) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(obj);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, char[] value) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
Intrinsics.checkNotNullParameter(value, "value");
|
||||
sb.append(value);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, char c) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(c);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
|
||||
private static final StringBuilder appendLine(StringBuilder sb, boolean z) {
|
||||
Intrinsics.checkNotNullParameter(sb, "<this>");
|
||||
sb.append(z);
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append(value)");
|
||||
sb.append('\n');
|
||||
Intrinsics.checkNotNullExpressionValue(sb, "append('\\n')");
|
||||
return sb;
|
||||
}
|
||||
}
|
@ -0,0 +1,207 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.math.BigDecimal;
|
||||
import java.math.BigInteger;
|
||||
import java.math.MathContext;
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: StringNumberConversionsJVM.kt */
|
||||
@Metadata(d1 = {"\u0000Z\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\u0002\b\u0002\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\r\u0010\u0012\u001a\u00020\u0013*\u00020\u0003H\u0087\b\u001a\u0014\u0010\u0012\u001a\u00020\u0013*\u0004\u0018\u00010\u0003H\u0087\b¢\u0006\u0002\b\u0014\u001a\r\u0010\u0015\u001a\u00020\u0016*\u00020\u0003H\u0087\b\u001a\u0015\u0010\u0015\u001a\u00020\u0016*\u00020\u00032\u0006\u0010\u000f\u001a\u00020\u0010H\u0087\b\u001a\r\u0010\u0017\u001a\u00020\u0018*\u00020\u0003H\u0087\b\u001a\u0013\u0010\u0019\u001a\u0004\u0018\u00010\u0018*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u001a\u001a\r\u0010\u001b\u001a\u00020\u001c*\u00020\u0003H\u0087\b\u001a\u0013\u0010\u001d\u001a\u0004\u0018\u00010\u001c*\u00020\u0003H\u0007¢\u0006\u0002\u0010\u001e\u001a\r\u0010\u001f\u001a\u00020\u0010*\u00020\u0003H\u0087\b\u001a\u0015\u0010\u001f\u001a\u00020\u0010*\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\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\u00162\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", "", "toBooleanNullable", "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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class StringsKt__StringNumberConversionsJVMKt extends StringsKt__StringBuilderKt {
|
||||
private static final String toString(byte b, int i) {
|
||||
String num = Integer.toString(b, CharsKt.checkRadix(CharsKt.checkRadix(i)));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
|
||||
return num;
|
||||
}
|
||||
|
||||
private static final String toString(short s, int i) {
|
||||
String num = Integer.toString(s, CharsKt.checkRadix(CharsKt.checkRadix(i)));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
|
||||
return num;
|
||||
}
|
||||
|
||||
private static final String toString(int i, int i2) {
|
||||
String num = Integer.toString(i, CharsKt.checkRadix(i2));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
|
||||
return num;
|
||||
}
|
||||
|
||||
private static final String toString(long j, int i) {
|
||||
String l = Long.toString(j, CharsKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(l, "toString(this, checkRadix(radix))");
|
||||
return l;
|
||||
}
|
||||
|
||||
@Deprecated(message = "Use Kotlin compiler 1.4 to avoid deprecation warning.")
|
||||
@DeprecatedSinceKotlin(hiddenSince = "1.4")
|
||||
private static final /* synthetic */ boolean toBoolean(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Boolean.parseBoolean(str);
|
||||
}
|
||||
|
||||
private static final boolean toBooleanNullable(String str) {
|
||||
return Boolean.parseBoolean(str);
|
||||
}
|
||||
|
||||
private static final byte toByte(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Byte.parseByte(str);
|
||||
}
|
||||
|
||||
private static final byte toByte(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Byte.parseByte(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
private static final short toShort(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Short.parseShort(str);
|
||||
}
|
||||
|
||||
private static final short toShort(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Short.parseShort(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
private static final int toInt(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Integer.parseInt(str);
|
||||
}
|
||||
|
||||
private static final int toInt(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Integer.parseInt(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
private static final long toLong(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Long.parseLong(str);
|
||||
}
|
||||
|
||||
private static final long toLong(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Long.parseLong(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
private static final float toFloat(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Float.parseFloat(str);
|
||||
}
|
||||
|
||||
private static final double toDouble(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return Double.parseDouble(str);
|
||||
}
|
||||
|
||||
private static final BigInteger toBigInteger(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigInteger(str);
|
||||
}
|
||||
|
||||
private static final BigInteger toBigInteger(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigInteger(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
public static final BigInteger toBigIntegerOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.toBigIntegerOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final BigInteger toBigIntegerOrNull(String str, int i) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
if (length == 1) {
|
||||
if (CharsKt.digitOf(str.charAt(0), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
for (int i2 = str.charAt(0) == '-' ? 1 : 0; i2 < length; i2++) {
|
||||
if (CharsKt.digitOf(str.charAt(i2), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
||||
return new BigInteger(str, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
private static final BigDecimal toBigDecimal(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return new BigDecimal(str);
|
||||
}
|
||||
|
||||
private static final BigDecimal toBigDecimal(String str, MathContext mathContext) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Intrinsics.checkNotNullParameter(mathContext, "mathContext");
|
||||
return new BigDecimal(str, mathContext);
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
return null;
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static final Float toFloatOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return Float.valueOf(Float.parseFloat(str));
|
||||
}
|
||||
return null;
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static final Double toDoubleOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return Double.valueOf(Double.parseDouble(str));
|
||||
}
|
||||
return null;
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
public static final BigDecimal toBigDecimalOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
try {
|
||||
if (ScreenFloatValueRegEx.value.matches(str)) {
|
||||
return new BigDecimal(str);
|
||||
}
|
||||
return null;
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
return null;
|
||||
} catch (NumberFormatException unused) {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,191 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* JADX INFO: Access modifiers changed from: package-private */
|
||||
/* compiled from: StringNumberConversions.kt */
|
||||
@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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
public class StringsKt__StringNumberConversionsKt extends StringsKt__StringNumberConversionsJVMKt {
|
||||
public static final Byte toByteOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.toByteOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final Byte toByteOrNull(String str, int i) {
|
||||
int intValue;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Integer intOrNull = StringsKt.toIntOrNull(str, i);
|
||||
if (intOrNull == null || (intValue = intOrNull.intValue()) < -128 || intValue > 127) {
|
||||
return null;
|
||||
}
|
||||
return Byte.valueOf((byte) intValue);
|
||||
}
|
||||
|
||||
public static final Short toShortOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.toShortOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final Short toShortOrNull(String str, int i) {
|
||||
int intValue;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
Integer intOrNull = StringsKt.toIntOrNull(str, i);
|
||||
if (intOrNull == null || (intValue = intOrNull.intValue()) < -32768 || intValue > 32767) {
|
||||
return null;
|
||||
}
|
||||
return Short.valueOf((short) intValue);
|
||||
}
|
||||
|
||||
public static final Integer toIntOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.toIntOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final Integer toIntOrNull(String str, int i) {
|
||||
boolean z;
|
||||
int i2;
|
||||
int i3;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i4 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
int i5 = -2147483647;
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i2 = 1;
|
||||
if (length == 1) {
|
||||
return null;
|
||||
}
|
||||
if (charAt == '-') {
|
||||
i5 = Integer.MIN_VALUE;
|
||||
z = true;
|
||||
} else {
|
||||
if (charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
z = false;
|
||||
}
|
||||
} else {
|
||||
z = false;
|
||||
i2 = 0;
|
||||
}
|
||||
int i6 = -59652323;
|
||||
while (i2 < length) {
|
||||
int digitOf = CharsKt.digitOf(str.charAt(i2), i);
|
||||
if (digitOf < 0) {
|
||||
return null;
|
||||
}
|
||||
if ((i4 < i6 && (i6 != -59652323 || i4 < (i6 = i5 / i))) || (i3 = i4 * i) < i5 + digitOf) {
|
||||
return null;
|
||||
}
|
||||
i4 = i3 - digitOf;
|
||||
i2++;
|
||||
}
|
||||
return z ? Integer.valueOf(i4) : Integer.valueOf(-i4);
|
||||
}
|
||||
|
||||
public static final Long toLongOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return StringsKt.toLongOrNull(str, 10);
|
||||
}
|
||||
|
||||
/* JADX WARN: Removed duplicated region for block: B:15:0x0044 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:35:0x0075 */
|
||||
/* JADX WARN: Removed duplicated region for block: B:37:0x007a */
|
||||
/*
|
||||
Code decompiled incorrectly, please refer to instructions dump.
|
||||
To view partially-correct add '--show-bad-code' argument
|
||||
*/
|
||||
public static final java.lang.Long toLongOrNull(java.lang.String r18, int r19) {
|
||||
/*
|
||||
r0 = r18
|
||||
r1 = r19
|
||||
java.lang.String r2 = "<this>"
|
||||
kotlin.jvm.internal.Intrinsics.checkNotNullParameter(r0, r2)
|
||||
kotlin.text.CharsKt.checkRadix(r19)
|
||||
int r2 = r18.length()
|
||||
r3 = 0
|
||||
if (r2 != 0) goto L14
|
||||
return r3
|
||||
L14:
|
||||
r4 = 0
|
||||
char r5 = r0.charAt(r4)
|
||||
r6 = 48
|
||||
int r6 = kotlin.jvm.internal.Intrinsics.compare(r5, r6)
|
||||
r7 = -9223372036854775807(0x8000000000000001, double:-4.9E-324)
|
||||
if (r6 >= 0) goto L39
|
||||
r6 = 1
|
||||
if (r2 != r6) goto L2a
|
||||
return r3
|
||||
L2a:
|
||||
r9 = 45
|
||||
if (r5 != r9) goto L32
|
||||
r7 = -9223372036854775808
|
||||
r4 = 1
|
||||
goto L3a
|
||||
L32:
|
||||
r9 = 43
|
||||
if (r5 != r9) goto L38
|
||||
r4 = 1
|
||||
goto L39
|
||||
L38:
|
||||
return r3
|
||||
L39:
|
||||
r6 = 0
|
||||
L3a:
|
||||
r9 = -256204778801521550(0xfc71c71c71c71c72, double:-2.772000429909333E291)
|
||||
r11 = 0
|
||||
r13 = r9
|
||||
L42:
|
||||
if (r4 >= r2) goto L73
|
||||
char r5 = r0.charAt(r4)
|
||||
int r5 = kotlin.text.CharsKt.digitOf(r5, r1)
|
||||
if (r5 >= 0) goto L4f
|
||||
return r3
|
||||
L4f:
|
||||
int r15 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))
|
||||
if (r15 >= 0) goto L5f
|
||||
int r15 = (r13 > r9 ? 1 : (r13 == r9 ? 0 : -1))
|
||||
if (r15 != 0) goto L5e
|
||||
long r13 = (long) r1
|
||||
long r13 = r7 / r13
|
||||
int r15 = (r11 > r13 ? 1 : (r11 == r13 ? 0 : -1))
|
||||
if (r15 >= 0) goto L5f
|
||||
L5e:
|
||||
return r3
|
||||
L5f:
|
||||
long r9 = (long) r1
|
||||
long r11 = r11 * r9
|
||||
long r9 = (long) r5
|
||||
long r16 = r7 + r9
|
||||
int r5 = (r11 > r16 ? 1 : (r11 == r16 ? 0 : -1))
|
||||
if (r5 >= 0) goto L6a
|
||||
return r3
|
||||
L6a:
|
||||
long r11 = r11 - r9
|
||||
int r4 = r4 + 1
|
||||
r9 = -256204778801521550(0xfc71c71c71c71c72, double:-2.772000429909333E291)
|
||||
goto L42
|
||||
L73:
|
||||
if (r6 == 0) goto L7a
|
||||
java.lang.Long r0 = java.lang.Long.valueOf(r11)
|
||||
goto L7f
|
||||
L7a:
|
||||
long r0 = -r11
|
||||
java.lang.Long r0 = java.lang.Long.valueOf(r0)
|
||||
L7f:
|
||||
return r0
|
||||
*/
|
||||
throw new UnsupportedOperationException("Method not decompiled: kotlin.text.StringsKt__StringNumberConversionsKt.toLongOrNull(java.lang.String, int):java.lang.Long");
|
||||
}
|
||||
|
||||
public static final Void numberFormatError(String input) {
|
||||
Intrinsics.checkNotNullParameter(input, "input");
|
||||
throw new NumberFormatException("Invalid number format: '" + input + '\'');
|
||||
}
|
||||
}
|
829
02-Easy5/E5/sources/kotlin/text/StringsKt__StringsJVMKt.java
Normal file
829
02-Easy5/E5/sources/kotlin/text/StringsKt__StringsJVMKt.java
Normal file
File diff suppressed because one or more lines are too long
1805
02-Easy5/E5/sources/kotlin/text/StringsKt__StringsKt.java
Normal file
1805
02-Easy5/E5/sources/kotlin/text/StringsKt__StringsKt.java
Normal file
File diff suppressed because one or more lines are too long
137
02-Easy5/E5/sources/kotlin/text/StringsKt___StringsJvmKt.java
Normal file
137
02-Easy5/E5/sources/kotlin/text/StringsKt___StringsJvmKt.java
Normal file
@ -0,0 +1,137 @@
|
||||
package kotlin.text;
|
||||
|
||||
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.ReplaceWith;
|
||||
import kotlin.jvm.functions.Function1;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.ranges.IntRange;
|
||||
|
||||
/* compiled from: _StringsJvm.kt */
|
||||
@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", "", "", "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, 8, 0}, xi = 49, xs = "kotlin/text/StringsKt")
|
||||
/* loaded from: classes.dex */
|
||||
class StringsKt___StringsJvmKt extends StringsKt__StringsKt {
|
||||
private static final char elementAt(CharSequence charSequence, int i) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return charSequence.charAt(i);
|
||||
}
|
||||
|
||||
public static final SortedSet<Character> toSortedSet(CharSequence charSequence) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
return (SortedSet) StringsKt.toCollection(charSequence, new TreeSet());
|
||||
}
|
||||
|
||||
@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.maxOrNull(charSequence);
|
||||
}
|
||||
|
||||
@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.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.minOrNull(charSequence);
|
||||
}
|
||||
|
||||
@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.minWithOrNull(charSequence, comparator);
|
||||
}
|
||||
|
||||
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(this.toLong())");
|
||||
for (int i = 0; i < charSequence.length(); i++) {
|
||||
valueOf = valueOf.add(selector.invoke(Character.valueOf(charSequence.charAt(i))));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "this.add(other)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
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(this.toLong())");
|
||||
for (int i = 0; i < charSequence.length(); i++) {
|
||||
valueOf = valueOf.add(selector.invoke(Character.valueOf(charSequence.charAt(i))));
|
||||
Intrinsics.checkNotNullExpressionValue(valueOf, "this.add(other)");
|
||||
}
|
||||
return valueOf;
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
||||
@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> selector) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
if (charSequence.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
char charAt = charSequence.charAt(0);
|
||||
int lastIndex = StringsKt.getLastIndex(charSequence);
|
||||
if (lastIndex == 0) {
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
R invoke = selector.invoke(Character.valueOf(charAt));
|
||||
?? it = new IntRange(1, lastIndex).iterator();
|
||||
while (it.hasNext()) {
|
||||
char charAt2 = charSequence.charAt(it.nextInt());
|
||||
R invoke2 = selector.invoke(Character.valueOf(charAt2));
|
||||
if (invoke.compareTo(invoke2) < 0) {
|
||||
charAt = charAt2;
|
||||
invoke = invoke2;
|
||||
}
|
||||
}
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
|
||||
/* JADX WARN: Type inference failed for: r1v1, types: [kotlin.collections.IntIterator] */
|
||||
@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> selector) {
|
||||
Intrinsics.checkNotNullParameter(charSequence, "<this>");
|
||||
Intrinsics.checkNotNullParameter(selector, "selector");
|
||||
if (charSequence.length() == 0) {
|
||||
return null;
|
||||
}
|
||||
char charAt = charSequence.charAt(0);
|
||||
int lastIndex = StringsKt.getLastIndex(charSequence);
|
||||
if (lastIndex == 0) {
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
R invoke = selector.invoke(Character.valueOf(charAt));
|
||||
?? it = new IntRange(1, lastIndex).iterator();
|
||||
while (it.hasNext()) {
|
||||
char charAt2 = charSequence.charAt(it.nextInt());
|
||||
R invoke2 = selector.invoke(Character.valueOf(charAt2));
|
||||
if (invoke.compareTo(invoke2) > 0) {
|
||||
charAt = charAt2;
|
||||
invoke = invoke2;
|
||||
}
|
||||
}
|
||||
return Character.valueOf(charAt);
|
||||
}
|
||||
}
|
@ -0,0 +1,21 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Iterator;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.markers.KMappedMarker;
|
||||
|
||||
/* compiled from: Iterables.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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.iterator(this.$this_asIterable$inlined);
|
||||
}
|
||||
}
|
2309
02-Easy5/E5/sources/kotlin/text/StringsKt___StringsKt.java
Normal file
2309
02-Easy5/E5/sources/kotlin/text/StringsKt___StringsKt.java
Normal file
File diff suppressed because one or more lines are too long
21
02-Easy5/E5/sources/kotlin/text/SystemProperties.java
Normal file
21
02-Easy5/E5/sources/kotlin/text/SystemProperties.java
Normal file
@ -0,0 +1,21 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: StringBuilderJVM.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
final class SystemProperties {
|
||||
public static final SystemProperties INSTANCE = new SystemProperties();
|
||||
public static final String LINE_SEPARATOR;
|
||||
|
||||
private SystemProperties() {
|
||||
}
|
||||
|
||||
static {
|
||||
String property = System.getProperty("line.separator");
|
||||
Intrinsics.checkNotNull(property);
|
||||
LINE_SEPARATOR = property;
|
||||
}
|
||||
}
|
17
02-Easy5/E5/sources/kotlin/text/TypeAliasesKt.java
Normal file
17
02-Easy5/E5/sources/kotlin/text/TypeAliasesKt.java
Normal file
@ -0,0 +1,17 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Metadata;
|
||||
|
||||
/* compiled from: TypeAliases.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class TypeAliasesKt {
|
||||
public static /* synthetic */ void Appendable$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void CharacterCodingException$annotations() {
|
||||
}
|
||||
|
||||
public static /* synthetic */ void StringBuilder$annotations() {
|
||||
}
|
||||
}
|
73
02-Easy5/E5/sources/kotlin/text/Typography.java
Normal file
73
02-Easy5/E5/sources/kotlin/text/Typography.java
Normal file
@ -0,0 +1,73 @@
|
||||
package kotlin.text;
|
||||
|
||||
import kotlin.Deprecated;
|
||||
import kotlin.DeprecatedSinceKotlin;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.ReplaceWith;
|
||||
|
||||
/* compiled from: Typography.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.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;
|
||||
|
||||
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() {
|
||||
}
|
||||
|
||||
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() {
|
||||
}
|
||||
|
||||
private Typography() {
|
||||
}
|
||||
}
|
270
02-Easy5/E5/sources/kotlin/text/UStringsKt.java
Normal file
270
02-Easy5/E5/sources/kotlin/text/UStringsKt.java
Normal file
@ -0,0 +1,270 @@
|
||||
package kotlin.text;
|
||||
|
||||
import androidx.core.internal.view.SupportMenu;
|
||||
import kotlin.KotlinNothingValueException;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.UByte;
|
||||
import kotlin.UByte$$ExternalSyntheticBackport0;
|
||||
import kotlin.UInt;
|
||||
import kotlin.ULong;
|
||||
import kotlin.UShort;
|
||||
import kotlin.UnsignedKt;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: UStrings.kt */
|
||||
@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\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0004\b\u0005\u0010\u0006\u001a\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\u00072\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0004\b\b\u0010\t\u001a\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\n2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0004\b\u000b\u0010\f\u001a\u001e\u0010\u0000\u001a\u00020\u0001*\u00020\r2\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0004\b\u000e\u0010\u000f\u001a\u0014\u0010\u0010\u001a\u00020\u0002*\u00020\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0011\u001a\u001c\u0010\u0010\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0012\u001a\u0011\u0010\u0013\u001a\u0004\u0018\u00010\u0002*\u00020\u0001H\u0007ø\u0001\u0000\u001a\u0019\u0010\u0013\u001a\u0004\u0018\u00010\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000\u001a\u0014\u0010\u0014\u001a\u00020\u0007*\u00020\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0015\u001a\u001c\u0010\u0014\u001a\u00020\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0016\u001a\u0011\u0010\u0017\u001a\u0004\u0018\u00010\u0007*\u00020\u0001H\u0007ø\u0001\u0000\u001a\u0019\u0010\u0017\u001a\u0004\u0018\u00010\u0007*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000\u001a\u0014\u0010\u0018\u001a\u00020\n*\u00020\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u0019\u001a\u001c\u0010\u0018\u001a\u00020\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u001a\u001a\u0011\u0010\u001b\u001a\u0004\u0018\u00010\n*\u00020\u0001H\u0007ø\u0001\u0000\u001a\u0019\u0010\u001b\u001a\u0004\u0018\u00010\n*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000\u001a\u0014\u0010\u001c\u001a\u00020\r*\u00020\u0001H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u001d\u001a\u001c\u0010\u001c\u001a\u00020\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000¢\u0006\u0002\u0010\u001e\u001a\u0011\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u0001H\u0007ø\u0001\u0000\u001a\u0019\u0010\u001f\u001a\u0004\u0018\u00010\r*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0004H\u0007ø\u0001\u0000\u0082\u0002\u0004\n\u0002\b\u0019¨\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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class UStringsKt {
|
||||
/* renamed from: toString-LxnNnR4, reason: not valid java name */
|
||||
public static final String m1661toStringLxnNnR4(byte b, int i) {
|
||||
String num = Integer.toString(b & UByte.MAX_VALUE, CharsKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
|
||||
return num;
|
||||
}
|
||||
|
||||
/* renamed from: toString-olVBNx4, reason: not valid java name */
|
||||
public static final String m1663toStringolVBNx4(short s, int i) {
|
||||
String num = Integer.toString(s & UShort.MAX_VALUE, CharsKt.checkRadix(i));
|
||||
Intrinsics.checkNotNullExpressionValue(num, "toString(this, checkRadix(radix))");
|
||||
return num;
|
||||
}
|
||||
|
||||
/* renamed from: toString-V7xB4Y4, reason: not valid java name */
|
||||
public static final String m1662toStringV7xB4Y4(int i, int i2) {
|
||||
String l = Long.toString(i & 4294967295L, CharsKt.checkRadix(i2));
|
||||
Intrinsics.checkNotNullExpressionValue(l, "toString(this, checkRadix(radix))");
|
||||
return l;
|
||||
}
|
||||
|
||||
/* renamed from: toString-JSWoG40, reason: not valid java name */
|
||||
public static final String m1660toStringJSWoG40(long j, int i) {
|
||||
return UnsignedKt.ulongToString(j, CharsKt.checkRadix(i));
|
||||
}
|
||||
|
||||
public static final byte toUByte(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UByte uByteOrNull = toUByteOrNull(str);
|
||||
if (uByteOrNull != null) {
|
||||
return uByteOrNull.getData();
|
||||
}
|
||||
StringsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
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.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
public static final short toUShort(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UShort uShortOrNull = toUShortOrNull(str);
|
||||
if (uShortOrNull != null) {
|
||||
return uShortOrNull.getData();
|
||||
}
|
||||
StringsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
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.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
public static final int toUInt(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str);
|
||||
if (uIntOrNull != null) {
|
||||
return uIntOrNull.getData();
|
||||
}
|
||||
StringsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
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.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
public static final long toULong(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
ULong uLongOrNull = toULongOrNull(str);
|
||||
if (uLongOrNull != null) {
|
||||
return uLongOrNull.getData();
|
||||
}
|
||||
StringsKt.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
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.numberFormatError(str);
|
||||
throw new KotlinNothingValueException();
|
||||
}
|
||||
|
||||
public static final UByte toUByteOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUByteOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final UByte toUByteOrNull(String str, int i) {
|
||||
int compare;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str, i);
|
||||
if (uIntOrNull == null) {
|
||||
return null;
|
||||
}
|
||||
int data = uIntOrNull.getData();
|
||||
compare = Integer.compare(data ^ Integer.MIN_VALUE, UInt.m384constructorimpl(255) ^ Integer.MIN_VALUE);
|
||||
if (compare > 0) {
|
||||
return null;
|
||||
}
|
||||
return UByte.m300boximpl(UByte.m306constructorimpl((byte) data));
|
||||
}
|
||||
|
||||
public static final UShort toUShortOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUShortOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final UShort toUShortOrNull(String str, int i) {
|
||||
int compare;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
UInt uIntOrNull = toUIntOrNull(str, i);
|
||||
if (uIntOrNull == null) {
|
||||
return null;
|
||||
}
|
||||
int data = uIntOrNull.getData();
|
||||
compare = Integer.compare(data ^ Integer.MIN_VALUE, UInt.m384constructorimpl(SupportMenu.USER_MASK) ^ Integer.MIN_VALUE);
|
||||
if (compare > 0) {
|
||||
return null;
|
||||
}
|
||||
return UShort.m564boximpl(UShort.m570constructorimpl((short) data));
|
||||
}
|
||||
|
||||
public static final UInt toUIntOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toUIntOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final UInt toUIntOrNull(String str, int i) {
|
||||
int i2;
|
||||
int compare;
|
||||
int compare2;
|
||||
int compare3;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i3 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i2 = 1;
|
||||
if (length == 1 || charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
} else {
|
||||
i2 = 0;
|
||||
}
|
||||
int m384constructorimpl = UInt.m384constructorimpl(i);
|
||||
int i4 = 119304647;
|
||||
while (i2 < length) {
|
||||
int digitOf = CharsKt.digitOf(str.charAt(i2), i);
|
||||
if (digitOf < 0) {
|
||||
return null;
|
||||
}
|
||||
compare = Integer.compare(i3 ^ Integer.MIN_VALUE, i4 ^ Integer.MIN_VALUE);
|
||||
if (compare > 0) {
|
||||
if (i4 == 119304647) {
|
||||
i4 = UByte$$ExternalSyntheticBackport0.m$1(-1, m384constructorimpl);
|
||||
compare3 = Integer.compare(i3 ^ Integer.MIN_VALUE, i4 ^ Integer.MIN_VALUE);
|
||||
if (compare3 > 0) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
int m384constructorimpl2 = UInt.m384constructorimpl(i3 * m384constructorimpl);
|
||||
int m384constructorimpl3 = UInt.m384constructorimpl(UInt.m384constructorimpl(digitOf) + m384constructorimpl2);
|
||||
compare2 = Integer.compare(m384constructorimpl3 ^ Integer.MIN_VALUE, m384constructorimpl2 ^ Integer.MIN_VALUE);
|
||||
if (compare2 < 0) {
|
||||
return null;
|
||||
}
|
||||
i2++;
|
||||
i3 = m384constructorimpl3;
|
||||
}
|
||||
return UInt.m378boximpl(i3);
|
||||
}
|
||||
|
||||
public static final ULong toULongOrNull(String str) {
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
return toULongOrNull(str, 10);
|
||||
}
|
||||
|
||||
public static final ULong toULongOrNull(String str, int i) {
|
||||
int compare;
|
||||
int compare2;
|
||||
int compare3;
|
||||
Intrinsics.checkNotNullParameter(str, "<this>");
|
||||
CharsKt.checkRadix(i);
|
||||
int length = str.length();
|
||||
if (length == 0) {
|
||||
return null;
|
||||
}
|
||||
int i2 = 0;
|
||||
char charAt = str.charAt(0);
|
||||
if (Intrinsics.compare((int) charAt, 48) < 0) {
|
||||
i2 = 1;
|
||||
if (length == 1 || charAt != '+') {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
long m463constructorimpl = ULong.m463constructorimpl(i);
|
||||
long j = 0;
|
||||
long j2 = 512409557603043100L;
|
||||
while (i2 < length) {
|
||||
if (CharsKt.digitOf(str.charAt(i2), i) < 0) {
|
||||
return null;
|
||||
}
|
||||
compare = Long.compare(j ^ Long.MIN_VALUE, j2 ^ Long.MIN_VALUE);
|
||||
if (compare > 0) {
|
||||
if (j2 == 512409557603043100L) {
|
||||
j2 = UByte$$ExternalSyntheticBackport0.m$1(-1L, m463constructorimpl);
|
||||
compare3 = Long.compare(j ^ Long.MIN_VALUE, j2 ^ Long.MIN_VALUE);
|
||||
if (compare3 > 0) {
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
long m463constructorimpl2 = ULong.m463constructorimpl(j * m463constructorimpl);
|
||||
long m463constructorimpl3 = ULong.m463constructorimpl(ULong.m463constructorimpl(UInt.m384constructorimpl(r13) & 4294967295L) + m463constructorimpl2);
|
||||
compare2 = Long.compare(m463constructorimpl3 ^ Long.MIN_VALUE, m463constructorimpl2 ^ Long.MIN_VALUE);
|
||||
if (compare2 < 0) {
|
||||
return null;
|
||||
}
|
||||
i2++;
|
||||
j = m463constructorimpl3;
|
||||
}
|
||||
return ULong.m457boximpl(j);
|
||||
}
|
||||
}
|
@ -0,0 +1,31 @@
|
||||
package kotlin.text;
|
||||
|
||||
import java.util.Locale;
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
|
||||
/* compiled from: _OneToManyTitlecaseMappings.kt */
|
||||
@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, 8, 0}, xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class _OneToManyTitlecaseMappingsKt {
|
||||
public static final String titlecaseImpl(char c) {
|
||||
String valueOf = String.valueOf(c);
|
||||
Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
|
||||
String upperCase = valueOf.toUpperCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
|
||||
if (upperCase.length() <= 1) {
|
||||
return String.valueOf(Character.toTitleCase(c));
|
||||
}
|
||||
if (c == 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, "this as java.lang.String).substring(startIndex)");
|
||||
Intrinsics.checkNotNull(substring, "null cannot be cast to non-null type java.lang.String");
|
||||
String lowerCase = substring.toLowerCase(Locale.ROOT);
|
||||
Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
|
||||
return charAt + lowerCase;
|
||||
}
|
||||
}
|
@ -0,0 +1,22 @@
|
||||
package kotlin.text.jdk8;
|
||||
|
||||
import kotlin.Metadata;
|
||||
import kotlin.jvm.internal.Intrinsics;
|
||||
import kotlin.text.MatchGroup;
|
||||
import kotlin.text.MatchGroupCollection;
|
||||
import kotlin.text.MatchNamedGroupCollection;
|
||||
|
||||
/* compiled from: RegexExtensions.kt */
|
||||
@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;", "name", "", "kotlin-stdlib-jdk8"}, k = 2, mv = {1, 8, 0}, pn = "kotlin.text", xi = 48)
|
||||
/* loaded from: classes.dex */
|
||||
public final class RegexExtensionsJDK8Kt {
|
||||
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) {
|
||||
throw new UnsupportedOperationException("Retrieving groups by name is not supported on this platform.");
|
||||
}
|
||||
return matchNamedGroupCollection.get(name);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user