Files
rr3-apk/decompiled/sources/com/applovin/impl/zr.java
Daniel Elliott f9d20bb3fc Add decompiled APK source code (JADX)
- 28,932 files
- Full Java source code
- Smali files
- Resources

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-02-18 14:52:23 -08:00

44 lines
1.2 KiB
Java

package com.applovin.impl;
import com.facebook.internal.security.CertificateUtil;
import java.util.regex.Pattern;
/* loaded from: classes.dex */
public abstract class zr {
private static final Pattern a = Pattern.compile("^NOTE([ \t].*)?$");
public static boolean a(bh bhVar) {
String l = bhVar.l();
return l != null && l.startsWith("WEBVTT");
}
public static long b(String str) {
String[] b = xp.b(str, "\\.");
long j = 0;
for (String str2 : xp.a(b[0], CertificateUtil.DELIMITER)) {
j = (j * 60) + Long.parseLong(str2);
}
long j2 = j * 1000;
if (b.length == 2) {
j2 += Long.parseLong(b[1]);
}
return j2 * 1000;
}
public static void b(bh bhVar) {
int d = bhVar.d();
if (a(bhVar)) {
return;
}
bhVar.f(d);
throw dh.a("Expected WEBVTT. Got " + bhVar.l(), null);
}
public static float a(String str) {
if (str.endsWith("%")) {
return Float.parseFloat(str.substring(0, str.length() - 1)) / 100.0f;
}
throw new NumberFormatException("Percentages must end with %");
}
}