Example: Convert all lowercase ASCII letters to uppercase

public static int main (string[] args) {
// Output: ``YOU ADMIRE OUR TECHNOLOGY, HUMAN?``
string up = "You admire our technology, human?".up ();
print ("%s\n", up);
return 0;
}

 valac --pkg glib-2.0 string.up.vala

See:




2022 vala-language.org