to_string
Description:
[ CCode ( cname = "g_strdup_printf" , instance_pos = -1 ) ]
public string to_string (string format = "%hhu")
public string to_string (string format = "%hhu")
Converts the value to its equivalent string representation
Example: Uchar to string:
public static int main (string[] args) {
// Output: ``97``
uchar c = 'a';
print ("%s\n", c.to_string ());
// Output: ``122``
c = 'z';
print ("%s\n", c.to_string ());
// Output: ``57``
c = '9';
print ("%s\n", c.to_string ());
return 0;
}
valac --pkg glib-2.0 uchar.to_string.vala