.class Lkotlin/text/CharsKt__CharKt; .super Lkotlin/text/CharsKt__CharJVMKt; .source "Char.kt" # annotations .annotation system Ldalvik/annotation/SourceDebugExtension; value = "SMAP\nChar.kt\nKotlin\n*S Kotlin\n*F\n+ 1 Char.kt\nkotlin/text/CharsKt__CharKt\n+ 2 fake.kt\nkotlin/jvm/internal/FakeKt\n*L\n1#1,344:1\n1#2:345\n*E\n" .end annotation .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u001e\n\u0000\n\u0002\u0010\u000c\n\u0002\u0010\u0008\n\u0002\u0008\u0006\n\u0002\u0010\u000b\n\u0002\u0008\u0004\n\u0002\u0010\u000e\n\u0002\u0008\u0002\u001a\u000c\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0007\u001a\u0014\u0010\u0000\u001a\u00020\u0001*\u00020\u00022\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u000c\u0010\u0004\u001a\u00020\u0002*\u00020\u0001H\u0007\u001a\u0014\u0010\u0004\u001a\u00020\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u001a\u0013\u0010\u0005\u001a\u0004\u0018\u00010\u0002*\u00020\u0001H\u0007\u00a2\u0006\u0002\u0010\u0006\u001a\u001b\u0010\u0005\u001a\u0004\u0018\u00010\u0002*\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0002H\u0007\u00a2\u0006\u0002\u0010\u0007\u001a\u001c\u0010\u0008\u001a\u00020\t*\u00020\u00012\u0006\u0010\n\u001a\u00020\u00012\u0008\u0008\u0002\u0010\u000b\u001a\u00020\t\u001a\n\u0010\u000c\u001a\u00020\t*\u00020\u0001\u001a\u0015\u0010\r\u001a\u00020\u000e*\u00020\u00012\u0006\u0010\n\u001a\u00020\u000eH\u0087\n\u001a\u000c\u0010\u000f\u001a\u00020\u000e*\u00020\u0001H\u0007\u00a8\u0006\u0010" } d2 = { "digitToChar", "", "", "radix", "digitToInt", "digitToIntOrNull", "(C)Ljava/lang/Integer;", "(CI)Ljava/lang/Integer;", "equals", "", "other", "ignoreCase", "isSurrogate", "plus", "", "titlecase", "kotlin-stdlib" } k = 0x5 mv = { 0x1, 0x9, 0x0 } xi = 0x31 xs = "kotlin/text/CharsKt" .end annotation # direct methods .method public constructor ()V .locals 0 invoke-direct {p0}, Lkotlin/text/CharsKt__CharJVMKt;->()V return-void .end method .method public static final digitToChar(I)C .locals 3 .line 93 new-instance v0, Lkotlin/ranges/IntRange; const/4 v1, 0x0 const/16 v2, 0x9 invoke-direct {v0, v1, v2}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {v0, p0}, Lkotlin/ranges/IntRange;->contains(I)Z move-result v0 if-eqz v0, :cond_0 add-int/lit8 p0, p0, 0x30 int-to-char p0, p0 return p0 .line 96 :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Int " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string v1, " is not a decimal digit" invoke-virtual {p0, v1}, 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 p0 invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public static final digitToChar(II)C .locals 3 .line 111 new-instance v0, Lkotlin/ranges/IntRange; const/4 v1, 0x2 const/16 v2, 0x24 invoke-direct {v0, v1, v2}, Lkotlin/ranges/IntRange;->(II)V invoke-virtual {v0, p1}, Lkotlin/ranges/IntRange;->contains(I)Z move-result v0 if-eqz v0, :cond_2 if-ltz p0, :cond_1 if-ge p0, p1, :cond_1 const/16 p1, 0xa if-ge p0, p1, :cond_0 add-int/lit8 p0, p0, 0x30 goto :goto_0 :cond_0 add-int/lit8 p0, p0, 0x41 int-to-char p0, p0 sub-int/2addr p0, p1 :goto_0 int-to-char p0, p0 return p0 .line 115 :cond_1 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Digit " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p0 const-string v1, " does not represent a valid digit in radix " invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)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;->(Ljava/lang/String;)V throw v0 .line 112 :cond_2 new-instance p0, Ljava/lang/IllegalArgumentException; new-instance v0, Ljava/lang/StringBuilder; const-string v1, "Invalid radix: " invoke-direct {v0, v1}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v0, p1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder; move-result-object p1 const-string v0, ". Valid radix values are in range 2..36" invoke-virtual {p1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p1 invoke-virtual {p1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String; move-result-object p1 invoke-direct {p0, p1}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw p0 .end method .method public static final digitToInt(C)I .locals 3 const/16 v0, 0xa .line 23 invoke-static {p0, v0}, Lkotlin/text/CharsKt;->digitOf(CI)I move-result v0 if-ltz v0, :cond_0 return v0 .line 24 :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Char " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 const-string v1, " is not a decimal digit" invoke-virtual {p0, v1}, 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 p0 invoke-direct {v0, p0}, Ljava/lang/IllegalArgumentException;->(Ljava/lang/String;)V throw v0 .end method .method public static final digitToInt(CI)I .locals 3 .line 44 invoke-static {p0, p1}, Lkotlin/text/CharsKt;->digitToIntOrNull(CI)Ljava/lang/Integer; move-result-object v0 if-eqz v0, :cond_0 invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I move-result p0 return p0 :cond_0 new-instance v0, Ljava/lang/IllegalArgumentException; new-instance v1, Ljava/lang/StringBuilder; const-string v2, "Char " invoke-direct {v1, v2}, Ljava/lang/StringBuilder;->(Ljava/lang/String;)V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 const-string v1, " is not a digit in the given radix=" invoke-virtual {p0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, p1}, Ljava/lang/StringBuilder;->append(I)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;->(Ljava/lang/String;)V throw v0 .end method .method public static final digitToIntOrNull(C)Ljava/lang/Integer; .locals 1 const/16 v0, 0xa .line 59 invoke-static {p0, v0}, Lkotlin/text/CharsKt;->digitOf(CI)I move-result p0 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 move-object v0, p0 check-cast v0, Ljava/lang/Number; invoke-virtual {v0}, Ljava/lang/Number;->intValue()I move-result v0 if-ltz v0, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return-object p0 .end method .method public static final digitToIntOrNull(CI)Ljava/lang/Integer; .locals 0 .line 78 invoke-static {p1}, Lkotlin/text/CharsKt;->checkRadix(I)I .line 79 invoke-static {p0, p1}, Lkotlin/text/CharsKt;->digitOf(CI)I move-result p0 invoke-static {p0}, Ljava/lang/Integer;->valueOf(I)Ljava/lang/Integer; move-result-object p0 move-object p1, p0 check-cast p1, Ljava/lang/Number; invoke-virtual {p1}, Ljava/lang/Number;->intValue()I move-result p1 if-ltz p1, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 :goto_0 return-object p0 .end method .method public static final equals(CCZ)Z .locals 2 const/4 v0, 0x1 if-ne p0, p1, :cond_0 return v0 :cond_0 const/4 v1, 0x0 if-nez p2, :cond_1 return v1 .line 237 :cond_1 invoke-static {p0}, Ljava/lang/Character;->toUpperCase(C)C move-result p0 .line 238 invoke-static {p1}, Ljava/lang/Character;->toUpperCase(C)C move-result p1 if-eq p0, p1, :cond_3 .line 240 invoke-static {p0}, Ljava/lang/Character;->toLowerCase(C)C move-result p0 invoke-static {p1}, Ljava/lang/Character;->toLowerCase(C)C move-result p1 if-ne p0, p1, :cond_2 goto :goto_0 :cond_2 move v0, v1 :cond_3 :goto_0 return v0 .end method .method public static synthetic equals$default(CCZILjava/lang/Object;)Z .locals 0 and-int/lit8 p3, p3, 0x2 if-eqz p3, :cond_0 const/4 p2, 0x0 .line 233 :cond_0 invoke-static {p0, p1, p2}, Lkotlin/text/CharsKt;->equals(CCZ)Z move-result p0 return p0 .end method .method public static final isSurrogate(C)Z .locals 3 .line 246 new-instance v0, Lkotlin/ranges/CharRange; const v1, 0xd800 const v2, 0xdfff invoke-direct {v0, v1, v2}, Lkotlin/ranges/CharRange;->(CC)V invoke-virtual {v0, p0}, Lkotlin/ranges/CharRange;->contains(C)Z move-result p0 return p0 .end method .method private static final plus(CLjava/lang/String;)Ljava/lang/String; .locals 1 const-string v0, "other" invoke-static {p1, v0}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullParameter(Ljava/lang/Object;Ljava/lang/String;)V .line 223 new-instance v0, Ljava/lang/StringBuilder; invoke-direct {v0}, Ljava/lang/StringBuilder;->()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 p0 return-object p0 .end method .method public static final titlecase(C)Ljava/lang/String; .locals 0 .line 215 invoke-static {p0}, Lkotlin/text/_OneToManyTitlecaseMappingsKt;->titlecaseImpl(C)Ljava/lang/String; move-result-object p0 return-object p0 .end method