mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-26 09:02:34 -06:00
560 lines
12 KiB
Smali
560 lines
12 KiB
Smali
.class Lkotlin/text/StringsKt__StringNumberConversionsKt;
|
|
.super Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;
|
|
.source "StringNumberConversions.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation runtime Lkotlin/Metadata;
|
|
d1 = {
|
|
"\u0000.\n\u0000\n\u0002\u0010\u0001\n\u0000\n\u0002\u0010\u000e\n\u0000\n\u0002\u0010\u0005\n\u0002\u0008\u0002\n\u0002\u0010\u0008\n\u0002\u0008\u0005\n\u0002\u0010\t\n\u0002\u0008\u0003\n\u0002\u0010\n\n\u0002\u0008\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\u00a2\u0006\u0002\u0010\u0006\u001a\u001b\u0010\u0004\u001a\u0004\u0018\u00010\u0005*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u0008H\u0007\u00a2\u0006\u0002\u0010\t\u001a\u0013\u0010\n\u001a\u0004\u0018\u00010\u0008*\u00020\u0003H\u0007\u00a2\u0006\u0002\u0010\u000b\u001a\u001b\u0010\n\u001a\u0004\u0018\u00010\u0008*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u0008H\u0007\u00a2\u0006\u0002\u0010\u000c\u001a\u0013\u0010\r\u001a\u0004\u0018\u00010\u000e*\u00020\u0003H\u0007\u00a2\u0006\u0002\u0010\u000f\u001a\u001b\u0010\r\u001a\u0004\u0018\u00010\u000e*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u0008H\u0007\u00a2\u0006\u0002\u0010\u0010\u001a\u0013\u0010\u0011\u001a\u0004\u0018\u00010\u0012*\u00020\u0003H\u0007\u00a2\u0006\u0002\u0010\u0013\u001a\u001b\u0010\u0011\u001a\u0004\u0018\u00010\u0012*\u00020\u00032\u0006\u0010\u0007\u001a\u00020\u0008H\u0007\u00a2\u0006\u0002\u0010\u0014\u00a8\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 = 0x5
|
|
mv = {
|
|
0x1,
|
|
0x9,
|
|
0x0
|
|
}
|
|
xi = 0x31
|
|
xs = "kotlin/text/StringsKt"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Lkotlin/text/StringsKt__StringNumberConversionsJVMKt;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final numberFormatError(Ljava/lang/String;)Ljava/lang/Void;
|
|
.locals 3
|
|
|
|
const-string v0, "input"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 203
|
|
new-instance v0, Ljava/lang/NumberFormatException;
|
|
|
|
new-instance v1, Ljava/lang/StringBuilder;
|
|
|
|
const-string v2, "Invalid number format: \'"
|
|
|
|
invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
const/16 v1, 0x27
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/lang/NumberFormatException;-><init>(Ljava/lang/String;)V
|
|
|
|
throw v0
|
|
.end method
|
|
|
|
.method public static final toByteOrNull(Ljava/lang/String;)Ljava/lang/Byte;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 17
|
|
invoke-static {p0, v0}, Lkotlin/text/StringsKt;->toByteOrNull(Ljava/lang/String;I)Ljava/lang/Byte;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toByteOrNull(Ljava/lang/String;I)Ljava/lang/Byte;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 27
|
|
invoke-static {p0, p1}, Lkotlin/text/StringsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, -0x80
|
|
|
|
if-lt p0, v0, :cond_1
|
|
|
|
const/16 v0, 0x7f
|
|
|
|
if-le p0, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
int-to-byte p0, p0
|
|
|
|
.line 29
|
|
invoke-static {p0}, Ljava/lang/Byte;->valueOf(B)Ljava/lang/Byte;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|
|
|
|
.method public static final toIntOrNull(Ljava/lang/String;)Ljava/lang/Integer;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 57
|
|
invoke-static {p0, v0}, Lkotlin/text/StringsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
|
|
.locals 10
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 67
|
|
invoke-static {p1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
.line 69
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
if-nez v0, :cond_0
|
|
|
|
return-object v1
|
|
|
|
:cond_0
|
|
const/4 v2, 0x0
|
|
|
|
.line 76
|
|
invoke-virtual {p0, v2}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
const/16 v4, 0x30
|
|
|
|
.line 77
|
|
invoke-static {v3, v4}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
|
|
|
|
move-result v4
|
|
|
|
const v5, -0x7fffffff
|
|
|
|
if-gez v4, :cond_4
|
|
|
|
const/4 v4, 0x1
|
|
|
|
if-ne v0, v4, :cond_1
|
|
|
|
return-object v1
|
|
|
|
:cond_1
|
|
const/16 v6, 0x2d
|
|
|
|
if-ne v3, v6, :cond_2
|
|
|
|
const/high16 v5, -0x80000000
|
|
|
|
move v3, v4
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v6, 0x2b
|
|
|
|
if-ne v3, v6, :cond_3
|
|
|
|
move v3, v2
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-object v1
|
|
|
|
:cond_4
|
|
move v3, v2
|
|
|
|
move v4, v3
|
|
|
|
:goto_0
|
|
const v6, -0x38e38e3
|
|
|
|
move v7, v6
|
|
|
|
:goto_1
|
|
if-ge v4, v0, :cond_9
|
|
|
|
.line 102
|
|
invoke-virtual {p0, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v8
|
|
|
|
invoke-static {v8, p1}, Lkotlin/text/CharsKt;->digitOf(CI)I
|
|
|
|
move-result v8
|
|
|
|
if-gez v8, :cond_5
|
|
|
|
return-object v1
|
|
|
|
:cond_5
|
|
if-ge v2, v7, :cond_7
|
|
|
|
if-ne v7, v6, :cond_6
|
|
|
|
.line 107
|
|
div-int v7, v5, p1
|
|
|
|
if-ge v2, v7, :cond_7
|
|
|
|
:cond_6
|
|
return-object v1
|
|
|
|
:cond_7
|
|
mul-int/2addr v2, p1
|
|
|
|
add-int v9, v5, v8
|
|
|
|
if-ge v2, v9, :cond_8
|
|
|
|
return-object v1
|
|
|
|
:cond_8
|
|
sub-int/2addr v2, v8
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
if-eqz v3, :cond_a
|
|
|
|
.line 124
|
|
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
neg-int p0, v2
|
|
|
|
invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_2
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toLongOrNull(Ljava/lang/String;)Ljava/lang/Long;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 132
|
|
invoke-static {p0, v0}, Lkotlin/text/StringsKt;->toLongOrNull(Ljava/lang/String;I)Ljava/lang/Long;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toLongOrNull(Ljava/lang/String;I)Ljava/lang/Long;
|
|
.locals 19
|
|
|
|
move-object/from16 v0, p0
|
|
|
|
move/from16 v1, p1
|
|
|
|
const-string v2, "<this>"
|
|
|
|
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 142
|
|
invoke-static/range {p1 .. p1}, Lkotlin/text/CharsKt;->checkRadix(I)I
|
|
|
|
.line 144
|
|
invoke-virtual/range {p0 .. p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v2
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-nez v2, :cond_0
|
|
|
|
return-object v3
|
|
|
|
:cond_0
|
|
const/4 v4, 0x0
|
|
|
|
.line 151
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v5
|
|
|
|
const/16 v6, 0x30
|
|
|
|
.line 152
|
|
invoke-static {v5, v6}, Lkotlin/jvm/internal/Intrinsics;->compare(II)I
|
|
|
|
move-result v6
|
|
|
|
const-wide v7, -0x7fffffffffffffffL # -4.9E-324
|
|
|
|
if-gez v6, :cond_4
|
|
|
|
const/4 v6, 0x1
|
|
|
|
if-ne v2, v6, :cond_1
|
|
|
|
return-object v3
|
|
|
|
:cond_1
|
|
const/16 v9, 0x2d
|
|
|
|
if-ne v5, v9, :cond_2
|
|
|
|
const-wide/high16 v7, -0x8000000000000000L
|
|
|
|
move v4, v6
|
|
|
|
goto :goto_0
|
|
|
|
:cond_2
|
|
const/16 v9, 0x2b
|
|
|
|
if-ne v5, v9, :cond_3
|
|
|
|
move/from16 v18, v6
|
|
|
|
move v6, v4
|
|
|
|
move/from16 v4, v18
|
|
|
|
goto :goto_0
|
|
|
|
:cond_3
|
|
return-object v3
|
|
|
|
:cond_4
|
|
move v6, v4
|
|
|
|
:goto_0
|
|
const-wide v9, -0x38e38e38e38e38eL # -2.772000429909333E291
|
|
|
|
const-wide/16 v11, 0x0
|
|
|
|
move-wide v13, v9
|
|
|
|
:goto_1
|
|
if-ge v4, v2, :cond_9
|
|
|
|
.line 177
|
|
invoke-virtual {v0, v4}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v5
|
|
|
|
invoke-static {v5, v1}, Lkotlin/text/CharsKt;->digitOf(CI)I
|
|
|
|
move-result v5
|
|
|
|
if-gez v5, :cond_5
|
|
|
|
return-object v3
|
|
|
|
:cond_5
|
|
cmp-long v15, v11, v13
|
|
|
|
if-gez v15, :cond_7
|
|
|
|
cmp-long v13, v13, v9
|
|
|
|
if-nez v13, :cond_6
|
|
|
|
int-to-long v13, v1
|
|
|
|
.line 182
|
|
div-long v13, v7, v13
|
|
|
|
cmp-long v15, v11, v13
|
|
|
|
if-gez v15, :cond_7
|
|
|
|
:cond_6
|
|
return-object v3
|
|
|
|
:cond_7
|
|
int-to-long v9, v1
|
|
|
|
mul-long/2addr v11, v9
|
|
|
|
int-to-long v9, v5
|
|
|
|
add-long v16, v7, v9
|
|
|
|
cmp-long v5, v11, v16
|
|
|
|
if-gez v5, :cond_8
|
|
|
|
return-object v3
|
|
|
|
:cond_8
|
|
sub-long/2addr v11, v9
|
|
|
|
add-int/lit8 v4, v4, 0x1
|
|
|
|
const-wide v9, -0x38e38e38e38e38eL # -2.772000429909333E291
|
|
|
|
goto :goto_1
|
|
|
|
:cond_9
|
|
if-eqz v6, :cond_a
|
|
|
|
.line 199
|
|
invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_a
|
|
neg-long v0, v11
|
|
|
|
invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;
|
|
|
|
move-result-object v0
|
|
|
|
:goto_2
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final toShortOrNull(Ljava/lang/String;)Ljava/lang/Short;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
const/16 v0, 0xa
|
|
|
|
.line 37
|
|
invoke-static {p0, v0}, Lkotlin/text/StringsKt;->toShortOrNull(Ljava/lang/String;I)Ljava/lang/Short;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final toShortOrNull(Ljava/lang/String;I)Ljava/lang/Short;
|
|
.locals 1
|
|
|
|
const-string v0, "<this>"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 47
|
|
invoke-static {p0, p1}, Lkotlin/text/StringsKt;->toIntOrNull(Ljava/lang/String;I)Ljava/lang/Integer;
|
|
|
|
move-result-object p0
|
|
|
|
const/4 p1, 0x0
|
|
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-virtual {p0}, Ljava/lang/Integer;->intValue()I
|
|
|
|
move-result p0
|
|
|
|
const/16 v0, -0x8000
|
|
|
|
if-lt p0, v0, :cond_1
|
|
|
|
const/16 v0, 0x7fff
|
|
|
|
if-le p0, v0, :cond_0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
int-to-short p0, p0
|
|
|
|
.line 49
|
|
invoke-static {p0}, Ljava/lang/Short;->valueOf(S)Ljava/lang/Short;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
|
|
:cond_1
|
|
:goto_0
|
|
return-object p1
|
|
.end method
|