package h.c0;

/* JADX INFO: Access modifiers changed from: package-private */
/* JADX INFO: compiled from: _Strings.kt */
/* JADX INFO: loaded from: classes.dex */
public class s extends r {
    public static String w0(String str, int i2) {
        h.x.d.k.d(str, "<this>");
        if (i2 >= 0) {
            String strSubstring = str.substring(0, h.z.n.d(i2, str.length()));
            h.x.d.k.c(strSubstring, "this as java.lang.String…ing(startIndex, endIndex)");
            return strSubstring;
        }
        throw new IllegalArgumentException(("Requested character count " + i2 + " is less than zero.").toString());
    }
}
