private int hexToValue(final char c) {

      if ((c >= 'A') && (c <= 'F')) {
        return (c - 'A') + 10;
      } else if ((c >= 'a') && (c <= 'f')) {
        return (c - 'a') + 10;
      } else {
        return c - '0';
      }
    }
Converts valid hex input values to int values.

@param c The valid hex input value.
@return The int value.
java/zylib/src/main/java/com/google/security/zynamics/zylib/gui/JRegisterView/JRegisterView.java