2020-11-21 22:11:07 +00:00
|
|
|
.class public final Ly/s/m;
|
|
|
|
.super Ly/m/c/k;
|
2020-11-13 19:18:44 +00:00
|
|
|
.source "Strings.kt"
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
# interfaces
|
2020-11-13 19:18:44 +00:00
|
|
|
.implements Lkotlin/jvm/functions/Function2;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# annotations
|
|
|
|
.annotation system Ldalvik/annotation/Signature;
|
|
|
|
value = {
|
2020-11-21 22:11:07 +00:00
|
|
|
"Ly/m/c/k;",
|
2020-11-13 19:18:44 +00:00
|
|
|
"Lkotlin/jvm/functions/Function2<",
|
|
|
|
"Ljava/lang/CharSequence;",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
"Lkotlin/Pair<",
|
|
|
|
"+",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
"+",
|
|
|
|
"Ljava/lang/Integer;",
|
|
|
|
">;>;"
|
2020-11-12 02:11:44 +00:00
|
|
|
}
|
|
|
|
.end annotation
|
|
|
|
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
# instance fields
|
|
|
|
.field public final synthetic $delimitersList:Ljava/util/List;
|
|
|
|
|
|
|
|
.field public final synthetic $ignoreCase:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
2020-11-13 19:18:44 +00:00
|
|
|
.method public constructor <init>(Ljava/util/List;Z)V
|
|
|
|
.locals 0
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
iput-object p1, p0, Ly/s/m;->$delimitersList:Ljava/util/List;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
iput-boolean p2, p0, Ly/s/m;->$ignoreCase:Z
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
const/4 p1, 0x2
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-direct {p0, p1}, Ly/m/c/k;-><init>(I)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
# virtual methods
|
|
|
|
.method public invoke(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
.locals 13
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
check-cast p1, Ljava/lang/CharSequence;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
check-cast p2, Ljava/lang/Number;
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
invoke-virtual {p2}, Ljava/lang/Number;->intValue()I
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
move-result p2
|
|
|
|
|
|
|
|
const-string v0, "$receiver"
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static {p1, v0}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
iget-object v6, p0, Ly/s/m;->$delimitersList:Ljava/util/List;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
iget-boolean v7, p0, Ly/s/m;->$ignoreCase:Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
const/4 v8, 0x0
|
|
|
|
|
|
|
|
const/4 v0, 0x0
|
|
|
|
|
|
|
|
if-nez v7, :cond_3
|
|
|
|
|
|
|
|
invoke-interface {v6}, Ljava/util/Collection;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
const/4 v2, 0x1
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_3
|
|
|
|
|
|
|
|
const-string v1, "$this$single"
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static {v6, v1}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static {v6, v1}, Ly/m/c/j;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
invoke-interface {v6}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
|
|
|
|
if-ne v1, v2, :cond_1
|
|
|
|
|
|
|
|
invoke-interface {v6, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v1
|
|
|
|
|
|
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v2, 0x4
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static {p1, v1, p2, v0, v2}, Ly/s/p;->indexOf$default(Ljava/lang/CharSequence;Ljava/lang/String;IZI)I
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result p1
|
|
|
|
|
|
|
|
if-gez p1, :cond_0
|
|
|
|
|
|
|
|
goto/16 :goto_4
|
|
|
|
|
|
|
|
:cond_0
|
|
|
|
invoke-static {p1}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1, v1}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
goto/16 :goto_5
|
|
|
|
|
|
|
|
:cond_1
|
|
|
|
new-instance p1, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p2, "List has more than one element."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_2
|
|
|
|
new-instance p1, Ljava/util/NoSuchElementException;
|
|
|
|
|
|
|
|
const-string p2, "List is empty."
|
|
|
|
|
|
|
|
invoke-direct {p1, p2}, Ljava/util/NoSuchElementException;-><init>(Ljava/lang/String;)V
|
|
|
|
|
|
|
|
throw p1
|
|
|
|
|
|
|
|
:cond_3
|
|
|
|
if-gez p2, :cond_4
|
|
|
|
|
|
|
|
const/4 p2, 0x0
|
|
|
|
|
|
|
|
:cond_4
|
|
|
|
new-instance v0, Lkotlin/ranges/IntRange;
|
|
|
|
|
|
|
|
invoke-interface {p1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result v1
|
|
|
|
|
|
|
|
invoke-direct {v0, p2, v1}, Lkotlin/ranges/IntRange;-><init>(II)V
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
instance-of v1, p1, Ljava/lang/String;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
if-eqz v1, :cond_9
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
iget v9, v0, Lkotlin/ranges/IntProgression;->e:I
|
|
|
|
|
|
|
|
iget v10, v0, Lkotlin/ranges/IntProgression;->f:I
|
|
|
|
|
|
|
|
if-ltz v10, :cond_5
|
|
|
|
|
|
|
|
if-gt p2, v9, :cond_e
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
if-lt p2, v9, :cond_e
|
|
|
|
|
|
|
|
:goto_0
|
|
|
|
invoke-interface {v6}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_7
|
|
|
|
|
|
|
|
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
move-object v0, v12
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
check-cast v2, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
move v3, p2
|
|
|
|
|
|
|
|
move v5, v7
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Ly/s/k;->regionMatches(Ljava/lang/String;ILjava/lang/String;IIZ)Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_6
|
|
|
|
|
|
|
|
goto :goto_1
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
move-object v12, v8
|
|
|
|
|
|
|
|
:goto_1
|
|
|
|
check-cast v12, Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v12, :cond_8
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1, v12}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
if-eq p2, v9, :cond_e
|
|
|
|
|
|
|
|
add-int/2addr p2, v10
|
|
|
|
|
|
|
|
goto :goto_0
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
iget v9, v0, Lkotlin/ranges/IntProgression;->e:I
|
|
|
|
|
|
|
|
iget v10, v0, Lkotlin/ranges/IntProgression;->f:I
|
|
|
|
|
|
|
|
if-ltz v10, :cond_a
|
|
|
|
|
|
|
|
if-gt p2, v9, :cond_e
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
if-lt p2, v9, :cond_e
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v6}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
|
|
|
|
move-result-object v11
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-interface {v11}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v11}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v12
|
|
|
|
|
|
|
|
move-object v0, v12
|
|
|
|
|
|
|
|
check-cast v0, Ljava/lang/String;
|
|
|
|
|
|
|
|
const/4 v1, 0x0
|
|
|
|
|
|
|
|
invoke-virtual {v0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v4
|
|
|
|
|
|
|
|
move-object v2, p1
|
|
|
|
|
|
|
|
move v3, p2
|
|
|
|
|
|
|
|
move v5, v7
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-static/range {v0 .. v5}, Ly/s/p;->regionMatchesImpl(Ljava/lang/CharSequence;ILjava/lang/CharSequence;IIZ)Z
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
move-result v0
|
|
|
|
|
|
|
|
if-eqz v0, :cond_b
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
move-object v12, v8
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
check-cast v12, Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v12, :cond_d
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
new-instance p2, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {p2, p1, v12}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
if-eq p2, v9, :cond_e
|
|
|
|
|
|
|
|
add-int/2addr p2, v10
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_e
|
|
|
|
:goto_4
|
|
|
|
move-object p2, v8
|
|
|
|
|
|
|
|
:goto_5
|
|
|
|
if-eqz p2, :cond_f
|
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
invoke-virtual {p2}, Lkotlin/Pair;->getFirst()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Lkotlin/Pair;->getSecond()Ljava/lang/Object;
|
2020-11-13 19:18:44 +00:00
|
|
|
|
2020-11-21 22:11:07 +00:00
|
|
|
move-result-object p2
|
2020-11-13 19:18:44 +00:00
|
|
|
|
|
|
|
check-cast p2, Ljava/lang/String;
|
|
|
|
|
|
|
|
invoke-virtual {p2}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p2
|
|
|
|
|
|
|
|
invoke-static {p2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
|
|
|
|
|
|
|
|
move-result-object p2
|
|
|
|
|
|
|
|
new-instance v8, Lkotlin/Pair;
|
|
|
|
|
|
|
|
invoke-direct {v8, p1, p2}, Lkotlin/Pair;-><init>(Ljava/lang/Object;Ljava/lang/Object;)V
|
2020-11-12 02:11:44 +00:00
|
|
|
|
2020-11-13 19:18:44 +00:00
|
|
|
:cond_f
|
|
|
|
return-object v8
|
2020-11-12 02:11:44 +00:00
|
|
|
.end method
|