mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
30 lines
2 KiB
Java
30 lines
2 KiB
Java
|
package androidx.compose.material3;
|
||
|
|
||
|
import kotlin.Metadata;
|
||
|
import kotlin.jvm.internal.Intrinsics;
|
||
|
import kotlin.text.MatchGroup;
|
||
|
import kotlin.text.MatchResult;
|
||
|
import kotlin.text.Regex;
|
||
|
import kotlin.text.StringsKt;
|
||
|
|
||
|
/* compiled from: CalendarModel.kt */
|
||
|
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0010\b\n\u0000\n\u0002\u0010\t\n\u0000\n\u0002\u0018\u0002\n\u0000\n\u0002\u0010\u000e\n\u0000\u001a\u0010\u0010\u0004\u001a\u00020\u00052\u0006\u0010\u0006\u001a\u00020\u0007H\u0001\"\u000e\u0010\u0000\u001a\u00020\u0001X\u0080T¢\u0006\u0002\n\u0000\"\u000e\u0010\u0002\u001a\u00020\u0003X\u0080T¢\u0006\u0002\n\u0000¨\u0006\b"}, d2 = {"DaysInWeek", "", "MillisecondsIn24Hours", "", "datePatternAsInputFormat", "Landroidx/compose/material3/DateInputFormat;", "localeFormat", "", "material3_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
||
|
/* loaded from: classes.dex */
|
||
|
public final class CalendarModelKt {
|
||
|
public static final int DaysInWeek = 7;
|
||
|
public static final long MillisecondsIn24Hours = 86400000;
|
||
|
|
||
|
public static final DateInputFormat datePatternAsInputFormat(String localeFormat) {
|
||
|
Intrinsics.checkNotNullParameter(localeFormat, "localeFormat");
|
||
|
String removeSuffix = StringsKt.removeSuffix(StringsKt.replace$default(new Regex("y{1,4}").replace(new Regex("M{1,2}").replace(new Regex("d{1,2}").replace(new Regex("[^dMy/\\-.]").replace(localeFormat, ""), "dd"), "MM"), "yyyy"), "My", "M/y", false, 4, (Object) null), (CharSequence) ".");
|
||
|
MatchResult find$default = Regex.find$default(new Regex("[/\\-.]"), removeSuffix, 0, 2, null);
|
||
|
Intrinsics.checkNotNull(find$default);
|
||
|
MatchGroup matchGroup = find$default.getGroups().get(0);
|
||
|
Intrinsics.checkNotNull(matchGroup);
|
||
|
int first = matchGroup.getRange().getFirst();
|
||
|
String substring = removeSuffix.substring(first, first + 1);
|
||
|
Intrinsics.checkNotNullExpressionValue(substring, "this as java.lang.String…ing(startIndex, endIndex)");
|
||
|
return new DateInputFormat(removeSuffix, substring.charAt(0));
|
||
|
}
|
||
|
}
|