isalpha


Description:

public bool isalpha ()

Determines whether a character is alphabetic (i.

e. a letter). Given some UTF-8 text, obtain a character value with utf8_get_char.

Example: Determine whether a character is alphabetic:

public static int main (string[] args) {
unichar[] chars = {'a', 'Ω', '0', '9',
'一', '二'}; // ichi, 1; ni, 2

// Output: ``true true false false true true``
foreach (unichar c in chars) {
print ("%s ", c.isalpha ().to_string ());
}
print ("\n");
return 0;
}

valac --pkg glib-2.0 unichar.isalpha.vala

Parameters:

c

a Unicode character

Returns:

true if c is an alphabetic character