package s2;

import android.text.SegmentFinder;

/* loaded from: classes.dex */
public final class a {

    /* renamed from: a, reason: collision with root package name */
    public static final a f35394a = new a();

    /* renamed from: s2.a$a, reason: collision with other inner class name */
    /* loaded from: classes.dex */
    public static final class C0829a extends SegmentFinder {

        /* renamed from: a, reason: collision with root package name */
        final /* synthetic */ d f35395a;

        C0829a(d dVar) {
            this.f35395a = dVar;
        }

        public int nextEndBoundary(int i10) {
            return this.f35395a.d(i10);
        }

        public int nextStartBoundary(int i10) {
            return this.f35395a.a(i10);
        }

        public int previousEndBoundary(int i10) {
            return this.f35395a.b(i10);
        }

        public int previousStartBoundary(int i10) {
            return this.f35395a.c(i10);
        }
    }

    private a() {
    }

    public final SegmentFinder a(d dVar) {
        return r2.c.a(new C0829a(dVar));
    }
}
