apkfuckery/com.discord/smali_classes2/kotlin/text/b.smali
2019-11-20 23:09:14 +01:00

89 lines
1.8 KiB
Smali

.class Lkotlin/text/b;
.super Ljava/lang/Object;
.source "CharJVM.kt"
# direct methods
.method public static final checkRadix(I)I
.locals 5
const/4 v0, 0x2
const/16 v1, 0x24
if-gt v0, p0, :cond_0
if-lt v1, p0, :cond_0
return p0
:cond_0
new-instance v2, Ljava/lang/IllegalArgumentException;
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "radix "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
const-string p0, " was not in valid range "
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
new-instance p0, Lkotlin/ranges/IntRange;
invoke-direct {p0, v0, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v2, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
check-cast v2, Ljava/lang/Throwable;
throw v2
.end method
.method public static final digitOf(CI)I
.locals 0
invoke-static {p0, p1}, Ljava/lang/Character;->digit(II)I
move-result p0
return p0
.end method
.method public static final isWhitespace(C)Z
.locals 1
invoke-static {p0}, Ljava/lang/Character;->isWhitespace(C)Z
move-result v0
if-nez v0, :cond_1
invoke-static {p0}, Ljava/lang/Character;->isSpaceChar(C)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
return p0
:cond_1
:goto_0
const/4 p0, 0x1
return p0
.end method