mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
38 lines
2.2 KiB
Java
38 lines
2.2 KiB
Java
package androidx.compose.ui.text.input;
|
|
|
|
import androidx.compose.ui.text.TextRange;
|
|
import androidx.compose.ui.text.TextRangeKt;
|
|
import kotlin.Metadata;
|
|
|
|
/* compiled from: EditingBuffer.kt */
|
|
@Metadata(d1 = {"\u0000\n\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0005\u001a%\u0010\u0000\u001a\u00020\u00012\u0006\u0010\u0002\u001a\u00020\u00012\u0006\u0010\u0003\u001a\u00020\u0001H\u0000ø\u0001\u0000ø\u0001\u0001¢\u0006\u0004\b\u0004\u0010\u0005\u0082\u0002\u000b\n\u0005\b¡\u001e0\u0001\n\u0002\b\u0019¨\u0006\u0006"}, d2 = {"updateRangeAfterDelete", "Landroidx/compose/ui/text/TextRange;", "target", "deleted", "updateRangeAfterDelete-pWDy79M", "(JJ)J", "ui-text_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class EditingBufferKt {
|
|
/* renamed from: updateRangeAfterDelete-pWDy79M, reason: not valid java name */
|
|
public static final long m4557updateRangeAfterDeletepWDy79M(long j, long j2) {
|
|
int m4410getLengthimpl;
|
|
int m4412getMinimpl = TextRange.m4412getMinimpl(j);
|
|
int m4411getMaximpl = TextRange.m4411getMaximpl(j);
|
|
if (TextRange.m4416intersects5zctL8(j2, j)) {
|
|
if (TextRange.m4404contains5zctL8(j2, j)) {
|
|
m4412getMinimpl = TextRange.m4412getMinimpl(j2);
|
|
m4411getMaximpl = m4412getMinimpl;
|
|
} else {
|
|
if (TextRange.m4404contains5zctL8(j, j2)) {
|
|
m4410getLengthimpl = TextRange.m4410getLengthimpl(j2);
|
|
} else if (TextRange.m4405containsimpl(j2, m4412getMinimpl)) {
|
|
m4412getMinimpl = TextRange.m4412getMinimpl(j2);
|
|
m4410getLengthimpl = TextRange.m4410getLengthimpl(j2);
|
|
} else {
|
|
m4411getMaximpl = TextRange.m4412getMinimpl(j2);
|
|
}
|
|
m4411getMaximpl -= m4410getLengthimpl;
|
|
}
|
|
} else if (m4411getMaximpl > TextRange.m4412getMinimpl(j2)) {
|
|
m4412getMinimpl -= TextRange.m4410getLengthimpl(j2);
|
|
m4410getLengthimpl = TextRange.m4410getLengthimpl(j2);
|
|
m4411getMaximpl -= m4410getLengthimpl;
|
|
}
|
|
return TextRangeKt.TextRange(m4412getMinimpl, m4411getMaximpl);
|
|
}
|
|
}
|