Initial version -- added millennium read funcionality

This commit is contained in:
Pablo
2026-03-09 22:05:28 +01:00
commit 77c2ded482
2770 changed files with 141927 additions and 0 deletions
@@ -0,0 +1,20 @@
package com.google.maps.android.data.kml;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
/* JADX INFO: loaded from: classes2.dex */
public class KmlUtil {
public static String substituteProperties(String str, KmlPlacemark kmlPlacemark) {
StringBuffer stringBuffer = new StringBuffer();
Matcher matcher = Pattern.compile("\\$\\[(.+?)]").matcher(str);
while (matcher.find()) {
String property = kmlPlacemark.getProperty(matcher.group(1));
if (property != null) {
matcher.appendReplacement(stringBuffer, property);
}
}
matcher.appendTail(stringBuffer);
return stringBuffer.toString();
}
}