Rabbit-R1/android (non root)/java/sources/com/google/zxing/client/result/URLTOResultParser.java
2024-05-21 17:08:36 -04:00

16 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;
}
}