mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2024-12-30 11:02:31 -06:00
26 lines
2 KiB
Java
26 lines
2 KiB
Java
package androidx.compose.foundation.text;
|
|
|
|
import androidx.compose.ui.text.AnnotatedString;
|
|
import androidx.compose.ui.text.input.OffsetMapping;
|
|
import androidx.compose.ui.text.input.TransformedText;
|
|
import androidx.compose.ui.text.input.VisualTransformation;
|
|
import kotlin.Metadata;
|
|
import kotlin.jvm.internal.Intrinsics;
|
|
|
|
/* compiled from: ValidatingOffsetMapping.kt */
|
|
@Metadata(d1 = {"\u0000\u001a\n\u0000\n\u0002\u0018\u0002\n\u0002\b\u0003\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\n\u0002\u0018\u0002\n\u0000\u001a\u0014\u0010\u0004\u001a\u00020\u0005*\u00020\u00062\u0006\u0010\u0007\u001a\u00020\bH\u0000\"\u0014\u0010\u0000\u001a\u00020\u0001X\u0080\u0004¢\u0006\b\n\u0000\u001a\u0004\b\u0002\u0010\u0003¨\u0006\t"}, d2 = {"ValidatingEmptyOffsetMappingIdentity", "Landroidx/compose/ui/text/input/OffsetMapping;", "getValidatingEmptyOffsetMappingIdentity", "()Landroidx/compose/ui/text/input/OffsetMapping;", "filterWithValidation", "Landroidx/compose/ui/text/input/TransformedText;", "Landroidx/compose/ui/text/input/VisualTransformation;", "text", "Landroidx/compose/ui/text/AnnotatedString;", "foundation_release"}, k = 2, mv = {1, 8, 0}, xi = 48)
|
|
/* loaded from: classes.dex */
|
|
public final class ValidatingOffsetMappingKt {
|
|
private static final OffsetMapping ValidatingEmptyOffsetMappingIdentity = new ValidatingOffsetMapping(OffsetMapping.INSTANCE.getIdentity(), 0, 0);
|
|
|
|
public static final OffsetMapping getValidatingEmptyOffsetMappingIdentity() {
|
|
return ValidatingEmptyOffsetMappingIdentity;
|
|
}
|
|
|
|
public static final TransformedText filterWithValidation(VisualTransformation visualTransformation, AnnotatedString text) {
|
|
Intrinsics.checkNotNullParameter(visualTransformation, "<this>");
|
|
Intrinsics.checkNotNullParameter(text, "text");
|
|
TransformedText filter = visualTransformation.filter(text);
|
|
return new TransformedText(filter.getText(), new ValidatingOffsetMapping(filter.getOffsetMapping(), text.length(), filter.getText().length()));
|
|
}
|
|
}
|