132 lines
2.8 KiB
Smali
132 lines
2.8 KiB
Smali
|
.class public Ly/s/u;
|
||
|
.super Ly/s/s;
|
||
|
.source "_Strings.kt"
|
||
|
|
||
|
|
||
|
# direct methods
|
||
|
.method public constructor <init>()V
|
||
|
.locals 0
|
||
|
|
||
|
invoke-direct {p0}, Ly/s/s;-><init>()V
|
||
|
|
||
|
return-void
|
||
|
.end method
|
||
|
|
||
|
.method public static final drop(Ljava/lang/String;I)Ljava/lang/String;
|
||
|
.locals 1
|
||
|
|
||
|
const-string v0, "$this$drop"
|
||
|
|
||
|
invoke-static {p0, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
if-ltz p1, :cond_0
|
||
|
|
||
|
const/4 v0, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v0, :cond_2
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v0
|
||
|
|
||
|
if-le p1, v0, :cond_1
|
||
|
|
||
|
move p1, v0
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {p0, p1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p1, "(this as java.lang.String).substring(startIndex)"
|
||
|
|
||
|
invoke-static {p0, p1}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "Requested character count "
|
||
|
|
||
|
const-string v0, " is less than zero."
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lf/e/c/a/a;->k(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|
||
|
|
||
|
.method public static final take(Ljava/lang/String;I)Ljava/lang/String;
|
||
|
.locals 2
|
||
|
|
||
|
const-string v0, "$this$take"
|
||
|
|
||
|
invoke-static {p0, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
const/4 v0, 0x0
|
||
|
|
||
|
if-ltz p1, :cond_0
|
||
|
|
||
|
const/4 v1, 0x1
|
||
|
|
||
|
goto :goto_0
|
||
|
|
||
|
:cond_0
|
||
|
const/4 v1, 0x0
|
||
|
|
||
|
:goto_0
|
||
|
if-eqz v1, :cond_2
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
||
|
|
||
|
move-result v1
|
||
|
|
||
|
if-le p1, v1, :cond_1
|
||
|
|
||
|
move p1, v1
|
||
|
|
||
|
:cond_1
|
||
|
invoke-virtual {p0, v0, p1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
const-string p1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
||
|
|
||
|
invoke-static {p0, p1}, Ly/m/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
||
|
|
||
|
return-object p0
|
||
|
|
||
|
:cond_2
|
||
|
const-string p0, "Requested character count "
|
||
|
|
||
|
const-string v0, " is less than zero."
|
||
|
|
||
|
invoke-static {p0, p1, v0}, Lf/e/c/a/a;->k(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
||
|
|
||
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
||
|
|
||
|
move-result-object p0
|
||
|
|
||
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
||
|
|
||
|
throw p1
|
||
|
.end method
|