what-the-bank/sources/o/IRF.java

45 lines
1022 B
Java

package o;
import com.adobe.internal.xmp.XMPException;
/* loaded from: classes.dex */
final class IRF {
int c = 0;
String d;
public IRF(String str) {
this.d = str;
}
public final char e() {
if (this.c < this.d.length()) {
return this.d.charAt(this.c);
}
return (char) 0;
}
public final int b(String str, int i) throws XMPException {
int i2 = this.c;
char charAt = i2 < this.d.length() ? this.d.charAt(i2) : (char) 0;
boolean z = false;
int i3 = 0;
while ('0' <= charAt && charAt <= '9') {
i3 = (i3 * 10) + (charAt - '0');
z = true;
int i4 = this.c + 1;
this.c = i4;
charAt = i4 < this.d.length() ? this.d.charAt(i4) : (char) 0;
}
if (!z) {
throw new XMPException(str, 5);
}
if (i3 > i) {
return i;
}
if (i3 < 0) {
return 0;
}
return i3;
}
}