2020-03-27 22:23:51 +00:00
|
|
|
.class public Ly/a0/l;
|
2020-03-14 04:13:36 +00:00
|
|
|
.super Ljava/lang/Object;
|
|
|
|
.source "Indent.kt"
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
|
|
|
|
# direct methods
|
|
|
|
.method public constructor <init>()V
|
|
|
|
.locals 0
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
2019-12-06 03:29:40 +00:00
|
|
|
|
|
|
|
return-void
|
|
|
|
.end method
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
.method public static synthetic trimMargin$default(Ljava/lang/String;Ljava/lang/String;I)Ljava/lang/String;
|
|
|
|
.locals 13
|
|
|
|
|
|
|
|
const/4 v0, 0x1
|
|
|
|
|
|
|
|
and-int/2addr p2, v0
|
2020-03-14 02:12:46 +00:00
|
|
|
|
|
|
|
if-eqz p2, :cond_0
|
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const-string p1, "|"
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
:cond_0
|
|
|
|
const/4 p2, 0x0
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
if-eqz p0, :cond_f
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
if-eqz p1, :cond_e
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const-string v1, ""
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {p1}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
move-result v2
|
|
|
|
|
|
|
|
xor-int/2addr v2, v0
|
|
|
|
|
|
|
|
if-eqz v2, :cond_d
|
|
|
|
|
|
|
|
const-string v2, "\r\n"
|
|
|
|
|
|
|
|
const-string v3, "\n"
|
|
|
|
|
|
|
|
const-string v4, "\r"
|
|
|
|
|
|
|
|
filled-new-array {v2, v3, v4}, [Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v3, 0x6
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v4, 0x0
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {p0, v2, v4, v4, v3}, Ly/a0/u;->splitToSequence$default(Ljava/lang/CharSequence;[Ljava/lang/String;ZII)Lkotlin/sequences/Sequence;
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-static {v2}, Le/k/a/c/e/p/g;->toList(Lkotlin/sequences/Sequence;)Ljava/util/List;
|
|
|
|
|
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/List;->size()I
|
|
|
|
|
|
|
|
move-result v3
|
|
|
|
|
|
|
|
mul-int/lit8 v3, v3, 0x0
|
|
|
|
|
|
|
|
add-int/2addr v3, p0
|
|
|
|
|
|
|
|
invoke-interface {v1}, Ljava/lang/CharSequence;->length()I
|
|
|
|
|
|
|
|
move-result p0
|
|
|
|
|
|
|
|
if-nez p0, :cond_1
|
|
|
|
|
|
|
|
const/4 p0, 0x1
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
goto :goto_0
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-10 23:21:53 +00:00
|
|
|
:cond_1
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 p0, 0x0
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:goto_0
|
2020-03-14 04:13:36 +00:00
|
|
|
if-eqz p0, :cond_2
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
sget-object p0, Ly/a0/j;->d:Ly/a0/j;
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
goto :goto_1
|
2020-03-10 23:21:53 +00:00
|
|
|
|
|
|
|
:cond_2
|
2020-03-27 22:23:51 +00:00
|
|
|
new-instance p0, Ly/a0/k;
|
2020-03-14 04:13:36 +00:00
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-direct {p0, v1}, Ly/a0/k;-><init>(Ljava/lang/String;)V
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
:goto_1
|
|
|
|
invoke-static {v2}, Le/k/a/c/e/p/g;->getLastIndex(Ljava/util/List;)I
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result v1
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
new-instance v5, Ljava/util/ArrayList;
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-direct {v5}, Ljava/util/ArrayList;-><init>()V
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-interface {v2}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result-object v2
|
|
|
|
|
|
|
|
const/4 v6, 0x0
|
|
|
|
|
|
|
|
:goto_2
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
|
|
|
|
move-result v7
|
|
|
|
|
|
|
|
if-eqz v7, :cond_c
|
|
|
|
|
|
|
|
invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v7
|
|
|
|
|
|
|
|
add-int/lit8 v8, v6, 0x1
|
|
|
|
|
|
|
|
if-ltz v6, :cond_b
|
|
|
|
|
|
|
|
check-cast v7, Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v6, :cond_3
|
|
|
|
|
|
|
|
if-ne v6, v1, :cond_4
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_3
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {v7}, Ly/a0/p;->isBlank(Ljava/lang/CharSequence;)Z
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result v6
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
if-eqz v6, :cond_4
|
2019-12-06 03:29:40 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-object v6, p2
|
|
|
|
|
|
|
|
goto :goto_7
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
:cond_4
|
2020-03-14 04:13:36 +00:00
|
|
|
invoke-interface {v7}, Ljava/lang/CharSequence;->length()I
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
move-result v6
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 04:13:36 +00:00
|
|
|
const/4 v9, 0x0
|
|
|
|
|
|
|
|
:goto_3
|
|
|
|
const/4 v10, -0x1
|
|
|
|
|
|
|
|
if-ge v9, v6, :cond_6
|
|
|
|
|
|
|
|
invoke-interface {v7, v9}, Ljava/lang/CharSequence;->charAt(I)C
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
invoke-static {v11}, Le/k/a/c/e/p/g;->isWhitespace(C)Z
|
|
|
|
|
|
|
|
move-result v11
|
|
|
|
|
|
|
|
xor-int/2addr v11, v0
|
|
|
|
|
|
|
|
if-eqz v11, :cond_5
|
|
|
|
|
|
|
|
goto :goto_4
|
|
|
|
|
|
|
|
:cond_5
|
|
|
|
add-int/lit8 v9, v9, 0x1
|
|
|
|
|
|
|
|
goto :goto_3
|
|
|
|
|
|
|
|
:cond_6
|
|
|
|
const/4 v9, -0x1
|
|
|
|
|
|
|
|
:goto_4
|
|
|
|
if-ne v9, v10, :cond_7
|
|
|
|
|
|
|
|
goto :goto_5
|
|
|
|
|
|
|
|
:cond_7
|
|
|
|
const/4 v6, 0x4
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {v7, p1, v9, v4, v6}, Ly/a0/p;->startsWith$default(Ljava/lang/String;Ljava/lang/String;IZI)Z
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
if-eqz v6, :cond_8
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/String;->length()I
|
|
|
|
|
|
|
|
move-result v6
|
|
|
|
|
|
|
|
add-int/2addr v6, v9
|
|
|
|
|
|
|
|
invoke-virtual {v7, v6}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
const-string v9, "(this as java.lang.String).substring(startIndex)"
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {v6, v9}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
goto :goto_6
|
|
|
|
|
|
|
|
:cond_8
|
|
|
|
:goto_5
|
|
|
|
move-object v6, p2
|
|
|
|
|
|
|
|
:goto_6
|
|
|
|
if-eqz v6, :cond_9
|
|
|
|
|
|
|
|
invoke-interface {p0, v6}, Lkotlin/jvm/functions/Function1;->invoke(Ljava/lang/Object;)Ljava/lang/Object;
|
|
|
|
|
|
|
|
move-result-object v6
|
|
|
|
|
|
|
|
check-cast v6, Ljava/lang/String;
|
|
|
|
|
|
|
|
if-eqz v6, :cond_9
|
|
|
|
|
|
|
|
goto :goto_7
|
|
|
|
|
|
|
|
:cond_9
|
|
|
|
move-object v6, v7
|
|
|
|
|
|
|
|
:goto_7
|
|
|
|
if-eqz v6, :cond_a
|
|
|
|
|
|
|
|
invoke-interface {v5, v6}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
|
|
|
|
:cond_a
|
|
|
|
move v6, v8
|
|
|
|
|
|
|
|
goto :goto_2
|
|
|
|
|
|
|
|
:cond_b
|
|
|
|
invoke-static {}, Le/k/a/c/e/p/g;->throwIndexOverflow()V
|
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_c
|
|
|
|
new-instance p0, Ljava/lang/StringBuilder;
|
|
|
|
|
|
|
|
invoke-direct {p0, v3}, Ljava/lang/StringBuilder;-><init>(I)V
|
|
|
|
|
|
|
|
const/4 v10, -0x1
|
|
|
|
|
|
|
|
const/4 v12, 0x0
|
|
|
|
|
|
|
|
const-string v7, "\n"
|
|
|
|
|
|
|
|
const-string v9, ""
|
|
|
|
|
|
|
|
const-string v11, "..."
|
|
|
|
|
|
|
|
move-object v6, p0
|
|
|
|
|
|
|
|
move-object v8, v9
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static/range {v5 .. v12}, Ly/q/l;->joinTo(Ljava/lang/Iterable;Ljava/lang/Appendable;Ljava/lang/CharSequence;Ljava/lang/CharSequence;Ljava/lang/CharSequence;ILjava/lang/CharSequence;Lkotlin/jvm/functions/Function1;)Ljava/lang/Appendable;
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p0
|
|
|
|
|
|
|
|
const-string p1, "mapIndexedNotNull { inde\u2026\"\\n\")\n .toString()"
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {p0, p1}, Ly/u/b/j;->checkExpressionValueIsNotNull(Ljava/lang/Object;Ljava/lang/String;)V
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
return-object p0
|
|
|
|
|
|
|
|
:cond_d
|
|
|
|
new-instance p0, Ljava/lang/IllegalArgumentException;
|
|
|
|
|
|
|
|
const-string p1, "marginPrefix must be non-blank string."
|
|
|
|
|
|
|
|
invoke-virtual {p1}, Ljava/lang/Object;->toString()Ljava/lang/String;
|
|
|
|
|
|
|
|
move-result-object p1
|
|
|
|
|
|
|
|
invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
|
2020-03-10 23:21:53 +00:00
|
|
|
|
2020-03-14 02:12:46 +00:00
|
|
|
throw p0
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
:cond_e
|
|
|
|
const-string p0, "marginPrefix"
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
throw p2
|
|
|
|
|
|
|
|
:cond_f
|
|
|
|
const-string p0, "$this$trimMargin"
|
|
|
|
|
2020-03-27 22:23:51 +00:00
|
|
|
invoke-static {p0}, Ly/u/b/j;->a(Ljava/lang/String;)V
|
2020-03-14 04:13:36 +00:00
|
|
|
|
|
|
|
throw p2
|
2019-12-06 03:29:40 +00:00
|
|
|
.end method
|