160 lines
5.8 KiB
Java
160 lines
5.8 KiB
Java
package o;
|
|
|
|
import java.util.HashSet;
|
|
|
|
/* renamed from: o.jzn, reason: case insensitive filesystem */
|
|
/* loaded from: classes.dex */
|
|
public final class C15974jzn {
|
|
private static boolean[] d = new boolean[256];
|
|
private static boolean[] b = new boolean[256];
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean e(char c) {
|
|
return ((c > 31 && c != 127) || c == '\t' || c == '\n' || c == '\r') ? false : true;
|
|
}
|
|
|
|
static {
|
|
char c = 0;
|
|
while (true) {
|
|
boolean[] zArr = d;
|
|
if (c >= zArr.length) {
|
|
new HashSet<String>() { // from class: o.jzn.5
|
|
{
|
|
add("xmpDM:album");
|
|
add("xmpDM:altTapeName");
|
|
add("xmpDM:altTimecode");
|
|
add("xmpDM:artist");
|
|
add("xmpDM:cameraAngle");
|
|
add("xmpDM:cameraLabel");
|
|
add("xmpDM:cameraModel");
|
|
add("xmpDM:cameraMove");
|
|
add("xmpDM:client");
|
|
add("xmpDM:comment");
|
|
add("xmpDM:composer");
|
|
add("xmpDM:director");
|
|
add("xmpDM:directorPhotography");
|
|
add("xmpDM:engineer");
|
|
add("xmpDM:genre");
|
|
add("xmpDM:good");
|
|
add("xmpDM:instrument");
|
|
add("xmpDM:logComment");
|
|
add("xmpDM:projectName");
|
|
add("xmpDM:releaseDate");
|
|
add("xmpDM:scene");
|
|
add("xmpDM:shotDate");
|
|
add("xmpDM:shotDay");
|
|
add("xmpDM:shotLocation");
|
|
add("xmpDM:shotName");
|
|
add("xmpDM:shotNumber");
|
|
add("xmpDM:shotSize");
|
|
add("xmpDM:speakerPlacement");
|
|
add("xmpDM:takeNumber");
|
|
add("xmpDM:tapeName");
|
|
add("xmpDM:trackNumber");
|
|
add("xmpDM:videoAlphaMode");
|
|
add("xmpDM:videoAlphaPremultipleColor");
|
|
}
|
|
};
|
|
return;
|
|
}
|
|
boolean[] zArr2 = b;
|
|
boolean z = true;
|
|
boolean z2 = c == ':' || ('A' <= c && c <= 'Z') || c == '_' || (('a' <= c && c <= 'z') || ((192 <= c && c <= 214) || ((216 <= c && c <= 246) || (248 <= c && c <= 255))));
|
|
zArr2[c] = z2;
|
|
if (!z2 && c != '-' && c != '.' && (('0' > c || c > '9') && c != 183)) {
|
|
z = false;
|
|
}
|
|
zArr[c] = z;
|
|
c = (char) (c + 1);
|
|
}
|
|
}
|
|
|
|
public static String d(String str) {
|
|
if ("x-default".equals(str)) {
|
|
return str;
|
|
}
|
|
StringBuffer stringBuffer = new StringBuffer();
|
|
int i = 1;
|
|
for (int i2 = 0; i2 < str.length(); i2++) {
|
|
char charAt = str.charAt(i2);
|
|
if (charAt != ' ') {
|
|
if (charAt == '-' || charAt == '_') {
|
|
stringBuffer.append('-');
|
|
i++;
|
|
} else if (i != 2) {
|
|
stringBuffer.append(Character.toLowerCase(str.charAt(i2)));
|
|
} else {
|
|
stringBuffer.append(Character.toUpperCase(str.charAt(i2)));
|
|
}
|
|
}
|
|
}
|
|
return stringBuffer.toString();
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static String[] a(String str) {
|
|
int indexOf = str.indexOf(61);
|
|
String substring = str.substring(str.charAt(1) == '?' ? 2 : 1, indexOf);
|
|
char charAt = str.charAt(indexOf + 1);
|
|
int i = indexOf + 2;
|
|
int length = str.length() - 2;
|
|
StringBuffer stringBuffer = new StringBuffer(length - indexOf);
|
|
while (i < length) {
|
|
stringBuffer.append(str.charAt(i));
|
|
int i2 = i + 1;
|
|
i = str.charAt(i2) == charAt ? i + 2 : i2;
|
|
}
|
|
return new String[]{substring, stringBuffer.toString()};
|
|
}
|
|
|
|
/* JADX INFO: Access modifiers changed from: package-private */
|
|
public static boolean c(String str) {
|
|
if (str == null) {
|
|
return false;
|
|
}
|
|
int i = 0;
|
|
int i2 = 0;
|
|
boolean z = true;
|
|
while (i < str.length()) {
|
|
if (str.charAt(i) == '-') {
|
|
i2++;
|
|
z = z && (i == 8 || i == 13 || i == 18 || i == 23);
|
|
}
|
|
i++;
|
|
}
|
|
return z && 4 == i2 && 36 == i;
|
|
}
|
|
|
|
public static boolean b(String str) {
|
|
if (str.length() > 0 && !b(str.charAt(0))) {
|
|
return false;
|
|
}
|
|
for (int i = 1; i < str.length(); i++) {
|
|
if (!d(str.charAt(i))) {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
public static boolean e(String str) {
|
|
if (str.length() > 0 && (!b(str.charAt(0)) || str.charAt(0) == ':')) {
|
|
return false;
|
|
}
|
|
for (int i = 1; i < str.length(); i++) {
|
|
if (!d(str.charAt(i)) || str.charAt(i) == ':') {
|
|
return false;
|
|
}
|
|
}
|
|
return true;
|
|
}
|
|
|
|
private static boolean b(char c) {
|
|
return (c <= 255 && b[c]) || (c >= 256 && c <= 767) || ((c >= 880 && c <= 893) || ((c >= 895 && c <= 8191) || ((c >= 8204 && c <= 8205) || ((c >= 8304 && c <= 8591) || ((c >= 11264 && c <= 12271) || ((c >= 12289 && c <= 55295) || ((c >= 63744 && c <= 64975) || ((c >= 65008 && c <= 65533) || (c >= 0 && c <= 65535)))))))));
|
|
}
|
|
|
|
private static boolean d(char c) {
|
|
return (c <= 255 && d[c]) || b(c) || (c >= 768 && c <= 879) || (c >= 8255 && c <= 8256);
|
|
}
|
|
}
|