2020-11-21 21:10:53 +00:00
|
|
|
.class public Lz/t/s;
|
|
|
|
.super Lz/t/q;
|
2020-11-13 19:18:44 +00:00
|
|
|
.source "_Strings.kt"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-direct {p0}, Lz/t/q;-><init>()V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-void
|
|
|
|
.end method
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public static final drop(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.locals 1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "$this$drop"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-ltz p1, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v0, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v0, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:goto_0
|
2020-11-13 19:18:44 +00:00
|
|
|
if-eqz v0, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-le p1, v0, :cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move p1, v0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_1
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0, p1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string p1, "(this as java.lang.String).substring(startIndex)"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, p1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string p0, "Requested character count "
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, " is less than zero."
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, p1, v0}, Lf/e/c/a/a;->j(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
throw p1
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public static final take(Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.locals 2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, "$this$take"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, v0}, Lz/n/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v0, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-ltz p1, :cond_0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v1, 0x1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_0
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 v1, 0x0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
:goto_0
|
|
|
|
if-eqz v1, :cond_2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result v1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
if-le p1, v1, :cond_1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move p1, v1
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
:cond_1
|
|
|
|
invoke-virtual {p0, v0, p1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string p1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, p1}, Lz/n/c/j;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
return-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
:cond_2
|
|
|
|
const-string p0, "Requested character count "
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const-string v0, " is less than zero."
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 21:10:53 +00:00
|
|
|
invoke-static {p0, p1, v0}, Lf/e/c/a/a;->j(Ljava/lang/String;ILjava/lang/String;)Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p0}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result-object p0
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-direct {p1, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
throw p1
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|