in eventmesh-connectors/eventmesh-connector-canal/src/main/java/org/apache/eventmesh/connector/canal/SqlUtils.java [795:816]
public static boolean isHexNumber(String str) {
boolean flag = true;
if (str.startsWith("0x") || str.startsWith("0X")) {
str = str.substring(2);
}
int i = 0;
while (true) {
if (i < str.length()) {
char cc = str.charAt(i);
if (cc != '0' && cc != '1' && cc != '2' && cc != '3' && cc != '4' && cc != '5' && cc != '6' && cc != '7' && cc != '8' && cc != '9'
&& cc != 'A' && cc != 'B' && cc != 'C' && cc != 'D' && cc != 'E' && cc != 'F' && cc != 'a' && cc != 'b' && cc != 'c' && cc != 'd'
&& cc != 'e' && cc != 'f') {
flag = false;
break;
}
i++;
} else {
break;
}
}
return flag;
}