package l3;

import android.database.sqlite.SQLiteDatabase;
import java.io.File;

/* JADX INFO: loaded from: classes.dex */
public abstract class c {

    /* JADX INFO: renamed from: a, reason: collision with root package name */
    public final int f30102a;

    public c(int i10) {
        this.f30102a = i10;
    }

    public static void a(String str) {
        if (kotlin.text.h.c0(str, ":memory:")) {
            return;
        }
        int length = str.length() - 1;
        int i10 = 0;
        boolean z10 = false;
        while (i10 <= length) {
            boolean z11 = nb.g.j(str.charAt(!z10 ? i10 : length), 32) <= 0;
            if (z10) {
                if (!z11) {
                    break;
                } else {
                    length--;
                }
            } else if (z11) {
                i10++;
            } else {
                z10 = true;
            }
        }
        if (str.subSequence(i10, length + 1).toString().length() == 0) {
            return;
        }
        try {
            SQLiteDatabase.deleteDatabase(new File(str));
        } catch (Exception unused) {
        }
    }

    public void b(m3.c cVar) {
    }

    public abstract void c(m3.c cVar);

    public abstract void d(m3.c cVar, int i10, int i11);

    public abstract void e(m3.c cVar);

    public abstract void f(m3.c cVar, int i10, int i11);
}
