Rabbit-R1/android (non root)/java/sources/com/google/zxing/client/result/SMSTOMMSTOResultParser.java

25 lines
933 B
Java
Raw Normal View History

2024-05-21 21:08:36 +00:00
package com.google.zxing.client.result;
import com.google.zxing.Result;
/* loaded from: classes3.dex */
public final class SMSTOMMSTOResultParser extends ResultParser {
@Override // com.google.zxing.client.result.ResultParser
public SMSParsedResult parse(Result result) {
String str;
String massagedText = getMassagedText(result);
if (!massagedText.startsWith("smsto:") && !massagedText.startsWith("SMSTO:") && !massagedText.startsWith("mmsto:") && !massagedText.startsWith("MMSTO:")) {
return null;
}
String substring = massagedText.substring(6);
int indexOf = substring.indexOf(58);
if (indexOf >= 0) {
str = substring.substring(indexOf + 1);
substring = substring.substring(0, indexOf);
} else {
str = null;
}
return new SMSParsedResult(substring, (String) null, (String) null, str);
}
}