MCPcopy Create free account
hub / github.com/FongMi/TV / extract

Method extract

app/src/main/java/com/fongmi/android/tv/api/Decoder.java:78–81  ·  view source on GitHub ↗
(String data)

Source from the content-addressed store, hash-verified

76 }
77
78 private static String extract(String data) {
79 Matcher matcher = Pattern.compile("[A-Za-z0-9]{8}\\*\\*").matcher(data);
80 return matcher.find() ? data.substring(data.indexOf(matcher.group()) + 10) : "";
81 }
82
83 private static String padEnd(String key) {
84 return key + "0000000000000000".substring(key.length());

Callers 1

base64Method · 0.95

Calls 4

groupMethod · 0.80
findMethod · 0.45
substringMethod · 0.45
indexOfMethod · 0.45

Tested by

no test coverage detected