hex static method
Implementation
static hex(int c) {
if (c >= '0'.codeUnitAt(0) && c <= '9'.codeUnitAt(0)) {
return c - '0'.codeUnitAt(0);
}
if (c >= 'A'.codeUnitAt(0) && c <= 'F'.codeUnitAt(0)) {
return (c - 'A'.codeUnitAt(0)) + 10;
}
}