GLib.unichar_isdigit
function unichar_isdigit(c: String): Boolean { // Gjs wrapper for g_unichar_isdigit() }
Determines whether a character is numeric (i.e. a digit). This covers ASCII 0-9 and also digits in other languages/scripts. Given some UTF-8 text, obtain a character value with GLib.utf8_get_char.
- c
a Unicode character
- Returns
true if c is a digit