GLib.unichar_xdigit_value
function unichar_xdigit_value(c: String): Number(gint) { // Gjs wrapper for g_unichar_xdigit_value() }
Determines the numeric value of a character as a hexidecimal digit.
- c
a Unicode character
- Returns
If c is a hex digit (according to GLib.unichar_isxdigit), its numeric value. Otherwise, -1.