.class public final Lkotlin/text/_OneToManyTitlecaseMappingsKt; .super Ljava/lang/Object; .source "_OneToManyTitlecaseMappings.kt" # annotations .annotation runtime Lkotlin/Metadata; d1 = { "\u0000\u000c\n\u0000\n\u0002\u0010\u000e\n\u0002\u0010\u000c\n\u0000\u001a\u000c\u0010\u0000\u001a\u00020\u0001*\u00020\u0002H\u0000\u00a8\u0006\u0003" } d2 = { "titlecaseImpl", "", "", "kotlin-stdlib" } k = 0x2 mv = { 0x1, 0x9, 0x0 } xi = 0x30 .end annotation # direct methods .method public static final titlecaseImpl(C)Ljava/lang/String; .locals 4 .line 15 invoke-static {p0}, Ljava/lang/String;->valueOf(C)Ljava/lang/String; move-result-object v0 const-string v1, "null cannot be cast to non-null type java.lang.String" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V sget-object v2, Ljava/util/Locale;->ROOT:Ljava/util/Locale; invoke-virtual {v0, v2}, Ljava/lang/String;->toUpperCase(Ljava/util/Locale;)Ljava/lang/String; move-result-object v0 const-string v2, "toUpperCase(...)" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V .line 16 invoke-virtual {v0}, Ljava/lang/String;->length()I move-result v2 const/4 v3, 0x1 if-le v2, v3, :cond_1 const/16 v2, 0x149 if-ne p0, v2, :cond_0 goto :goto_0 :cond_0 const/4 p0, 0x0 .line 17 invoke-virtual {v0, p0}, Ljava/lang/String;->charAt(I)C move-result p0 invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNull(Ljava/lang/Object;Ljava/lang/String;)V invoke-virtual {v0, v3}, Ljava/lang/String;->substring(I)Ljava/lang/String; move-result-object v0 const-string v2, "substring(...)" invoke-static {v0, v2}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V 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;->toLowerCase(Ljava/util/Locale;)Ljava/lang/String; move-result-object v0 const-string v1, "toLowerCase(...)" invoke-static {v0, v1}, Lkotlin/jvm/internal/Intrinsics;->checkNotNullExpressionValue(Ljava/lang/Object;Ljava/lang/String;)V new-instance v1, Ljava/lang/StringBuilder; invoke-direct {v1}, Ljava/lang/StringBuilder;->()V invoke-virtual {v1, p0}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder; move-result-object p0 invoke-virtual {p0, v0}, 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 v0 :goto_0 return-object v0 .line 19 :cond_1 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