78 lines
2.3 KiB
Java
78 lines
2.3 KiB
Java
|
package com.google.android.gms.internal.firebase_ml;
|
||
|
|
||
|
/* loaded from: classes2.dex */
|
||
|
abstract class zzkx extends zzjz<String> {
|
||
|
private int limit;
|
||
|
private int offset = 0;
|
||
|
private final zzkc zzabj;
|
||
|
private final boolean zzabk;
|
||
|
final CharSequence zzabo;
|
||
|
|
||
|
/* JADX INFO: Access modifiers changed from: protected */
|
||
|
public zzkx(zzku zzkuVar, CharSequence charSequence) {
|
||
|
zzkc zzkcVar;
|
||
|
int i;
|
||
|
zzkcVar = zzkuVar.zzabj;
|
||
|
this.zzabj = zzkcVar;
|
||
|
this.zzabk = false;
|
||
|
i = zzkuVar.limit;
|
||
|
this.limit = i;
|
||
|
this.zzabo = charSequence;
|
||
|
}
|
||
|
|
||
|
abstract int zzaj(int i);
|
||
|
|
||
|
abstract int zzak(int i);
|
||
|
|
||
|
@Override // com.google.android.gms.internal.firebase_ml.zzjz
|
||
|
protected final /* synthetic */ String zzid() {
|
||
|
int zzaj;
|
||
|
int i = this.offset;
|
||
|
while (true) {
|
||
|
int i2 = this.offset;
|
||
|
if (i2 != -1) {
|
||
|
zzaj = zzaj(i2);
|
||
|
if (zzaj == -1) {
|
||
|
zzaj = this.zzabo.length();
|
||
|
this.offset = -1;
|
||
|
} else {
|
||
|
this.offset = zzak(zzaj);
|
||
|
}
|
||
|
int i3 = this.offset;
|
||
|
if (i3 == i) {
|
||
|
int i4 = i3 + 1;
|
||
|
this.offset = i4;
|
||
|
if (i4 > this.zzabo.length()) {
|
||
|
this.offset = -1;
|
||
|
}
|
||
|
} else {
|
||
|
while (i < zzaj && this.zzabj.zzb(this.zzabo.charAt(i))) {
|
||
|
i++;
|
||
|
}
|
||
|
while (zzaj > i && this.zzabj.zzb(this.zzabo.charAt(zzaj - 1))) {
|
||
|
zzaj--;
|
||
|
}
|
||
|
if (!this.zzabk || i != zzaj) {
|
||
|
break;
|
||
|
}
|
||
|
i = this.offset;
|
||
|
}
|
||
|
} else {
|
||
|
zzie();
|
||
|
return null;
|
||
|
}
|
||
|
}
|
||
|
int i5 = this.limit;
|
||
|
if (i5 == 1) {
|
||
|
zzaj = this.zzabo.length();
|
||
|
this.offset = -1;
|
||
|
while (zzaj > i && this.zzabj.zzb(this.zzabo.charAt(zzaj - 1))) {
|
||
|
zzaj--;
|
||
|
}
|
||
|
} else {
|
||
|
this.limit = i5 - 1;
|
||
|
}
|
||
|
return this.zzabo.subSequence(i, zzaj).toString();
|
||
|
}
|
||
|
}
|