Rabbit-R1/switch port/smali/smali_classes3/okhttp3/HttpUrl$Companion.smali
2024-05-21 17:08:36 -04:00

1512 lines
35 KiB
Smali

.class public final Lokhttp3/HttpUrl$Companion;
.super Ljava/lang/Object;
.source "HttpUrl.kt"
# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
value = Lokhttp3/HttpUrl;
.end annotation
.annotation system Ldalvik/annotation/InnerClass;
accessFlags = 0x19
name = "Companion"
.end annotation
.annotation runtime Lkotlin/Metadata;
bv = {
0x1,
0x0,
0x3
}
d1 = {
"\u0000p\n\u0002\u0018\u0002\n\u0002\u0010\u0000\n\u0002\u0008\u0002\n\u0002\u0010\u000e\n\u0002\u0008\u0003\n\u0002\u0010\u0019\n\u0002\u0008\t\n\u0002\u0010\u0008\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0007\n\u0002\u0010\u0002\n\u0002\u0010 \n\u0000\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0002\u0008\u0002\n\u0002\u0010!\n\u0002\u0008\u0004\n\u0002\u0018\u0002\n\u0002\u0008\u0004\u0008\u0086\u0003\u0018\u00002\u00020\u0001B\u0007\u0008\u0002\u00a2\u0006\u0002\u0010\u0002J\u0010\u0010\u0011\u001a\u00020\u00122\u0006\u0010\u0013\u001a\u00020\u0004H\u0007J\u0017\u0010\u0014\u001a\u0004\u0018\u00010\u00152\u0006\u0010\u0016\u001a\u00020\u0017H\u0007\u00a2\u0006\u0002\u0008\u0018J\u0017\u0010\u0014\u001a\u0004\u0018\u00010\u00152\u0006\u0010\u0019\u001a\u00020\u001aH\u0007\u00a2\u0006\u0002\u0008\u0018J\u0015\u0010\u0014\u001a\u00020\u00152\u0006\u0010\u0019\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0008\u0018J\u0017\u0010\u001b\u001a\u0004\u0018\u00010\u00152\u0006\u0010\u0019\u001a\u00020\u0004H\u0007\u00a2\u0006\u0002\u0008\u001cJa\u0010\u001d\u001a\u00020\u0004*\u00020\u00042\u0008\u0008\u0002\u0010\u001e\u001a\u00020\u00122\u0008\u0008\u0002\u0010\u001f\u001a\u00020\u00122\u0006\u0010 \u001a\u00020\u00042\u0008\u0008\u0002\u0010!\u001a\u00020\"2\u0008\u0008\u0002\u0010#\u001a\u00020\"2\u0008\u0008\u0002\u0010$\u001a\u00020\"2\u0008\u0008\u0002\u0010%\u001a\u00020\"2\n\u0008\u0002\u0010&\u001a\u0004\u0018\u00010\'H\u0000\u00a2\u0006\u0002\u0008(J\u001c\u0010)\u001a\u00020\"*\u00020\u00042\u0006\u0010\u001e\u001a\u00020\u00122\u0006\u0010\u001f\u001a\u00020\u0012H\u0002J/\u0010*\u001a\u00020\u0004*\u00020\u00042\u0008\u0008\u0002\u0010\u001e\u001a\u00020\u00122\u0008\u0008\u0002\u0010\u001f\u001a\u00020\u00122\u0008\u0008\u0002\u0010$\u001a\u00020\"H\u0000\u00a2\u0006\u0002\u0008+J\u0011\u0010,\u001a\u00020\u0015*\u00020\u0004H\u0007\u00a2\u0006\u0002\u0008\u0014J\u0013\u0010-\u001a\u0004\u0018\u00010\u0015*\u00020\u0017H\u0007\u00a2\u0006\u0002\u0008\u0014J\u0013\u0010-\u001a\u0004\u0018\u00010\u0015*\u00020\u001aH\u0007\u00a2\u0006\u0002\u0008\u0014J\u0013\u0010-\u001a\u0004\u0018\u00010\u0015*\u00020\u0004H\u0007\u00a2\u0006\u0002\u0008\u001bJ#\u0010.\u001a\u00020/*\u0008\u0012\u0004\u0012\u00020\u0004002\n\u00101\u001a\u000602j\u0002`3H\u0000\u00a2\u0006\u0002\u00084J\u0019\u00105\u001a\n\u0012\u0006\u0012\u0004\u0018\u00010\u000406*\u00020\u0004H\u0000\u00a2\u0006\u0002\u00087J%\u00108\u001a\u00020/*\n\u0012\u0006\u0012\u0004\u0018\u00010\u0004002\n\u00101\u001a\u000602j\u0002`3H\u0000\u00a2\u0006\u0002\u00089JV\u0010:\u001a\u00020/*\u00020;2\u0006\u0010<\u001a\u00020\u00042\u0006\u0010\u001e\u001a\u00020\u00122\u0006\u0010\u001f\u001a\u00020\u00122\u0006\u0010 \u001a\u00020\u00042\u0006\u0010!\u001a\u00020\"2\u0006\u0010#\u001a\u00020\"2\u0006\u0010$\u001a\u00020\"2\u0006\u0010%\u001a\u00020\"2\u0008\u0010&\u001a\u0004\u0018\u00010\'H\u0002J,\u0010=\u001a\u00020/*\u00020;2\u0006\u0010>\u001a\u00020\u00042\u0006\u0010\u001e\u001a\u00020\u00122\u0006\u0010\u001f\u001a\u00020\u00122\u0006\u0010$\u001a\u00020\"H\u0002R\u000e\u0010\u0003\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0005\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0006\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0007\u001a\u00020\u0008X\u0082\u0004\u00a2\u0006\u0002\n\u0000R\u000e\u0010\t\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\n\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000b\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000c\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\r\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000e\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u000f\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000R\u000e\u0010\u0010\u001a\u00020\u0004X\u0080T\u00a2\u0006\u0002\n\u0000\u00a8\u0006?"
}
d2 = {
"Lokhttp3/HttpUrl$Companion;",
"",
"()V",
"FORM_ENCODE_SET",
"",
"FRAGMENT_ENCODE_SET",
"FRAGMENT_ENCODE_SET_URI",
"HEX_DIGITS",
"",
"PASSWORD_ENCODE_SET",
"PATH_SEGMENT_ENCODE_SET",
"PATH_SEGMENT_ENCODE_SET_URI",
"QUERY_COMPONENT_ENCODE_SET",
"QUERY_COMPONENT_ENCODE_SET_URI",
"QUERY_COMPONENT_REENCODE_SET",
"QUERY_ENCODE_SET",
"USERNAME_ENCODE_SET",
"defaultPort",
"",
"scheme",
"get",
"Lokhttp3/HttpUrl;",
"uri",
"Ljava/net/URI;",
"-deprecated_get",
"url",
"Ljava/net/URL;",
"parse",
"-deprecated_parse",
"canonicalize",
"pos",
"limit",
"encodeSet",
"alreadyEncoded",
"",
"strict",
"plusIsSpace",
"unicodeAllowed",
"charset",
"Ljava/nio/charset/Charset;",
"canonicalize$okhttp",
"isPercentEncoded",
"percentDecode",
"percentDecode$okhttp",
"toHttpUrl",
"toHttpUrlOrNull",
"toPathString",
"",
"",
"out",
"Ljava/lang/StringBuilder;",
"Lkotlin/text/StringBuilder;",
"toPathString$okhttp",
"toQueryNamesAndValues",
"",
"toQueryNamesAndValues$okhttp",
"toQueryString",
"toQueryString$okhttp",
"writeCanonicalized",
"Lokio/Buffer;",
"input",
"writePercentDecoded",
"encoded",
"okhttp"
}
k = 0x1
mv = {
0x1,
0x4,
0x0
}
.end annotation
# direct methods
.method private constructor <init>()V
.locals 0
.line 1555
invoke-direct {p0}, Ljava/lang/Object;-><init>()V
return-void
.end method
.method public synthetic constructor <init>(Lkotlin/jvm/internal/DefaultConstructorMarker;)V
.locals 0
.line 1555
invoke-direct {p0}, Lokhttp3/HttpUrl$Companion;-><init>()V
return-void
.end method
.method public static synthetic canonicalize$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;ILjava/lang/Object;)Ljava/lang/String;
.locals 13
move/from16 v0, p10
and-int/lit8 v1, v0, 0x1
const/4 v2, 0x0
if-eqz v1, :cond_0
move v5, v2
goto :goto_0
:cond_0
move v5, p2
:goto_0
and-int/lit8 v1, v0, 0x2
if-eqz v1, :cond_1
.line 1772
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
move v6, v1
goto :goto_1
:cond_1
move/from16 v6, p3
:goto_1
and-int/lit8 v1, v0, 0x8
if-eqz v1, :cond_2
move v8, v2
goto :goto_2
:cond_2
move/from16 v8, p5
:goto_2
and-int/lit8 v1, v0, 0x10
if-eqz v1, :cond_3
move v9, v2
goto :goto_3
:cond_3
move/from16 v9, p6
:goto_3
and-int/lit8 v1, v0, 0x20
if-eqz v1, :cond_4
move v10, v2
goto :goto_4
:cond_4
move/from16 v10, p7
:goto_4
and-int/lit8 v1, v0, 0x40
if-eqz v1, :cond_5
move v11, v2
goto :goto_5
:cond_5
move/from16 v11, p8
:goto_5
and-int/lit16 v0, v0, 0x80
if-eqz v0, :cond_6
const/4 v0, 0x0
.line 1778
move-object v1, v0
check-cast v1, Ljava/nio/charset/Charset;
move-object v12, v0
goto :goto_6
:cond_6
move-object/from16 v12, p9
:goto_6
move-object v3, p0
move-object v4, p1
move-object/from16 v7, p4
invoke-virtual/range {v3 .. v12}, Lokhttp3/HttpUrl$Companion;->canonicalize$okhttp(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
move-result-object v0
return-object v0
.end method
.method private final isPercentEncoded(Ljava/lang/String;II)Z
.locals 1
add-int/lit8 p0, p2, 0x2
if-ge p0, p3, :cond_0
.line 1745
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
move-result p3
const/16 v0, 0x25
if-ne p3, v0, :cond_0
const/4 p3, 0x1
add-int/2addr p2, p3
.line 1746
invoke-virtual {p1, p2}, Ljava/lang/String;->charAt(I)C
move-result p2
invoke-static {p2}, Lokhttp3/internal/Util;->parseHexDigit(C)I
move-result p2
const/4 v0, -0x1
if-eq p2, v0, :cond_0
.line 1747
invoke-virtual {p1, p0}, Ljava/lang/String;->charAt(I)C
move-result p0
invoke-static {p0}, Lokhttp3/internal/Util;->parseHexDigit(C)I
move-result p0
if-eq p0, v0, :cond_0
goto :goto_0
:cond_0
const/4 p3, 0x0
:goto_0
return p3
.end method
.method public static synthetic percentDecode$okhttp$default(Lokhttp3/HttpUrl$Companion;Ljava/lang/String;IIZILjava/lang/Object;)Ljava/lang/String;
.locals 1
and-int/lit8 p6, p5, 0x1
const/4 v0, 0x0
if-eqz p6, :cond_0
move p2, v0
:cond_0
and-int/lit8 p6, p5, 0x2
if-eqz p6, :cond_1
.line 1696
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result p3
:cond_1
and-int/lit8 p5, p5, 0x4
if-eqz p5, :cond_2
move p4, v0
.line 1697
:cond_2
invoke-virtual {p0, p1, p2, p3, p4}, Lokhttp3/HttpUrl$Companion;->percentDecode$okhttp(Ljava/lang/String;IIZ)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private final writeCanonicalized(Lokio/Buffer;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)V
.locals 14
move-object v0, p0
move-object v1, p1
move-object/from16 v2, p2
move/from16 v3, p4
move-object/from16 v4, p10
const/4 v5, 0x0
.line 1825
move-object v6, v5
check-cast v6, Lokio/Buffer;
move/from16 v6, p3
move-object v7, v5
:goto_0
if-ge v6, v3, :cond_b
if-eqz v2, :cond_a
.line 1829
invoke-virtual {v2, v6}, Ljava/lang/String;->codePointAt(I)I
move-result v8
if-eqz p6, :cond_0
const/16 v9, 0x9
if-eq v8, v9, :cond_9
const/16 v9, 0xa
if-eq v8, v9, :cond_9
const/16 v9, 0xc
if-eq v8, v9, :cond_9
const/16 v9, 0xd
if-eq v8, v9, :cond_9
:cond_0
const/16 v9, 0x2b
if-ne v8, v9, :cond_2
if-eqz p8, :cond_2
if-eqz p6, :cond_1
const-string v9, "+"
goto :goto_1
:cond_1
const-string v9, "%2B"
.line 1835
:goto_1
invoke-virtual {p1, v9}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;)Lokio/Buffer;
goto/16 :goto_5
:cond_2
const/16 v9, 0x20
const/16 v10, 0x25
if-lt v8, v9, :cond_5
const/16 v9, 0x7f
if-eq v8, v9, :cond_5
const/16 v9, 0x80
if-lt v8, v9, :cond_3
if-eqz p9, :cond_5
.line 1839
:cond_3
move-object/from16 v9, p5
check-cast v9, Ljava/lang/CharSequence;
int-to-char v11, v8
const/4 v12, 0x0
const/4 v13, 0x2
invoke-static {v9, v11, v12, v13, v5}, Lkotlin/text/StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
move-result v9
if-nez v9, :cond_5
if-ne v8, v10, :cond_4
if-eqz p6, :cond_5
if-eqz p7, :cond_4
.line 1841
move-object v9, v0
check-cast v9, Lokhttp3/HttpUrl$Companion;
invoke-direct {p0, v2, v6, v3}, Lokhttp3/HttpUrl$Companion;->isPercentEncoded(Ljava/lang/String;II)Z
move-result v9
if-nez v9, :cond_4
goto :goto_2
.line 1861
:cond_4
invoke-virtual {p1, v8}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
goto :goto_5
:cond_5
:goto_2
if-nez v7, :cond_6
.line 1844
new-instance v7, Lokio/Buffer;
invoke-direct {v7}, Lokio/Buffer;-><init>()V
:cond_6
if-eqz v4, :cond_8
.line 1847
sget-object v9, Ljava/nio/charset/StandardCharsets;->UTF_8:Ljava/nio/charset/Charset;
invoke-static {v4, v9}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v9
if-eqz v9, :cond_7
goto :goto_3
.line 1850
:cond_7
invoke-static {v8}, Ljava/lang/Character;->charCount(I)I
move-result v9
add-int/2addr v9, v6
invoke-virtual {v7, v2, v6, v9, v4}, Lokio/Buffer;->writeString(Ljava/lang/String;IILjava/nio/charset/Charset;)Lokio/Buffer;
goto :goto_4
.line 1848
:cond_8
:goto_3
invoke-virtual {v7, v8}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
.line 1853
:goto_4
invoke-virtual {v7}, Lokio/Buffer;->exhausted()Z
move-result v9
if-nez v9, :cond_9
.line 1854
invoke-virtual {v7}, Lokio/Buffer;->readByte()B
move-result v9
and-int/lit16 v11, v9, 0xff
.line 1855
invoke-virtual {p1, v10}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 1856
invoke-static {}, Lokhttp3/HttpUrl;->access$getHEX_DIGITS$cp()[C
move-result-object v12
shr-int/lit8 v11, v11, 0x4
and-int/lit8 v11, v11, 0xf
aget-char v11, v12, v11
invoke-virtual {p1, v11}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 1857
invoke-static {}, Lokhttp3/HttpUrl;->access$getHEX_DIGITS$cp()[C
move-result-object v11
and-int/lit8 v9, v9, 0xf
aget-char v9, v11, v9
invoke-virtual {p1, v9}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
goto :goto_4
.line 1863
:cond_9
:goto_5
invoke-static {v8}, Ljava/lang/Character;->charCount(I)I
move-result v8
add-int/2addr v6, v8
goto/16 :goto_0
.line 1829
:cond_a
new-instance v0, Ljava/lang/NullPointerException;
const-string v1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {v0, v1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw v0
:cond_b
return-void
.end method
.method private final writePercentDecoded(Lokio/Buffer;Ljava/lang/String;IIZ)V
.locals 4
:goto_0
if-ge p3, p4, :cond_3
if-eqz p2, :cond_2
.line 1723
invoke-virtual {p2, p3}, Ljava/lang/String;->codePointAt(I)I
move-result p0
const/16 v0, 0x25
if-ne p0, v0, :cond_0
add-int/lit8 v0, p3, 0x2
if-ge v0, p4, :cond_0
add-int/lit8 v1, p3, 0x1
.line 1725
invoke-virtual {p2, v1}, Ljava/lang/String;->charAt(I)C
move-result v1
invoke-static {v1}, Lokhttp3/internal/Util;->parseHexDigit(C)I
move-result v1
.line 1726
invoke-virtual {p2, v0}, Ljava/lang/String;->charAt(I)C
move-result v2
invoke-static {v2}, Lokhttp3/internal/Util;->parseHexDigit(C)I
move-result v2
const/4 v3, -0x1
if-eq v1, v3, :cond_1
if-eq v2, v3, :cond_1
shl-int/lit8 p3, v1, 0x4
add-int/2addr p3, v2
.line 1728
invoke-virtual {p1, p3}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
.line 1730
invoke-static {p0}, Ljava/lang/Character;->charCount(I)I
move-result p0
add-int p3, v0, p0
goto :goto_0
:cond_0
const/16 v0, 0x2b
if-ne p0, v0, :cond_1
if-eqz p5, :cond_1
const/16 p0, 0x20
.line 1734
invoke-virtual {p1, p0}, Lokio/Buffer;->writeByte(I)Lokio/Buffer;
add-int/lit8 p3, p3, 0x1
goto :goto_0
.line 1738
:cond_1
invoke-virtual {p1, p0}, Lokio/Buffer;->writeUtf8CodePoint(I)Lokio/Buffer;
.line 1739
invoke-static {p0}, Ljava/lang/Character;->charCount(I)I
move-result p0
add-int/2addr p3, p0
goto :goto_0
.line 1723
:cond_2
new-instance p0, Ljava/lang/NullPointerException;
const-string p1, "null cannot be cast to non-null type java.lang.String"
invoke-direct {p0, p1}, Ljava/lang/NullPointerException;-><init>(Ljava/lang/String;)V
throw p0
:cond_3
return-void
.end method
# virtual methods
.method public final -deprecated_get(Ljava/lang/String;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to extension function"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "url.toHttpUrl()"
imports = {
"okhttp3.HttpUrl.Companion.toHttpUrl"
}
.end subannotation
.end annotation
const-string v0, "url"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1665
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/lang/String;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final -deprecated_get(Ljava/net/URI;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to extension function"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "uri.toHttpUrlOrNull()"
imports = {
"okhttp3.HttpUrl.Companion.toHttpUrlOrNull"
}
.end subannotation
.end annotation
const-string v0, "uri"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1692
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/net/URI;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final -deprecated_get(Ljava/net/URL;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to extension function"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "url.toHttpUrlOrNull()"
imports = {
"okhttp3.HttpUrl.Companion.toHttpUrlOrNull"
}
.end subannotation
.end annotation
const-string v0, "url"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1683
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/net/URL;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final -deprecated_parse(Ljava/lang/String;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/Deprecated;
level = .enum Lkotlin/DeprecationLevel;->ERROR:Lkotlin/DeprecationLevel;
message = "moved to extension function"
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "url.toHttpUrlOrNull()"
imports = {
"okhttp3.HttpUrl.Companion.toHttpUrlOrNull"
}
.end subannotation
.end annotation
const-string v0, "url"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1674
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->parse(Ljava/lang/String;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final canonicalize$okhttp(Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)Ljava/lang/String;
.locals 12
move-object v0, p0
move-object v2, p1
move v4, p3
move-object/from16 v5, p4
const-string v1, "$this$canonicalize"
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string v1, "encodeSet"
invoke-static {v5, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
move v3, p2
:goto_0
if-ge v3, v4, :cond_4
.line 1783
invoke-virtual {p1, v3}, Ljava/lang/String;->codePointAt(I)I
move-result v1
const/16 v6, 0x20
if-lt v1, v6, :cond_3
const/16 v6, 0x7f
if-eq v1, v6, :cond_3
const/16 v6, 0x80
if-lt v1, v6, :cond_0
if-eqz p8, :cond_3
.line 1787
:cond_0
move-object v6, v5
check-cast v6, Ljava/lang/CharSequence;
int-to-char v7, v1
const/4 v8, 0x2
const/4 v9, 0x0
const/4 v10, 0x0
invoke-static {v6, v7, v10, v8, v9}, Lkotlin/text/StringsKt;->contains$default(Ljava/lang/CharSequence;CZILjava/lang/Object;)Z
move-result v6
if-nez v6, :cond_3
const/16 v6, 0x25
if-ne v1, v6, :cond_1
if-eqz p5, :cond_3
if-eqz p6, :cond_1
.line 1788
move-object v6, v0
check-cast v6, Lokhttp3/HttpUrl$Companion;
.line 1789
invoke-direct {p0, p1, v3, p3}, Lokhttp3/HttpUrl$Companion;->isPercentEncoded(Ljava/lang/String;II)Z
move-result v6
if-eqz v6, :cond_3
:cond_1
const/16 v6, 0x2b
if-ne v1, v6, :cond_2
if-eqz p7, :cond_2
goto :goto_1
.line 1807
:cond_2
invoke-static {v1}, Ljava/lang/Character;->charCount(I)I
move-result v1
add-int/2addr v3, v1
goto :goto_0
.line 1792
:cond_3
:goto_1
new-instance v11, Lokio/Buffer;
invoke-direct {v11}, Lokio/Buffer;-><init>()V
move v1, p2
.line 1793
invoke-virtual {v11, p1, p2, v3}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
.line 1794
move-object v1, v0
check-cast v1, Lokhttp3/HttpUrl$Companion;
move-object v0, p0
move-object v1, v11
move-object v2, p1
move v4, p3
move-object/from16 v5, p4
move/from16 v6, p5
move/from16 v7, p6
move/from16 v8, p7
move/from16 v9, p8
move-object/from16 v10, p9
invoke-direct/range {v0 .. v10}, Lokhttp3/HttpUrl$Companion;->writeCanonicalized(Lokio/Buffer;Ljava/lang/String;IILjava/lang/String;ZZZZLjava/nio/charset/Charset;)V
.line 1805
invoke-virtual {v11}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
move-result-object v0
return-object v0
:cond_4
move v1, p2
.line 1811
invoke-virtual {p1, p2, p3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
const-string v1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object v0
.end method
.method public final defaultPort(Ljava/lang/String;)I
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "scheme"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1573
invoke-virtual {p1}, Ljava/lang/String;->hashCode()I
move-result p0
const v0, 0x310888 # 4.503E-39f
if-eq p0, v0, :cond_1
const v0, 0x5f008eb
if-eq p0, v0, :cond_0
goto :goto_0
:cond_0
const-string p0, "https"
.line 1575
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
const/16 p0, 0x1bb
goto :goto_1
:cond_1
const-string p0, "http"
.line 1574
invoke-virtual {p1, p0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
move-result p0
if-eqz p0, :cond_2
const/16 p0, 0x50
goto :goto_1
:cond_2
:goto_0
const/4 p0, -0x1
:goto_1
return p0
.end method
.method public final get(Ljava/lang/String;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string p0, "$this$toHttpUrl"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1633
new-instance p0, Lokhttp3/HttpUrl$Builder;
invoke-direct {p0}, Lokhttp3/HttpUrl$Builder;-><init>()V
const/4 v0, 0x0
invoke-virtual {p0, v0, p1}, Lokhttp3/HttpUrl$Builder;->parse$okhttp(Lokhttp3/HttpUrl;Ljava/lang/String;)Lokhttp3/HttpUrl$Builder;
move-result-object p0
invoke-virtual {p0}, Lokhttp3/HttpUrl$Builder;->build()Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final get(Ljava/net/URI;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string v0, "$this$toHttpUrlOrNull"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1656
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p1}, Ljava/net/URI;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "toString()"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->parse(Ljava/lang/String;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final get(Ljava/net/URL;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string v0, "$this$toHttpUrlOrNull"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1653
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p1}, Ljava/net/URL;->toString()Ljava/lang/String;
move-result-object p1
const-string v0, "toString()"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->parse(Ljava/lang/String;)Lokhttp3/HttpUrl;
move-result-object p0
return-object p0
.end method
.method public final parse(Ljava/lang/String;)Lokhttp3/HttpUrl;
.locals 1
.annotation runtime Lkotlin/jvm/JvmStatic;
.end annotation
const-string v0, "$this$toHttpUrlOrNull"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1642
:try_start_0
move-object v0, p0
check-cast v0, Lokhttp3/HttpUrl$Companion;
invoke-virtual {p0, p1}, Lokhttp3/HttpUrl$Companion;->get(Ljava/lang/String;)Lokhttp3/HttpUrl;
move-result-object p0
:try_end_0
.catch Ljava/lang/IllegalArgumentException; {:try_start_0 .. :try_end_0} :catch_0
goto :goto_0
:catch_0
const/4 p0, 0x0
:goto_0
return-object p0
.end method
.method public final percentDecode$okhttp(Ljava/lang/String;IIZ)Ljava/lang/String;
.locals 7
const-string v0, "$this$percentDecode"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
move v4, p2
:goto_0
if-ge v4, p3, :cond_2
.line 1700
invoke-virtual {p1, v4}, Ljava/lang/String;->charAt(I)C
move-result v0
const/16 v1, 0x25
if-eq v0, v1, :cond_1
const/16 v1, 0x2b
if-ne v0, v1, :cond_0
if-eqz p4, :cond_0
goto :goto_1
:cond_0
add-int/lit8 v4, v4, 0x1
goto :goto_0
.line 1703
:cond_1
:goto_1
new-instance v0, Lokio/Buffer;
invoke-direct {v0}, Lokio/Buffer;-><init>()V
.line 1704
invoke-virtual {v0, p1, p2, v4}, Lokio/Buffer;->writeUtf8(Ljava/lang/String;II)Lokio/Buffer;
.line 1705
move-object p2, p0
check-cast p2, Lokhttp3/HttpUrl$Companion;
move-object v1, p0
move-object v2, v0
move-object v3, p1
move v5, p3
move v6, p4
invoke-direct/range {v1 .. v6}, Lokhttp3/HttpUrl$Companion;->writePercentDecoded(Lokio/Buffer;Ljava/lang/String;IIZ)V
.line 1706
invoke-virtual {v0}, Lokio/Buffer;->readUtf8()Ljava/lang/String;
move-result-object p0
return-object p0
.line 1711
:cond_2
invoke-virtual {p1, p2, p3}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object p0
const-string p1, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public final toPathString$okhttp(Ljava/util/List;Ljava/lang/StringBuilder;)V
.locals 2
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/StringBuilder;",
")V"
}
.end annotation
const-string p0, "$this$toPathString"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "out"
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1582
invoke-interface {p1}, Ljava/util/List;->size()I
move-result p0
const/4 v0, 0x0
:goto_0
if-ge v0, p0, :cond_0
const/16 v1, 0x2f
.line 1583
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 1584
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v1
check-cast v1, Ljava/lang/String;
invoke-virtual {p2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
add-int/lit8 v0, v0, 0x1
goto :goto_0
:cond_0
return-void
.end method
.method public final toQueryNamesAndValues$okhttp(Ljava/lang/String;)Ljava/util/List;
.locals 10
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/lang/String;",
")",
"Ljava/util/List<",
"Ljava/lang/String;",
">;"
}
.end annotation
const-string p0, "$this$toQueryNamesAndValues"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 1608
new-instance p0, Ljava/util/ArrayList;
invoke-direct {p0}, Ljava/util/ArrayList;-><init>()V
check-cast p0, Ljava/util/List;
const/4 v0, 0x0
.line 1610
:goto_0
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
if-gt v0, v1, :cond_3
.line 1611
move-object v7, p1
check-cast v7, Ljava/lang/CharSequence;
const/16 v2, 0x26
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
move-object v1, v7
move v3, v0
invoke-static/range {v1 .. v6}, Lkotlin/text/StringsKt;->indexOf$default(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
move-result v1
const/4 v8, -0x1
if-ne v1, v8, :cond_0
.line 1612
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v1
:cond_0
move v9, v1
const/16 v2, 0x3d
const/4 v4, 0x0
const/4 v5, 0x4
const/4 v6, 0x0
move-object v1, v7
move v3, v0
.line 1614
invoke-static/range {v1 .. v6}, Lkotlin/text/StringsKt;->indexOf$default(Ljava/lang/CharSequence;CIZILjava/lang/Object;)I
move-result v1
const-string v2, "(this as java.lang.Strin\u2026ing(startIndex, endIndex)"
if-eq v1, v8, :cond_2
if-le v1, v9, :cond_1
goto :goto_1
.line 1619
:cond_1
invoke-virtual {p1, v0, v1}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
add-int/lit8 v1, v1, 0x1
.line 1620
invoke-virtual {p1, v1, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
goto :goto_2
.line 1616
:cond_2
:goto_1
invoke-virtual {p1, v0, v9}, Ljava/lang/String;->substring(II)Ljava/lang/String;
move-result-object v0
invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
const/4 v0, 0x0
.line 1617
invoke-interface {p0, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
:goto_2
add-int/lit8 v0, v9, 0x1
goto :goto_0
:cond_3
return-object p0
.end method
.method public final toQueryString$okhttp(Ljava/util/List;Ljava/lang/StringBuilder;)V
.locals 5
.annotation system Ldalvik/annotation/Signature;
value = {
"(",
"Ljava/util/List<",
"Ljava/lang/String;",
">;",
"Ljava/lang/StringBuilder;",
")V"
}
.end annotation
const-string p0, "$this$toQueryString"
invoke-static {p1, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const-string p0, "out"
invoke-static {p2, p0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
const/4 p0, 0x0
.line 1590
invoke-interface {p1}, Ljava/util/List;->size()I
move-result v0
invoke-static {p0, v0}, Lkotlin/ranges/RangesKt;->until(II)Lkotlin/ranges/IntRange;
move-result-object p0
check-cast p0, Lkotlin/ranges/IntProgression;
const/4 v0, 0x2
invoke-static {p0, v0}, Lkotlin/ranges/RangesKt;->step(Lkotlin/ranges/IntProgression;I)Lkotlin/ranges/IntProgression;
move-result-object p0
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getFirst()I
move-result v0
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getLast()I
move-result v1
invoke-virtual {p0}, Lkotlin/ranges/IntProgression;->getStep()I
move-result p0
if-ltz p0, :cond_0
if-gt v0, v1, :cond_3
goto :goto_0
:cond_0
if-lt v0, v1, :cond_3
.line 1591
:goto_0
invoke-interface {p1, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v2
check-cast v2, Ljava/lang/String;
add-int/lit8 v3, v0, 0x1
.line 1592
invoke-interface {p1, v3}, Ljava/util/List;->get(I)Ljava/lang/Object;
move-result-object v3
check-cast v3, Ljava/lang/String;
if-lez v0, :cond_1
const/16 v4, 0x26
.line 1593
invoke-virtual {p2, v4}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 1594
:cond_1
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
if-eqz v3, :cond_2
const/16 v2, 0x3d
.line 1596
invoke-virtual {p2, v2}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
.line 1597
invoke-virtual {p2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
:cond_2
if-eq v0, v1, :cond_3
add-int/2addr v0, p0
goto :goto_0
:cond_3
return-void
.end method