GLib.ascii_strup
function ascii_strup(str: String, len: Number(gssize)): String { // Gjs wrapper for g_ascii_strup() }
Converts all lower case ASCII letters to upper case ASCII letters.
- str
a string
- len
length of str in bytes, or -1 if str is nul-terminated
- Returns
a newly allocated string, with all the lower case characters in str converted to upper case, with semantics that exactly match GLib.ascii_toupper. (Note that this is unlike the old GLib.strup, which modified the string in place.)