function ascii_strncasecmp(s1: String, s2: String, n: Number(gsize)): Number(gint) {
    // Gjs wrapper for g_ascii_strncasecmp()

Compare s1 and s2, ignoring the case of ASCII characters and any characters after the first n in each string.

Unlike the BSD strcasecmp() function, this only recognizes standard ASCII letters and ignores the locale, treating all non-ASCII characters as if they are not letters.

The same warning as in GLib.ascii_strcasecmp applies: Use this function only on strings known to be in encodings where bytes corresponding to ASCII letters always represent themselves.


string to compare with s2


string to compare with s1


number of characters to compare


0 if the strings match, a negative value if s1 < s2, or a positive value if s1 > s2.