package o;

import java.io.Serializable;
import java.util.regex.Pattern;

/* compiled from: r8-map-id-3b7cc9102578c509342fa2f0fabed2bfc72239cd258d579fc679bfcbc198b048 */
/* loaded from: classes.dex */
public final class G10 implements Serializable {
    public final Pattern l;

    public G10(Pattern pattern) {
        this.l = pattern;
    }

    public static GD a(G10 g10, String str) {
        if (str.length() >= 0) {
            return new GD(new C1352h3(10, g10, str), F10.t);
        }
        StringBuilder sbO = AbstractC0126Ew.o(0, "Start index out of bounds: ", ", input length: ");
        sbO.append(str.length());
        throw new IndexOutOfBoundsException(sbO.toString());
    }

    private final Object writeReplace() {
        Pattern pattern = this.l;
        return new E10(pattern.pattern(), pattern.flags());
    }

    public final boolean b(CharSequence charSequence) {
        return this.l.matcher(charSequence).matches();
    }

    public final String toString() {
        return this.l.toString();
    }

    public G10(String str) {
        this(Pattern.compile(str));
    }
}
