19 lines
575 B
Java
19 lines
575 B
Java
package g0.z;
|
|
/* compiled from: ByteString.kt */
|
|
public final class b {
|
|
public static final char[] a = {'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'};
|
|
|
|
public static final int a(char c2) {
|
|
if ('0' <= c2 && '9' >= c2) {
|
|
return c2 - '0';
|
|
}
|
|
char c3 = 'a';
|
|
if ('a' > c2 || 'f' < c2) {
|
|
c3 = 'A';
|
|
if ('A' > c2 || 'F' < c2) {
|
|
throw new IllegalArgumentException("Unexpected hex digit: " + c2);
|
|
}
|
|
}
|
|
return (c2 - c3) + 10;
|
|
}
|
|
}
|