Rabbit-R1/switch port/smali/smali_classes3/kotlin/text/CharsKt__CharJVMKt.smali

670 lines
18 KiB
Smali
Raw Normal View History

2024-05-21 16:08:36 -05:00
.class Lkotlin/text/CharsKt__CharJVMKt;
.super Ljava/lang/Object;
.source "CharJVM.kt"
# annotations
.annotation runtime Lkotlin/Metadata;
d1 = {
"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\u000c\n\u0002\u0008\u0003\n\u0002\u0018\u0002\n\u0002\u0008\u0003\n\u0002\u0010\u0008\n\u0002\u0008\u0004\n\u0002\u0010\u000b\n\u0002\u0008\u000e\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\u0008\t\u001a\u0010\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\nH\u0001\u001a\u0018\u0010\u000c\u001a\u00020\n2\u0006\u0010\r\u001a\u00020\u00022\u0006\u0010\u000b\u001a\u00020\nH\u0000\u001a\r\u0010\u000e\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0010\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0011\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0012\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0013\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0014\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0015\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0016\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0017\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0018\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u0019\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u001a\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\r\u0010\u001b\u001a\u00020\u000f*\u00020\u0002H\u0087\u0008\u001a\n\u0010\u001c\u001a\u00020\u000f*\u00020\u0002\u001a\r\u0010\u001d\u001a\u00020\u001e*\u00020\u0002H\u0087\u0008\u001a\u0014\u0010\u001d\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010!\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\u001a\u0014\u0010\"\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010#\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\u001a\r\u0010$\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\u001a\r\u0010%\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\u001a\r\u0010&\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\u001a\r\u0010\'\u001a\u00020\u001e*\u00020\u0002H\u0087\u0008\u001a\u0014\u0010\'\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010(\u001a\u00020\u0002*\u00020\u0002H\u0087\u0008\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F\u00a2\u0006\u0006\u001a\u0004\u0008\u0003\u0010\u0004\"\u0015\u0010\u0005\u001a\u00020\u0006*\u00020\u00028F\u00a2\u0006\u0006\u001a\u0004\u0008\u0007\u0010\u0008\u00a8\u0006)"
}
d2 = {
"category",
"Lkotlin/text/CharCategory;",
"",
"getCategory",
"(C)Lkotlin/text/CharCategory;",
"directionality",
"Lkotlin/text/CharDirectionality;",
"getDirectionality",
"(C)Lkotlin/text/CharDirectionality;",
"checkRadix",
"",
"radix",
"digitOf",
"char",
"isDefined",
"",
"isDigit",
"isHighSurrogate",
"isISOControl",
"isIdentifierIgnorable",
"isJavaIdentifierPart",
"isJavaIdentifierStart",
"isLetter",
"isLetterOrDigit",
"isLowSurrogate",
"isLowerCase",
"isTitleCase",
"isUpperCase",
"isWhitespace",
"lowercase",
"",
"locale",
"Ljava/util/Locale;",
"lowercaseChar",
"titlecase",
"titlecaseChar",
"toLowerCase",
"toTitleCase",
"toUpperCase",
"uppercase",
"uppercaseChar",
"kotlin-stdlib"
}
k = 0x5
mv = {
0x1,
0x9,
0x0
}
xi = 0x31
xs = "kotlin/text/CharsKt"
.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 checkRadix(I)I
.locals 5
.line 313
new-instance v0, Lkotlin/ranges/IntRange;
const/4 v1, 0x2
const/16 v2, 0x24
invoke-direct {v0, v1, v2}, Lkotlin/ranges/IntRange;-><init>(II)V
invoke-virtual {v0, p0}, Lkotlin/ranges/IntRange;->contains(I)Z
move-result v0
if-eqz v0, :cond_0
return p0
.line 314
:cond_0
new-instance v0, Ljava/lang/IllegalArgumentException;
new-instance v3, Ljava/lang/StringBuilder;
const-string v4, "radix "
invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V
invoke-virtual {v3, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;
move-result-object p0
const-string v3, " was not in valid range "
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
new-instance v3, Lkotlin/ranges/IntRange;
invoke-direct {v3, v1, v2}, Lkotlin/ranges/IntRange;-><init>(II)V
invoke-virtual {p0, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p0
invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;-><init>(Ljava/lang/String;)V
throw v0
.end method
.method public static final digitOf(CI)I
.locals 0
.line 306
invoke-static {p0, p1}, Ljava/lang/Character;->digit(II)I
move-result p0
return p0
.end method
.method public static final getCategory(C)Lkotlin/text/CharCategory;
.locals 1
.line 17
sget-object v0, Lkotlin/text/CharCategory;->Companion:Lkotlin/text/CharCategory$Companion;
invoke-static {p0}, Ljava/lang/Character;->getType(C)I
move-result p0
invoke-virtual {v0, p0}, Lkotlin/text/CharCategory$Companion;->valueOf(I)Lkotlin/text/CharCategory;
move-result-object p0
return-object p0
.end method
.method public static final getDirectionality(C)Lkotlin/text/CharDirectionality;
.locals 1
.line 284
sget-object v0, Lkotlin/text/CharDirectionality;->Companion:Lkotlin/text/CharDirectionality$Companion;
invoke-static {p0}, Ljava/lang/Character;->getDirectionality(C)B
move-result p0
invoke-virtual {v0, p0}, Lkotlin/text/CharDirectionality$Companion;->valueOf(I)Lkotlin/text/CharDirectionality;
move-result-object p0
return-object p0
.end method
.method private static final isDefined(C)Z
.locals 0
.line 25
invoke-static {p0}, Ljava/lang/Character;->isDefined(C)Z
move-result p0
return p0
.end method
.method private static final isDigit(C)Z
.locals 0
.line 57
invoke-static {p0}, Ljava/lang/Character;->isDigit(C)Z
move-result p0
return p0
.end method
.method private static final isHighSurrogate(C)Z
.locals 0
.line 290
invoke-static {p0}, Ljava/lang/Character;->isHighSurrogate(C)Z
move-result p0
return p0
.end method
.method private static final isISOControl(C)Z
.locals 0
.line 76
invoke-static {p0}, Ljava/lang/Character;->isISOControl(C)Z
move-result p0
return p0
.end method
.method private static final isIdentifierIgnorable(C)Z
.locals 0
.line 65
invoke-static {p0}, Ljava/lang/Character;->isIdentifierIgnorable(C)Z
move-result p0
return p0
.end method
.method private static final isJavaIdentifierPart(C)Z
.locals 0
.line 83
invoke-static {p0}, Ljava/lang/Character;->isJavaIdentifierPart(C)Z
move-result p0
return p0
.end method
.method private static final isJavaIdentifierStart(C)Z
.locals 0
.line 90
invoke-static {p0}, Ljava/lang/Character;->isJavaIdentifierStart(C)Z
move-result p0
return p0
.end method
.method private static final isLetter(C)Z
.locals 0
.line 36
invoke-static {p0}, Ljava/lang/Character;->isLetter(C)Z
move-result p0
return p0
.end method
.method private static final isLetterOrDigit(C)Z
.locals 0
.line 47
invoke-static {p0}, Ljava/lang/Character;->isLetterOrDigit(C)Z
move-result p0
return p0
.end method
.method private static final isLowSurrogate(C)Z
.locals 0
.line 296
invoke-static {p0}, Ljava/lang/Character;->isLowSurrogate(C)Z
move-result p0
return p0
.end method
.method private static final isLowerCase(C)Z
.locals 0
.line 120
invoke-static {p0}, Ljava/lang/Character;->isLowerCase(C)Z
move-result p0
return p0
.end method
.method private static final isTitleCase(C)Z
.locals 0
.line 232
invoke-static {p0}, Ljava/lang/Character;->isTitleCase(C)Z
move-result p0
return p0
.end method
.method private static final isUpperCase(C)Z
.locals 0
.line 109
invoke-static {p0}, Ljava/lang/Character;->isUpperCase(C)Z
move-result p0
return p0
.end method
.method public static final isWhitespace(C)Z
.locals 1
.line 98
invoke-static {p0}, Ljava/lang/Character;->isWhitespace(C)Z
move-result v0
if-nez v0, :cond_1
invoke-static {p0}, Ljava/lang/Character;->isSpaceChar(C)Z
move-result p0
if-eqz p0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
goto :goto_1
:cond_1
:goto_0
const/4 p0, 0x1
:goto_1
return p0
.end method
.method private static final lowercase(C)Ljava/lang/String;
.locals 1
.line 208
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object p0
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
invoke-virtual {p0, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
const-string v0, "toLowerCase(...)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final lowercase(CLjava/util/Locale;)Ljava/lang/String;
.locals 1
const-string v0, "locale"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 222
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object p0
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
const-string p1, "toLowerCase(...)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method private static final lowercaseChar(C)C
.locals 0
.line 193
invoke-static {p0}, Ljava/lang/Character;->toLowerCase(C)C
move-result p0
return p0
.end method
.method public static final titlecase(CLjava/util/Locale;)Ljava/lang/String;
.locals 3
const-string v0, "locale"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 271
invoke-static {p0, p1}, Lkotlin/text/CharsKt;->uppercase(CLjava/util/Locale;)Ljava/lang/String;
move-result-object p1
.line 272
invoke-virtual {p1}, Ljava/lang/String;->length()I
move-result v0
const-string v1, "null cannot be cast to non-null type java.lang.String"
const/4 v2, 0x1
if-le v0, v2, :cond_1
const/16 v0, 0x149
if-ne p0, v0, :cond_0
goto :goto_0
:cond_0
const/4 p0, 0x0
.line 273
invoke-virtual {p1, p0}, Ljava/lang/String;->charAt(I)C
move-result p0
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p1, v2}, Ljava/lang/String;->substring(I)Ljava/lang/String;
move-result-object p1
const-string v0, "substring(...)"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
invoke-virtual {p1, v0}, Ljava/lang/String;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p1
const-string v0, "toLowerCase(...)"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
new-instance v0, Ljava/lang/StringBuilder;
invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V
invoke-virtual {v0, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
move-result-object p0
invoke-virtual {p0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
move-result-object p1
:goto_0
return-object p1
.line 275
:cond_1
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object v0
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v1, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
invoke-virtual {v0, v1}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object v0
const-string v1, "toUpperCase(...)"
invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->areEqual(Ljava/lang/Object;Ljava/lang/Object;)Z
move-result v0
if-nez v0, :cond_2
return-object p1
.line 278
:cond_2
invoke-static {p0}, Ljava/lang/Character;->toTitleCase(C)C
move-result p0
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object p0
return-object p0
.end method
.method private static final titlecaseChar(C)C
.locals 0
.line 256
invoke-static {p0}, Ljava/lang/Character;->toTitleCase(C)C
move-result p0
return p0
.end method
.method private static final toLowerCase(C)C
.locals 0
.annotation runtime Lkotlin/Deprecated;
message = "Use lowercaseChar() instead."
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "lowercaseChar()"
imports = {}
.end subannotation
.end annotation
.annotation runtime Lkotlin/DeprecatedSinceKotlin;
warningSince = "1.5"
.end annotation
.line 179
invoke-static {p0}, Ljava/lang/Character;->toLowerCase(C)C
move-result p0
return p0
.end method
.method private static final toTitleCase(C)C
.locals 0
.annotation runtime Lkotlin/Deprecated;
message = "Use titlecaseChar() instead."
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "titlecaseChar()"
imports = {}
.end subannotation
.end annotation
.annotation runtime Lkotlin/DeprecatedSinceKotlin;
warningSince = "1.5"
.end annotation
.line 242
invoke-static {p0}, Ljava/lang/Character;->toTitleCase(C)C
move-result p0
return p0
.end method
.method private static final toUpperCase(C)C
.locals 0
.annotation runtime Lkotlin/Deprecated;
message = "Use uppercaseChar() instead."
replaceWith = .subannotation Lkotlin/ReplaceWith;
expression = "uppercaseChar()"
imports = {}
.end subannotation
.end annotation
.annotation runtime Lkotlin/DeprecatedSinceKotlin;
warningSince = "1.5"
.end annotation
.line 128
invoke-static {p0}, Ljava/lang/Character;->toUpperCase(C)C
move-result p0
return p0
.end method
.method private static final uppercase(C)Ljava/lang/String;
.locals 1
.line 157
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object p0
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
sget-object v0, Ljava/util/Locale;->ROOT:Ljava/util/Locale;
invoke-virtual {p0, v0}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
const-string v0, "toUpperCase(...)"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method public static final uppercase(CLjava/util/Locale;)Ljava/lang/String;
.locals 1
const-string v0, "locale"
invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V
.line 171
invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String;
move-result-object p0
const-string v0, "null cannot be cast to non-null type java.lang.String"
invoke-static {p0, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V
invoke-virtual {p0, p1}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String;
move-result-object p0
const-string p1, "toUpperCase(...)"
invoke-static {p0, p1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V
return-object p0
.end method
.method private static final uppercaseChar(C)C
.locals 0
.line 142
invoke-static {p0}, Ljava/lang/Character;->toUpperCase(C)C
move-result p0
return p0
.end method