content: package kotlin.text;
  
  import java.util.Locale;
  import kotlin.Deprecated;
  import kotlin.DeprecatedSinceKotlin;
  import kotlin.Metadata;
  import kotlin.ReplaceWith;
  import kotlin.jvm.internal.Intrinsics;
  import kotlin.ranges.IntRange;
  import mt.Log1F380D;
  
  @Metadata(d1 = {"\u00004\n\u0000\n\u0002\u0018\u0002\n\u0002\u0010\f\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0010\b\n\u0002\b\u0004\n\u0002\u0010\u000b\n\u0002\b\u000e\n\u0002\u0010\u000e\n\u0000\n\u0002\u0018\u0002\n\u0002\b\t\u001a\u0010\u0010\t\u001a\u00020\n2\u0006\u0010\u000b\u001a\u00020\nH\u0001\u001a\u0018\u0010\f\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\b\u001a\r\u0010\u0010\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0011\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0012\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0013\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0014\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0015\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0016\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0017\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0018\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u0019\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u001a\u001a\u00020\u000f*\u00020\u0002H\b\u001a\r\u0010\u001b\u001a\u00020\u000f*\u00020\u0002H\b\u001a\n\u0010\u001c\u001a\u00020\u000f*\u00020\u0002\u001a\r\u0010\u001d\u001a\u00020\u001e*\u00020\u0002H\b\u001a\u0014\u0010\u001d\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010!\u001a\u00020\u0002*\u00020\u0002H\b\u001a\u0014\u0010\"\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010#\u001a\u00020\u0002*\u00020\u0002H\b\u001a\r\u0010$\u001a\u00020\u0002*\u00020\u0002H\b\u001a\r\u0010%\u001a\u00020\u0002*\u00020\u0002H\b\u001a\r\u0010&\u001a\u00020\u0002*\u00020\u0002H\b\u001a\r\u0010'\u001a\u00020\u001e*\u00020\u0002H\b\u001a\u0014\u0010'\u001a\u00020\u001e*\u00020\u00022\u0006\u0010\u001f\u001a\u00020 H\u0007\u001a\r\u0010(\u001a\u00020\u0002*\u00020\u0002H\b\"\u0015\u0010\u0000\u001a\u00020\u0001*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0003\u0010\u0004\"\u0015\u0010\u0005\u001a\u00020\u0006*\u00020\u00028F¢\u0006\u0006\u001a\u0004\b\u0007\u0010\b¨\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 = 5, mv = {1, 7, 1}, xi = 49, xs = "kotlin/text/CharsKt")
  /* compiled from: 0158 */
  class CharsKt__CharJVMKt {
      public static final int checkRadix(int radix) {
          if (new IntRange(2, 36).contains(radix)) {
              return radix;
          }
          throw new IllegalArgumentException("radix " + radix + " was not in valid range " + new IntRange(2, 36));
      }
  
      public static final int digitOf(char c, int radix) {
          return Character.digit(c, radix);
      }
  
      public static final CharCategory getCategory(char $this$category) {
          return CharCategory.Companion.valueOf(Character.getType($this$category));
      }
  
      public static final CharDirectionality getDirectionality(char $this$directionality) {
          return CharDirectionality.Companion.valueOf(Character.getDirectionality($this$directionality));
      }
  
      private static final boolean isDefined(char $this$isDefined) {
          return Character.isDefined($this$isDefined);
      }
  
      private static final boolean isDigit(char $this$isDigit) {
          return Character.isDigit($this$isDigit);
      }
  
      private static final boolean isHighSurrogate(char $this$isHighSurrogate) {
          return Character.isHighSurrogate($this$isHighSurrogate);
      }
  
      private static final boolean isISOControl(char $this$isISOControl) {
          return Character.isISOControl($this$isISOControl);
      }
  
      private static final boolean isIdentifierIgnorable(char $this$isIdentifierIgnorable) {
          return Character.isIdentifierIgnorable($this$isIdentifierIgnorable);
      }
  
      private static final boolean isJavaIdentifierPart(char $this$isJavaIdentifierPart) {
          return Character.isJavaIdentifierPart($this$isJavaIdentifierPart);
      }
  
      private static final boolean isJavaIdentifierStart(char $this$isJavaIdentifierStart) {
          return Character.isJavaIdentifierStart($this$isJavaIdentifierStart);
      }
  
      private static final boolean isLetter(char $this$isLetter) {
          return Character.isLetter($this$isLetter);
      }
  
      private static final boolean isLetterOrDigit(char $this$isLetterOrDigit) {
          return Character.isLetterOrDigit($this$isLetterOrDigit);
      }
  
      private static final boolean isLowSurrogate(char $this$isLowSurrogate) {
          return Character.isLowSurrogate($this$isLowSurrogate);
      }
  
      private static final boolean isLowerCase(char $this$isLowerCase) {
          return Character.isLowerCase($this$isLowerCase);
      }
  
      private static final boolean isTitleCase(char $this$isTitleCase) {
          return Character.isTitleCase($this$isTitleCase);
      }
  
      private static final boolean isUpperCase(char $this$isUpperCase) {
          return Character.isUpperCase($this$isUpperCase);
      }
  
      public static final boolean isWhitespace(char $this$isWhitespace) {
          return Character.isWhitespace($this$isWhitespace) || Character.isSpaceChar($this$isWhitespace);
      }
  
      private static final String lowercase(char $this$lowercase) {
          String valueOf = String.valueOf($this$lowercase);
          Log1F380D.a((Object) valueOf);
          Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
          String lowerCase = valueOf.toLowerCase(Locale.ROOT);
          Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
          return lowerCase;
      }
  
      private static final char lowercaseChar(char $this$lowercaseChar) {
          return Character.toLowerCase($this$lowercaseChar);
      }
  
      private static final char titlecaseChar(char $this$titlecaseChar) {
          return Character.toTitleCase($this$titlecaseChar);
      }
  
      @Deprecated(message = "Use lowercaseChar() instead.", replaceWith = @ReplaceWith(expression = "lowercaseChar()", imports = {}))
      @DeprecatedSinceKotlin(warningSince = "1.5")
      private static final char toLowerCase(char $this$toLowerCase) {
          return Character.toLowerCase($this$toLowerCase);
      }
  
      @Deprecated(message = "Use titlecaseChar() instead.", replaceWith = @ReplaceWith(expression = "titlecaseChar()", imports = {}))
      @DeprecatedSinceKotlin(warningSince = "1.5")
      private static final char toTitleCase(char $this$toTitleCase) {
          return Character.toTitleCase($this$toTitleCase);
      }
  
      @Deprecated(message = "Use uppercaseChar() instead.", replaceWith = @ReplaceWith(expression = "uppercaseChar()", imports = {}))
      @DeprecatedSinceKotlin(warningSince = "1.5")
      private static final char toUpperCase(char $this$toUpperCase) {
          return Character.toUpperCase($this$toUpperCase);
      }
  
      private static final char uppercaseChar(char $this$uppercaseChar) {
          return Character.toUpperCase($this$uppercaseChar);
      }
  
      public static final String lowercase(char $this$lowercase, Locale locale) {
          Intrinsics.checkNotNullParameter(locale, "locale");
          String valueOf = String.valueOf($this$lowercase);
          Log1F380D.a((Object) valueOf);
          Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
          String lowerCase = valueOf.toLowerCase(locale);
          Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(locale)");
          return lowerCase;
      }
  
      public static final String titlecase(char $this$titlecase, Locale locale) {
          Intrinsics.checkNotNullParameter(locale, "locale");
          String uppercase = CharsKt.uppercase($this$titlecase, locale);
          Log1F380D.a((Object) uppercase);
          if (uppercase.length() <= 1) {
              String valueOf = String.valueOf($this$titlecase);
              Log1F380D.a((Object) valueOf);
              Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
              String upperCase = valueOf.toUpperCase(Locale.ROOT);
              Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
              if (!Intrinsics.areEqual((Object) uppercase, (Object) upperCase)) {
                  return uppercase;
              }
              String valueOf2 = String.valueOf(Character.toTitleCase($this$titlecase));
              Log1F380D.a((Object) valueOf2);
              return valueOf2;
          } else if ($this$titlecase == 329) {
              return uppercase;
          } else {
              char charAt = uppercase.charAt(0);
              Intrinsics.checkNotNull(uppercase, "null cannot be cast to non-null type java.lang.String");
              String substring = uppercase.substring(1);
              Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String).substring(startIndex)");
              Intrinsics.checkNotNull(substring, "null cannot be cast to non-null type java.lang.String");
              String lowerCase = substring.toLowerCase(Locale.ROOT);
              Intrinsics.checkNotNullExpressionValue(lowerCase, "this as java.lang.String).toLowerCase(Locale.ROOT)");
              return charAt + lowerCase;
          }
      }
  
      private static final String uppercase(char $this$uppercase) {
          String valueOf = String.valueOf($this$uppercase);
          Log1F380D.a((Object) valueOf);
          Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
          String upperCase = valueOf.toUpperCase(Locale.ROOT);
          Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(Locale.ROOT)");
          return upperCase;
      }
  
      public static final String uppercase(char $this$uppercase, Locale locale) {
          Intrinsics.checkNotNullParameter(locale, "locale");
          String valueOf = String.valueOf($this$uppercase);
          Log1F380D.a((Object) valueOf);
          Intrinsics.checkNotNull(valueOf, "null cannot be cast to non-null type java.lang.String");
          String upperCase = valueOf.toUpperCase(locale);
          Intrinsics.checkNotNullExpressionValue(upperCase, "this as java.lang.String).toUpperCase(locale)");
          return upperCase;
      }
  }
  