mirror of
https://github.com/Pinball3D/Rabbit-R1.git
synced 2025-01-09 13:43:22 +00:00
17 lines
662 B
Java
17 lines
662 B
Java
|
package com.google.zxing.client.result;
|
||
|
|
||
|
import com.google.zxing.Result;
|
||
|
|
||
|
/* loaded from: classes3.dex */
|
||
|
public final class URLTOResultParser extends ResultParser {
|
||
|
@Override // com.google.zxing.client.result.ResultParser
|
||
|
public URIParsedResult parse(Result result) {
|
||
|
int indexOf;
|
||
|
String massagedText = getMassagedText(result);
|
||
|
if ((massagedText.startsWith("urlto:") || massagedText.startsWith("URLTO:")) && (indexOf = massagedText.indexOf(58, 6)) >= 0) {
|
||
|
return new URIParsedResult(massagedText.substring(indexOf + 1), indexOf > 6 ? massagedText.substring(6, indexOf) : null);
|
||
|
}
|
||
|
return null;
|
||
|
}
|
||
|
}
|