476 lines
11 KiB
Smali
476 lines
11 KiB
Smali
.class public Lkotlin/io/k;
|
|
.super Ljava/lang/Object;
|
|
.source "FilePathComponents.kt"
|
|
|
|
|
|
# annotations
|
|
.annotation system Ldalvik/annotation/SourceDebugExtension;
|
|
value = "SMAP\nFilePathComponents.kt\nKotlin\n*S Kotlin\n*F\n+ 1 FilePathComponents.kt\nkotlin/io/FilesKt__FilePathComponentsKt\n+ 2 _Collections.kt\nkotlin/collections/CollectionsKt___CollectionsKt\n*L\n1#1,148:1\n1547#2:149\n1618#2,3:150\n*S KotlinDebug\n*F\n+ 1 FilePathComponents.kt\nkotlin/io/FilesKt__FilePathComponentsKt\n*L\n133#1:149\n133#1:150,3\n*E\n"
|
|
.end annotation
|
|
|
|
.annotation runtime Lkotlin/Metadata;
|
|
bv = {}
|
|
d1 = {
|
|
"\u0000 \n\u0002\u0010\u000e\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\n\n\u0002\u0010\u000b\n\u0002\u0008\u0004\u001a\u0013\u0010\u0002\u001a\u00020\u0001*\u00020\u0000H\u0002\u00a2\u0006\u0004\u0008\u0002\u0010\u0003\u001a\u000c\u0010\u0006\u001a\u00020\u0005*\u00020\u0004H\u0000\u001a\u001c\u0010\t\u001a\u00020\u0004*\u00020\u00042\u0006\u0010\u0007\u001a\u00020\u00012\u0006\u0010\u0008\u001a\u00020\u0001H\u0000\"\u0018\u0010\u000c\u001a\u00020\u0000*\u00020\u00048@X\u0080\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\n\u0010\u000b\"\u0018\u0010\u000f\u001a\u00020\u0004*\u00020\u00048@X\u0080\u0004\u00a2\u0006\u0006\u001a\u0004\u0008\r\u0010\u000e\"\u0015\u0010\u0013\u001a\u00020\u0010*\u00020\u00048F\u00a2\u0006\u0006\u001a\u0004\u0008\u0011\u0010\u0012\u00a8\u0006\u0014"
|
|
}
|
|
d2 = {
|
|
"",
|
|
"",
|
|
"b",
|
|
"(Ljava/lang/String;)I",
|
|
"Ljava/io/File;",
|
|
"Lkotlin/io/g;",
|
|
"f",
|
|
"beginIndex",
|
|
"endIndex",
|
|
"e",
|
|
"c",
|
|
"(Ljava/io/File;)Ljava/lang/String;",
|
|
"rootName",
|
|
"a",
|
|
"(Ljava/io/File;)Ljava/io/File;",
|
|
"root",
|
|
"",
|
|
"d",
|
|
"(Ljava/io/File;)Z",
|
|
"isRooted",
|
|
"kotlin-stdlib"
|
|
}
|
|
k = 0x5
|
|
mv = {
|
|
0x1,
|
|
0x5,
|
|
0x1
|
|
}
|
|
xs = "kotlin/io/FilesKt"
|
|
.end annotation
|
|
|
|
|
|
# direct methods
|
|
.method public constructor <init>()V
|
|
.locals 0
|
|
|
|
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
|
|
|
|
return-void
|
|
.end method
|
|
|
|
.method public static final a(Ljava/io/File;)Ljava/io/File;
|
|
.locals 1
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "$this$root"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
new-instance v0, Ljava/io/File;
|
|
|
|
invoke-static {p0}, Lkotlin/io/k;->c(Ljava/io/File;)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-direct {v0, p0}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
return-object v0
|
|
.end method
|
|
|
|
.method public static final b(Ljava/lang/String;)I
|
|
.locals 8
|
|
|
|
.line 1
|
|
sget-char v1, Ljava/io/File;->separatorChar:C
|
|
|
|
const/4 v2, 0x0
|
|
|
|
const/4 v3, 0x0
|
|
|
|
const/4 v4, 0x4
|
|
|
|
const/4 v5, 0x0
|
|
|
|
move-object v0, p0
|
|
|
|
invoke-static/range {v0 .. v5}, Lkotlin/text/StringsKt__StringsKt;->q3(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x1
|
|
|
|
if-nez v0, :cond_2
|
|
|
|
.line 2
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result v0
|
|
|
|
if-le v0, v1, :cond_1
|
|
|
|
invoke-virtual {p0, v1}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v0
|
|
|
|
sget-char v3, Ljava/io/File;->separatorChar:C
|
|
|
|
if-ne v0, v3, :cond_1
|
|
|
|
const/4 v4, 0x2
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v2, p0
|
|
|
|
.line 3
|
|
invoke-static/range {v2 .. v7}, Lkotlin/text/StringsKt__StringsKt;->q3(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_1
|
|
|
|
.line 4
|
|
sget-char v3, Ljava/io/File;->separatorChar:C
|
|
|
|
add-int/lit8 v4, v0, 0x1
|
|
|
|
const/4 v5, 0x0
|
|
|
|
const/4 v6, 0x4
|
|
|
|
const/4 v7, 0x0
|
|
|
|
move-object v2, p0
|
|
|
|
invoke-static/range {v2 .. v7}, Lkotlin/text/StringsKt__StringsKt;->q3(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
|
|
|
|
move-result v0
|
|
|
|
if-ltz v0, :cond_0
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
|
|
.line 5
|
|
:cond_0
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_1
|
|
return v1
|
|
|
|
:cond_2
|
|
const/16 v2, 0x3a
|
|
|
|
if-lez v0, :cond_3
|
|
|
|
add-int/lit8 v3, v0, -0x1
|
|
|
|
.line 6
|
|
invoke-virtual {p0, v3}, Ljava/lang/String;->charAt(I)C
|
|
|
|
move-result v3
|
|
|
|
if-ne v3, v2, :cond_3
|
|
|
|
add-int/2addr v0, v1
|
|
|
|
return v0
|
|
|
|
:cond_3
|
|
const/4 v1, -0x1
|
|
|
|
const/4 v3, 0x0
|
|
|
|
if-ne v0, v1, :cond_4
|
|
|
|
const/4 v0, 0x2
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 7
|
|
invoke-static {p0, v2, v3, v0, v1}, Lkotlin/text/StringsKt__StringsKt;->a3(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
|
|
|
|
move-result v0
|
|
|
|
if-eqz v0, :cond_4
|
|
|
|
.line 8
|
|
invoke-virtual {p0}, Ljava/lang/String;->length()I
|
|
|
|
move-result p0
|
|
|
|
return p0
|
|
|
|
:cond_4
|
|
return v3
|
|
.end method
|
|
|
|
.method public static final c(Ljava/io/File;)Ljava/lang/String;
|
|
.locals 2
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "$this$rootName"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object v0
|
|
|
|
const-string v1, "path"
|
|
|
|
invoke-static {v0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-static {p0, v1}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lkotlin/io/k;->b(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
const-string v1, "null cannot be cast to non-null type java.lang.String"
|
|
|
|
invoke-static {v0, v1}, Ljava/util/Objects;->requireNonNull(Ljava/lang/Object;Ljava/lang/String;)Ljava/lang/Object;
|
|
|
|
const/4 v1, 0x0
|
|
|
|
invoke-virtual {v0, v1, p0}, Ljava/lang/String;->substring(II)Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final d(Ljava/io/File;)Z
|
|
.locals 1
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
|
|
const-string v0, "$this$isRooted"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "path"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lkotlin/io/k;->b(Ljava/lang/String;)I
|
|
|
|
move-result p0
|
|
|
|
if-lez p0, :cond_0
|
|
|
|
const/4 p0, 0x1
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
const/4 p0, 0x0
|
|
|
|
:goto_0
|
|
return p0
|
|
.end method
|
|
|
|
.method public static final e(Ljava/io/File;II)Ljava/io/File;
|
|
.locals 1
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "$this$subPath"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-static {p0}, Lkotlin/io/k;->f(Ljava/io/File;)Lkotlin/io/g;
|
|
|
|
move-result-object p0
|
|
|
|
invoke-virtual {p0, p1, p2}, Lkotlin/io/g;->j(II)Ljava/io/File;
|
|
|
|
move-result-object p0
|
|
|
|
return-object p0
|
|
.end method
|
|
|
|
.method public static final f(Ljava/io/File;)Lkotlin/io/g;
|
|
.locals 10
|
|
.param p0 # Ljava/io/File;
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
.end param
|
|
.annotation build Lorg/jetbrains/annotations/NotNull;
|
|
.end annotation
|
|
|
|
const-string v0, "$this$toComponents"
|
|
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->p(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 1
|
|
invoke-virtual {p0}, Ljava/io/File;->getPath()Ljava/lang/String;
|
|
|
|
move-result-object p0
|
|
|
|
const-string v0, "path"
|
|
|
|
.line 2
|
|
invoke-static {p0, v0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
invoke-static {p0}, Lkotlin/io/k;->b(Ljava/lang/String;)I
|
|
|
|
move-result v0
|
|
|
|
const/4 v1, 0x0
|
|
|
|
.line 3
|
|
invoke-virtual {p0, v1, v0}, 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/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 4
|
|
invoke-virtual {p0, v0}, Ljava/lang/String;->substring(I)Ljava/lang/String;
|
|
|
|
move-result-object v4
|
|
|
|
const-string p0, "(this as java.lang.String).substring(startIndex)"
|
|
|
|
invoke-static {v4, p0}, Lkotlin/jvm/internal/f0;->o(Ljava/lang/Object;Ljava/lang/String;)V
|
|
|
|
.line 5
|
|
invoke-interface {v4}, Ljava/lang/CharSequence;->length()I
|
|
|
|
move-result p0
|
|
|
|
const/4 v0, 0x1
|
|
|
|
if-nez p0, :cond_0
|
|
|
|
move p0, v0
|
|
|
|
goto :goto_0
|
|
|
|
:cond_0
|
|
move p0, v1
|
|
|
|
:goto_0
|
|
if-eqz p0, :cond_1
|
|
|
|
invoke-static {}, Lkotlin/collections/CollectionsKt__CollectionsKt;->E()Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
goto :goto_2
|
|
|
|
:cond_1
|
|
new-array v5, v0, [C
|
|
|
|
sget-char p0, Ljava/io/File;->separatorChar:C
|
|
|
|
aput-char p0, v5, v1
|
|
|
|
const/4 v6, 0x0
|
|
|
|
const/4 v7, 0x0
|
|
|
|
const/4 v8, 0x6
|
|
|
|
const/4 v9, 0x0
|
|
|
|
invoke-static/range {v4 .. v9}, Lkotlin/text/StringsKt__StringsKt;->S4(Ljava/lang/CharSequence;[CZIILjava/lang/Object;)Ljava/util/List;
|
|
|
|
move-result-object p0
|
|
|
|
.line 6
|
|
new-instance v0, Ljava/util/ArrayList;
|
|
|
|
const/16 v1, 0xa
|
|
|
|
invoke-static {p0, v1}, Lkotlin/collections/x;->Y(Ljava/lang/Iterable;I)I
|
|
|
|
move-result v1
|
|
|
|
invoke-direct {v0, v1}, Ljava/util/ArrayList;-><init>(I)V
|
|
|
|
.line 7
|
|
invoke-interface {p0}, Ljava/lang/Iterable;->iterator()Ljava/util/Iterator;
|
|
|
|
move-result-object p0
|
|
|
|
:goto_1
|
|
invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z
|
|
|
|
move-result v1
|
|
|
|
if-eqz v1, :cond_2
|
|
|
|
invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;
|
|
|
|
move-result-object v1
|
|
|
|
.line 8
|
|
check-cast v1, Ljava/lang/String;
|
|
|
|
new-instance v3, Ljava/io/File;
|
|
|
|
.line 9
|
|
invoke-direct {v3, v1}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-interface {v0, v3}, Ljava/util/Collection;->add(Ljava/lang/Object;)Z
|
|
|
|
goto :goto_1
|
|
|
|
:cond_2
|
|
move-object p0, v0
|
|
|
|
.line 10
|
|
:goto_2
|
|
new-instance v0, Lkotlin/io/g;
|
|
|
|
new-instance v1, Ljava/io/File;
|
|
|
|
invoke-direct {v1, v2}, Ljava/io/File;-><init>(Ljava/lang/String;)V
|
|
|
|
invoke-direct {v0, v1, p0}, Lkotlin/io/g;-><init>(Ljava/io/File;Ljava/util/List;)V
|
|
|
|
return-object v0
|
|
.end method
|