Rabbit-R1/original r1/smali/smali_classes2/androidx/room/util/StringUtil.smali
2024-05-21 17:08:36 -04:00

290 lines
6.9 KiB
Smali

.class public final Landroidx/room/util/StringUtil;
.super Ljava/lang/Object;
.source "StringUtil.kt"
# annotations
.annotation system Ldalvik/annotation/SourceDebugExtension;
value = "SMAP\nStringUtil.kt\nKotlin\n*S Kotlin\n*F\n+ 1 StringUtil.kt\nandroidx/room/util/StringUtil\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n+ 3 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,85:1\n1603#2,9:86\n1851#2:95\n1852#2:97\n1612#2:98\n1#3:96\n*S KotlinDebug\n*F\n+ 1 StringUtil.kt\nandroidx/room/util/StringUtil\n*L\n66#1:86,9\n66#1:95\n66#1:97\n66#1:98\n66#1:96\n*E\n"
.end annotation
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u0000*\n\u0000\n\u0002\u0010\u0011\n\u0002\u0010\u000e\n\u0002\u0008\u0004\n\u0002\u0010\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0010 \n\u0002\u0008\u0003\u001a\u0016\u0010\u0006\u001a\u00020\u00072\u0006\u0010\u0008\u001a\u00020\t2\u0006\u0010\n\u001a\u00020\u000b\u001a\u0018\u0010\u000c\u001a\u0004\u0018\u00010\u00022\u000e\u0010\r\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u000e\u001a\u0006\u0010\u000f\u001a\u00020\t\u001a\u0018\u0010\u0010\u001a\n\u0012\u0004\u0012\u00020\u000b\u0018\u00010\u000e2\u0008\u0010\r\u001a\u0004\u0018\u00010\u0002\" \u0010\u0000\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u00020\u00018\u0006X\u0087\u0004\u00a2\u0006\n\n\u0002\u0010\u0005\u0012\u0004\u0008\u0003\u0010\u0004\u00a8\u0006\u0011"
}
d2 = {
"EMPTY_STRING_ARRAY",
"",
"",
"getEMPTY_STRING_ARRAY$annotations",
"()V",
"[Ljava/lang/String;",
"appendPlaceholders",
"",
"builder",
"Ljava/lang/StringBuilder;",
"count",
"",
"joinIntoString",
"input",
"",
"newStringBuilder",
"splitToIntList",
"room-runtime_release"
}
k = 0x2
mv = {
0x1,
0x7,
0x1
}
xi = 0x30
.end annotation
# static fields
.field public static final EMPTY_STRING_ARRAY:[Ljava/lang/String;
# direct methods
.method static constructor <clinit>()V
.locals 1
const/4 v0, 0x0
new-array v0, v0, [Ljava/lang/String;
sput-object v0, Landroidx/room/util/StringUtil;->EMPTY_STRING_ARRAY:[Ljava/lang/String;
return-void
.end method
.method public static final appendPlaceholders(Ljava/lang/StringBuilder;I)V
.locals 2
const-string v0, "builder"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 v0, 0x0
:goto_0
if-ge v0, p1, :cond_1
const-string v1, "?"
.line 49
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v1, p1, -0x1
if-ge v0, v1, :cond_0
const-string v1, ","
.line 51
invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_0
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_1
return-void
.end method
.method public static synthetic getEMPTY_STRING_ARRAY$annotations()V
.locals 0
return-void
.end method
.method public static final joinIntoString(Ljava/util/List;)Ljava/lang/String;
.locals 9
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/Integer;",
">;)",
"Ljava/lang/String;"
}
.end annotation
if-eqz p0, :cond_0
.line 84
move-object v0, p0
check-cast v0, Ljava/lang/Iterable;
const-string p0, ","
move-object v1, p0
check-cast v1, Ljava/lang/CharSequence;
const/4 v2, 0x0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x0
const/4 v6, 0x0
const/16 v7, 0x3e
const/4 v8, 0x0
invoke-static/range {v0 .. v8}, Lkotlin/collections/CollectionsKt;->joinToString$default(Ljava/lang/Iterable;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 p0
goto :goto_0
:cond_0
const/4 p0, 0x0
:goto_0
return-object p0
.end method
.method public static final newStringBuilder()Ljava/lang/StringBuilder;
.locals 1
.line 37
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
return-object v0
.end method
.method public static final splitToIntList(Ljava/lang/String;)Ljava/util/List;
.locals 7
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/Integer;",
">;"
}
.end annotation
const/4 v0, 0x0
if-eqz p0, :cond_2
.line 66
move-object v1, p0
check-cast v1, Ljava/lang/CharSequence;
const/4 p0, 0x1
new-array v2, p0, [C
const/4 p0, 0x0
const/16 v3, 0x2c
aput-char v3, v2, p0
const/4 v3, 0x0
const/4 v4, 0x0
const/4 v5, 0x6
const/4 v6, 0x0
invoke-static/range {v1 .. v6}, Lkotlin/text/StringsKt;->split$default(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
move-result-object p0
if-eqz p0, :cond_2
check-cast p0, Ljava/lang/Iterable;
.line 86
new-instance v1, Ljava/util/ArrayList;
invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V
check-cast v1, Ljava/util/Collection;
.line 95
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
move-result-object p0
:cond_0
:goto_0
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
move-result v2
if-eqz v2, :cond_1
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
move-result-object v2
.line 94
check-cast v2, Ljava/lang/String;
.line 68
:try_start_0
invoke-static {v2}, Ljava/lang/Integer;->parseInt(Ljava/lang/String;)I
move-result v2
invoke-static {v2}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer;
move-result-object v2
:try_end_0
.catch Ljava/lang/NumberFormatException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_1
:catch_0
move-exception v2
const-string v3, "Malformed integer list"
.line 70
check-cast v2, Ljava/lang/Throwable;
const-string v4, "ROOM"
invoke-static {v4, v3, v2}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)I
.line 71
move-object v2, v0
check-cast v2, Ljava/lang/Integer;
move-object v2, v0
:goto_1
if-eqz v2, :cond_0
.line 94
invoke-interface {v1, v2}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
goto :goto_0
.line 98
:cond_1
move-object v0, v1
check-cast v0, Ljava/util/List;
:cond_2
return-object v0
.end method