parseHexOrDefault

fun parseHexOrDefault(string: String, default: Int = 0): Int

Returns an Int from a hexadecimal string or default on error