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

622 lines
14 KiB
Smali

.class public Lkotlin/text/t;
.super Lkotlin/text/s;
.source "StringsJVM.kt"
# direct methods
.method public constructor <init>()V
.locals 0
invoke-direct {p0}, Lkotlin/text/s;-><init>()V
return-void
.end method
.method public static final capitalize(Ljava/lang/String;)Ljava/lang/String;
.locals 4
const-string v0, "$this$capitalize"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
move-object v0, p0
check-cast v0, Ljava/lang/CharSequence;
invoke-interface {v0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x1
const/4 v2, 0x0
if-lez v0, :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, v2}, Ljava/lang/String;->charAt(I)C
move-result v0
invoke-static {v0}, Ljava/lang/Character;->isLowerCase(C)Z
move-result v0
if-eqz v0, :cond_2
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {p0, v2, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v2
const-string v3, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz v2, :cond_1
invoke-virtual {v2}, Ljava/lang/String;->toUpperCase()Ljava/lang/String;
move-result-object v2
const-string v3, "(this as java.lang.String).toUpperCase()"
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {p0, v1}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p0
const-string v1, "(this as java.lang.String).substring(startIndex)"
invoke-static {p0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
return-object p0
:cond_1
new-instance p0, Lkotlin/r;
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-direct {p0, v0}, Lkotlin/r;-><init>(Ljava/lang/String;)V
throw p0
:cond_2
return-object p0
.end method
.method public static final compareTo(Ljava/lang/String;Ljava/lang/String;Z)I
.locals 1
const-string v0, "$this$compareTo"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-eqz p2, :cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->compareToIgnoreCase(Ljava/lang/String;)I
move-result p0
return p0
:cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->compareTo(Ljava/lang/String;)I
move-result p0
return p0
.end method
.method public static final endsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
.locals 7
const-string v0, "$this$endsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "suffix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p2, :cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z
move-result p0
return p0
:cond_0
invoke-virtual {p0}, Ljava/lang/String;->length()I
move-result p2
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
sub-int v2, p2, v0
const/4 v4, 0x0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v5
const/4 v6, 0x1
move-object v1, p0
move-object v3, p1
invoke-static/range {v1 .. v6}, Lkotlin/text/l;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
move-result p0
return p0
.end method
.method public static synthetic endsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
:cond_0
invoke-static {p0, p1, p2}, Lkotlin/text/l;->endsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result p0
return p0
.end method
.method public static final equals(Ljava/lang/String;Ljava/lang/String;Z)Z
.locals 0
if-nez p0, :cond_1
if-nez p1, :cond_0
const/4 p0, 0x1
return p0
:cond_0
const/4 p0, 0x0
return p0
:cond_1
if-nez p2, :cond_2
invoke-virtual {p0, p1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
return p0
:cond_2
invoke-virtual {p0, p1}, Ljava/lang/String;->equalsIgnoreCase(Ljava/lang/String;)Z
move-result p0
return p0
.end method
.method public static final getCASE_INSENSITIVE_ORDER(Lkotlin/jvm/internal/ab;)Ljava/util/Comparator;
.locals 1
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Lkotlin/jvm/internal/ab;",
")",
"Ljava/util/Comparator<",
"Ljava/lang/String;",
">;"
}
.end annotation
const-string v0, "$this$CASE_INSENSITIVE_ORDER"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object p0, Ljava/lang/String;->CASE_INSENSITIVE_ORDER:Ljava/util/Comparator;
const-string v0, "java.lang.String.CASE_INSENSITIVE_ORDER"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final isBlank(Ljava/lang/CharSequence;)Z
.locals 4
const-string v0, "$this$isBlank"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0}, Ljava/lang/CharSequence;->length()I
move-result v0
const/4 v1, 0x1
if-eqz v0, :cond_4
invoke-static {p0}, Lkotlin/text/l;->getIndices(Ljava/lang/CharSequence;)Lkotlin/ranges/IntRange;
move-result-object v0
check-cast v0, Ljava/lang/Iterable;
instance-of v2, v0, Ljava/util/Collection;
const/4 v3, 0x0
if-eqz v2, :cond_0
move-object v2, v0
check-cast v2, Ljava/util/Collection;
invoke-interface {v2}, Ljava/util/Collection;->isEmpty()Z
move-result v2
if-nez v2, :cond_2
:cond_0
invoke-interface {v0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object v0
:cond_1
invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_2
move-object v2, v0
check-cast v2, Lkotlin/a/ab;
invoke-virtual {v2}, Lkotlin/a/ab;->nextInt()I
move-result v2
invoke-interface {p0, v2}, Ljava/lang/CharSequence;->charAt(I)C
move-result v2
invoke-static {v2}, Lkotlin/text/a;->isWhitespace(C)Z
move-result v2
if-nez v2, :cond_1
const/4 p0, 0x0
goto :goto_0
:cond_2
const/4 p0, 0x1
:goto_0
if-eqz p0, :cond_3
goto :goto_1
:cond_3
return v3
:cond_4
:goto_1
return v1
.end method
.method public static final regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
.locals 6
const-string v0, "$this$regionMatches"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "other"
invoke-static {p2, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p5, :cond_0
invoke-virtual {p0, p1, p2, p3, p4}, Ljava/lang/String;->regionMatches(ILjava/lang/String;II)Z
move-result p0
return p0
:cond_0
move-object v0, p0
move v1, p5
move v2, p1
move-object v3, p2
move v4, p3
move v5, p4
invoke-virtual/range {v0 .. v5}, Ljava/lang/String;->regionMatches(ZILjava/lang/String;II)Z
move-result p0
return p0
.end method
.method public static final replace(Ljava/lang/String;CCZ)Ljava/lang/String;
.locals 17
move-object/from16 v0, p0
const-string v1, "$this$replace"
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p3, :cond_0
invoke-virtual/range {p0 .. p2}, Ljava/lang/String;->replace(CC)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026replace(oldChar, newChar)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/l;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
:cond_0
move-object v2, v0
check-cast v2, Ljava/lang/CharSequence;
const/4 v0, 0x1
new-array v3, v0, [C
const/4 v0, 0x0
aput-char p1, v3, v0
const/4 v5, 0x0
const/4 v6, 0x4
const/4 v7, 0x0
move/from16 v4, p3
invoke-static/range {v2 .. v7}, Lkotlin/text/l;->splitToSequence$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Lkotlin/sequences/Sequence;
move-result-object v8
invoke-static/range {p2 .. p2}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object v0
move-object v9, v0
check-cast v9, Ljava/lang/CharSequence;
const/4 v10, 0x0
const/4 v11, 0x0
const/4 v12, 0x0
const/4 v13, 0x0
const/4 v14, 0x0
const/16 v15, 0x3e
const/16 v16, 0x0
invoke-static/range {v8 .. v16}, Lkotlin/sequences/i;->joinToString$default(Lkotlin/sequences/Sequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static final replace(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
.locals 19
move-object/from16 v0, p0
move-object/from16 v1, p1
move-object/from16 v2, p2
const-string v3, "$this$replace"
invoke-static {v0, v3}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v3, "oldValue"
invoke-static {v1, v3}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v3, "newValue"
invoke-static {v2, v3}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
move-object v4, v0
check-cast v4, Ljava/lang/CharSequence;
const/4 v0, 0x1
new-array v5, v0, [Ljava/lang/String;
const/4 v0, 0x0
aput-object v1, v5, v0
const/4 v7, 0x0
const/4 v8, 0x4
const/4 v9, 0x0
move/from16 v6, p3
invoke-static/range {v4 .. v9}, Lkotlin/text/l;->splitToSequence$default(Ljava/lang/CharSequence;[Ljava/lang/String;ZIILjava/lang/Object;)Lkotlin/sequences/Sequence;
move-result-object v10
move-object v11, v2
check-cast v11, Ljava/lang/CharSequence;
const/4 v12, 0x0
const/4 v13, 0x0
const/4 v14, 0x0
const/4 v15, 0x0
const/16 v16, 0x0
const/16 v17, 0x3e
const/16 v18, 0x0
invoke-static/range {v10 .. v18}, Lkotlin/sequences/i;->joinToString$default(Lkotlin/sequences/Sequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;ILjava/lang/Object;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method public static synthetic replace$default(Ljava/lang/String;CCZILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_0
const/4 p3, 0x0
:cond_0
invoke-static {p0, p1, p2, p3}, Lkotlin/text/l;->replace(Ljava/lang/String;CCZ)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static synthetic replace$default(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Ljava/lang/String;
.locals 0
and-int/lit8 p4, p4, 0x4
if-eqz p4, :cond_0
const/4 p3, 0x0
:cond_0
invoke-static {p0, p1, p2, p3}, Lkotlin/text/l;->replace(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method public static final startsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
.locals 6
const-string v0, "$this$startsWith"
invoke-static {p0, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
const-string v0, "prefix"
invoke-static {p1, v0}, Lkotlin/jvm/internal/l;->checkParameterIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
if-nez p2, :cond_0
invoke-virtual {p0, p1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z
move-result p0
return p0
:cond_0
const/4 v1, 0x0
const/4 v3, 0x0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v4
move-object v0, p0
move-object v2, p1
move v5, p2
invoke-static/range {v0 .. v5}, Lkotlin/text/l;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
move-result p0
return p0
.end method
.method public static synthetic startsWith$default(Ljava/lang/String;Ljava/lang/String;ZILjava/lang/Object;)Z
.locals 0
and-int/lit8 p3, p3, 0x2
if-eqz p3, :cond_0
const/4 p2, 0x0
:cond_0
invoke-static {p0, p1, p2}, Lkotlin/text/l;->startsWith(Ljava/lang/String;Ljava/lang/String;Z)Z
move-result p0
return p0
.end method