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